@foreach ($users as $user)
{{-- Header --}}
{{ trans('billing.label.invoice') }} |
{{ __('invoice.serial') }} {{ $user->invoices()->where('invoices.status', '!=', 'paid')->first()->invoice_number }} {{ __('invoice.date') }}: {{ \Carbon\Carbon::parse($user->invoices()->where('invoices.status', '!=', 'paid')->first()->created_at)->format('d F Y') }} |
| {{ __('invoice.seller') }} | {{ __('invoice.buyer') }} | |
|---|---|---|
|
@if ($system->title)
{{ $system->title }} @endif @if ($system->address){{ __('invoice.address') }}: {{ $system->address }} @endif{{ __('invoice.invoice-number') }}: 12345 {{ __('invoice.vat') }}: - @if ($system->phone){{ __('invoice.phone') }}: {{ $system->phone }} @endif |
{{ $user->full_name }} @if ($user->user_address){{ __('invoice.address') }}: {{ $user->user_address->address }} {{ __('invoice.phone') }}: {{ $user->user_address->phone }} @endif |
| {{ __('billing.table.no') }} | {{ __('invoice.description') }} | {{ __('invoice.price') }} | {{ __('invoice.discount') }} | {{ __('invoice.tax') }} | {{ __('invoice.amount-received') }} | {{ __('invoice.sub_total') }} |
|---|---|---|---|---|---|---|
| {{ $loop->index + 1 }}. | {{ $invoice_item->item }} | @moneyIDR($invoice_item->price) | @moneyIDR($invoice_item->discount) | @moneyIDR($invoice->tax) | @moneyIDR($netPaid) | @moneyIDR($totalBill) |
| {{ __('invoice.total_amount') }}: | @moneyIDR($grandTotal) | |||||
{{ __('invoice.notes') }}:
{{ __('invoice.amount_in_words') }}:
{{ __('invoice.pay_until') }}: {{ \Carbon\Carbon::parse($invoices->last()->due_date)->format('d F Y') }}
@endforeach