| {{ trans('texts.client') }} | 
    {{ trans('texts.email') }} | 
    @if ($multiUser)
        {{ trans('texts.user') }} | 
    @endif
    {{ trans('texts.frequency') }} | 
    {{ trans('texts.balance') }} | 
    {{ trans('texts.amount') }} | 
    {{ trans('texts.po_number') }} | 
    {{ trans('texts.status') }} | 
    @if ($account->custom_invoice_label1)
        {{ $account->present()->customInvoiceLabel1 }} | 
    @endif
    @if ($account->custom_invoice_label2)
        {{ $account->present()->customInvoiceLabel2 }} | 
    @endif
    @if ($account->custom_invoice_text_label1)
        {{ $account->present()->customInvoiceTextLabel1 }} | 
    @endif
    @if ($account->custom_invoice_text_label2)
        {{ $account->present()->customInvoiceTextLabel2 }} | 
    @endif
    {{ trans('texts.item_product') }} | 
    {{ trans('texts.item_notes') }} | 
    @if ($account->custom_invoice_item_label1)
        {{ $account->present()->customProductLabel1 }} | 
    @endif
    @if ($account->custom_invoice_item_label2)
        {{ $account->present()->customProductLabel2 }} | 
    @endif
    {{ trans('texts.item_cost') }} | 
    {{ trans('texts.item_quantity') }} | 
    @if ($account->invoice_item_taxes)
        {{ trans('texts.item_tax_name') }} | 
        {{ trans('texts.item_tax_rate') }} | 
        @if ($account->enable_second_tax_rate)
            {{ trans('texts.item_tax_name') }} | 
            {{ trans('texts.item_tax_rate') }} | 
        @endif
    @endif
@foreach ($recurringInvoices as $invoice)
    @if (!$invoice->client->is_deleted)
        @foreach ($invoice->invoice_items as $item)
            
                | {{ $invoice->present()->client }} | 
                {{ $invoice->present()->email }} | 
                @if ($multiUser)
                    {{ $invoice->present()->user }} | 
                @endif
                {{ $invoice->present()->frequency }} | 
                {{ $account->formatMoney($invoice->balance, $invoice->client) }} | 
                {{ $account->formatMoney($invoice->amount, $invoice->client) }} | 
                {{ $invoice->po_number }} | 
                {{ $invoice->present()->status }} | 
                @if ($account->custom_invoice_label1)
                    {{ $invoice->custom_value1 }} | 
                @endif
                @if ($account->custom_invoice_label2)
                    {{ $invoice->custom_value2 }} | 
                @endif
                @if ($account->custom_invoice_text_label1)
                    {{ $invoice->custom_text_value1 }} | 
                @endif
                @if ($account->custom_invoice_text_label2)
                    {{ $invoice->custom_text_value2 }} | 
                @endif
                {{ $item->product_key }} | 
                {{ $item->notes }} | 
                @if ($account->custom_invoice_item_label1)
                    {{ $item->custom_value1 }} | 
                @endif
                @if ($account->custom_invoice_item_label2)
                    {{ $item->custom_value2 }} | 
                @endif
                {{ $item->cost }} | 
                {{ $item->qty }} | 
                @if ($account->invoice_item_taxes)
                    {{ $item->tax_name1 }} | 
                    {{ $item->tax_rate1 }} | 
                    @if ($account->enable_second_tax_rate)
                        {{ $item->tax_name2 }} | 
                        {{ $item->tax_rate2 }} | 
                    @endif
                @endif
            
        @endforeach
    @endif
@endforeach