2015-11-12 21:36:28 +01:00
|
|
|
<tr>
|
|
|
|
<td>{{ trans('texts.client') }}</td>
|
2016-02-25 10:25:07 +01:00
|
|
|
<td>{{ trans('texts.email') }}</td>
|
2015-11-12 21:36:28 +01:00
|
|
|
@if ($multiUser)
|
|
|
|
<td>{{ trans('texts.user') }}</td>
|
|
|
|
@endif
|
|
|
|
<td>{{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_number' : 'texts.invoice_number') }}</td>
|
|
|
|
<td>{{ trans('texts.amount') }}</td>
|
2017-01-15 19:38:36 +01:00
|
|
|
<td>{{ trans('texts.paid') }}</td>
|
2015-11-12 21:36:28 +01:00
|
|
|
<td>{{ trans('texts.po_number') }}</td>
|
|
|
|
<td>{{ trans('texts.status') }}</td>
|
|
|
|
<td>{{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_date' : 'texts.invoice_date') }}</td>
|
|
|
|
<td>{{ trans('texts.due_date') }}</td>
|
|
|
|
@if ($account->custom_invoice_label1)
|
|
|
|
<td>{{ $account->custom_invoice_label1 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_label2)
|
|
|
|
<td>{{ $account->custom_invoice_label2 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_text_label1)
|
|
|
|
<td>{{ $account->custom_invoice_text_label1 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_text_label2)
|
|
|
|
<td>{{ $account->custom_invoice_text_label2 }}</td>
|
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@foreach ($invoices as $invoice)
|
2015-11-16 13:53:02 +01:00
|
|
|
@if (!$invoice->client->is_deleted)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $invoice->present()->client }}</td>
|
2016-02-25 10:25:07 +01:00
|
|
|
<td>{{ $invoice->present()->email }}</td>
|
2015-11-16 13:53:02 +01:00
|
|
|
@if ($multiUser)
|
|
|
|
<td>{{ $invoice->present()->user }}</td>
|
|
|
|
@endif
|
|
|
|
<td>{{ $invoice->invoice_number }}</td>
|
2015-12-07 14:34:55 +01:00
|
|
|
<td>{{ $account->formatMoney($invoice->amount, $invoice->client) }}</td>
|
2017-01-15 19:38:36 +01:00
|
|
|
<td>{{ $account->formatMoney($invoice->amount - $invoice->balance, $invoice->client) }}</td>
|
2015-11-16 13:53:02 +01:00
|
|
|
<td>{{ $invoice->po_number }}</td>
|
|
|
|
<td>{{ $invoice->present()->status }}</td>
|
|
|
|
<td>{{ $invoice->present()->invoice_date }}</td>
|
|
|
|
<td>{{ $invoice->present()->due_date }}</td>
|
|
|
|
@if ($account->custom_invoice_label1)
|
|
|
|
<td>{{ $invoice->custom_value1 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_label2)
|
|
|
|
<td>{{ $invoice->custom_value2 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_label1)
|
|
|
|
<td>{{ $invoice->custom_text_value1 }}</td>
|
|
|
|
@endif
|
|
|
|
@if ($account->custom_invoice_label2)
|
|
|
|
<td>{{ $invoice->custom_text_value2 }}</td>
|
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
@endif
|
2015-11-12 21:36:28 +01:00
|
|
|
@endforeach
|
|
|
|
|
2017-01-15 19:38:36 +01:00
|
|
|
<tr><td></td></tr>
|