1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/export/invoices.blade.php

113 lines
4.9 KiB
PHP
Raw Normal View History

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>
2019-01-30 12:00:26 +01:00
<td>{{ trans('texts.discount') }}</td>
@if (empty($entityType))
<td>{{ trans('texts.partial') }}</td>
<td>{{ trans('texts.partial_due_date') }}</td>
@endif
2017-05-16 15:47:20 +02:00
<td>{{ trans('texts.public_notes') }}</td>
<td>{{ trans('texts.private_notes') }}</td>
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice1'))
<td>{{ $account->present()->customLabel('invoice1') }}</td>
2015-11-12 21:36:28 +01:00
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice2'))
<td>{{ $account->present()->customLabel('invoice2') }}</td>
2015-11-12 21:36:28 +01:00
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice_text1'))
<td>{{ $account->present()->customLabel('invoice_text1') }}</td>
2015-11-12 21:36:28 +01:00
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice_text2'))
<td>{{ $account->present()->customLabel('invoice_text1') }}</td>
2015-11-12 21:36:28 +01:00
@endif
2017-08-23 14:26:03 +02:00
<td>{{ trans('texts.item_product') }}</td>
<td>{{ trans('texts.item_notes') }}</td>
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('product1'))
<td>{{ $account->present()->customLabel('product1') }}</td>
2017-08-23 14:26:03 +02:00
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('product2'))
<td>{{ $account->present()->customLabel('product2') }}</td>
2017-08-23 14:26:03 +02:00
@endif
<td>{{ trans('texts.item_cost') }}</td>
<td>{{ trans('texts.item_quantity') }}</td>
@if ($account->invoice_item_taxes)
<td>{{ trans('texts.item_tax_name') }}</td>
<td>{{ trans('texts.item_tax_rate') }}</td>
@if ($account->enable_second_tax_rate)
<td>{{ trans('texts.item_tax_name') }}</td>
<td>{{ trans('texts.item_tax_rate') }}</td>
@endif
@endif
2015-11-12 21:36:28 +01:00
</tr>
@foreach ($invoices as $invoice)
@if (!$invoice->client->is_deleted)
2017-08-23 10:26:00 +02:00
@foreach ($invoice->invoice_items as $item)
<tr>
<td>{{ $invoice->present()->client }}</td>
<td>{{ $invoice->present()->email }}</td>
@if ($multiUser)
<td>{{ $invoice->present()->user }}</td>
@endif
<td>{{ $invoice->invoice_number }}</td>
<td>{{ $account->formatMoney($invoice->amount, $invoice->client) }}</td>
<td>{{ $account->formatMoney($invoice->amount - $invoice->balance, $invoice->client) }}</td>
<td>{{ $invoice->po_number }}</td>
<td>{{ $invoice->present()->status }}</td>
2019-01-30 12:00:26 +01:00
<td>{{ $invoice->invoice_date }}</td>
<td>{{ $invoice->due_date }}</td>
<td>{{ $invoice->discount == 0 ? '' :
($invoice->is_amount_discount
? $account->formatMoney($invoice->discount, $invoice->client)
: $invoice->discount . '%') }}</td>
@if (empty($entityType))
<td>{{ $invoice->present()->partial }}</td>
2019-01-30 12:00:26 +01:00
<td>{{ $invoice->partial_due_date }}</td>
@endif
2017-08-23 10:26:00 +02:00
<td>{{ $invoice->public_notes }}</td>
<td>{{ $invoice->private_notes }}</td>
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice1'))
2017-08-23 10:26:00 +02:00
<td>{{ $invoice->custom_value1 }}</td>
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice2'))
2017-08-23 10:26:00 +02:00
<td>{{ $invoice->custom_value2 }}</td>
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice_text1'))
2017-08-23 10:26:00 +02:00
<td>{{ $invoice->custom_text_value1 }}</td>
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('invoice_text2'))
2017-08-23 10:26:00 +02:00
<td>{{ $invoice->custom_text_value2 }}</td>
@endif
2017-08-23 14:26:03 +02:00
<td>{{ $item->product_key }}</td>
<td>{{ $item->notes }}</td>
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('product1'))
2017-08-23 14:26:03 +02:00
<td>{{ $item->custom_value1 }}</td>
@endif
2018-04-04 15:24:59 +02:00
@if ($account->customLabel('product2'))
2017-08-23 14:26:03 +02:00
<td>{{ $item->custom_value2 }}</td>
@endif
<td>{{ $item->cost }}</td>
<td>{{ $item->qty }}</td>
@if ($account->invoice_item_taxes)
<td>{{ $item->tax_name1 }}</td>
<td>{{ $item->tax_rate1 }}</td>
@if ($account->enable_second_tax_rate)
<td>{{ $item->tax_name2 }}</td>
<td>{{ $item->tax_rate2 }}</td>
@endif
@endif
2017-08-23 10:26:00 +02:00
</tr>
@endforeach
@endif
2015-11-12 21:36:28 +01:00
@endforeach