{{ trans('texts.client') }} {{ trans('texts.email') }} @if ($multiUser) {{ trans('texts.user') }} @endif {{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_number' : 'texts.invoice_number') }} {{ trans('texts.amount') }} {{ trans('texts.paid') }} {{ trans('texts.po_number') }} {{ trans('texts.status') }} {{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_date' : 'texts.invoice_date') }} {{ trans('texts.due_date') }} {{ trans('texts.discount') }} @if (empty($entityType)) {{ trans('texts.partial') }} {{ trans('texts.partial_due_date') }} @endif {{ trans('texts.public_notes') }} {{ trans('texts.private_notes') }} @if ($account->customLabel('invoice1')) {{ $account->present()->customLabel('invoice1') }} @endif @if ($account->customLabel('invoice2')) {{ $account->present()->customLabel('invoice2') }} @endif @if ($account->customLabel('invoice_text1')) {{ $account->present()->customLabel('invoice_text1') }} @endif @if ($account->customLabel('invoice_text2')) {{ $account->present()->customLabel('invoice_text1') }} @endif {{ trans('texts.item_product') }} {{ trans('texts.item_notes') }} @if ($account->customLabel('product1')) {{ $account->present()->customLabel('product1') }} @endif @if ($account->customLabel('product2')) {{ $account->present()->customLabel('product2') }} @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 ($invoices 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->invoice_number }} {{ $account->formatMoney($invoice->amount, $invoice->client) }} {{ $account->formatMoney($invoice->amount - $invoice->balance, $invoice->client) }} {{ $invoice->po_number }} {{ $invoice->present()->status }} {{ $invoice->invoice_date }} {{ $invoice->due_date }} {{ $invoice->discount == 0 ? '' : ($invoice->is_amount_discount ? $account->formatMoney($invoice->discount, $invoice->client) : $invoice->discount . '%') }} @if (empty($entityType)) {{ $invoice->present()->partial }} {{ $invoice->partial_due_date }} @endif {{ $invoice->public_notes }} {{ $invoice->private_notes }} @if ($account->customLabel('invoice1')) {{ $invoice->custom_value1 }} @endif @if ($account->customLabel('invoice2')) {{ $invoice->custom_value2 }} @endif @if ($account->customLabel('invoice_text1')) {{ $invoice->custom_text_value1 }} @endif @if ($account->customLabel('invoice_text2')) {{ $invoice->custom_text_value2 }} @endif {{ $item->product_key }} {{ $item->notes }} @if ($account->customLabel('product1')) {{ $item->custom_value1 }} @endif @if ($account->customLabel('product2')) {{ $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