@if ($invoice->notes) @endif
{!! app_logo_image(['style' => 'width:100%']) !!}

{{ Option::get('agency_name') }}

{{ Option::get('agency_tagline') }}
@if (Option::get('agency_address'))
{{ Option::get('agency_address') }}
@if (Option::get('agency_phone')) {{ __('contact.phone_abb') }} {{ Option::get('agency_phone') }} @endif
@endif

{{ __('invoice.invoice') }}

{{ __('invoice.number') }} : INV-{{ $invoice->number }}
{{ __('app.date') }} : {{ date_id($invoice->date) }}

{{ __('app.to') }} :

@php $customer = $invoice->project->customer; @endphp

{{ $customer->name }}

@if ($customer->address)

{!! nl2br($customer->address) !!}

@endif @if ($customer->phone)

{{ __('contact.phone') }} : {{ $customer->phone }}

@endif @if ($customer->website)

{{ $customer->website }}

@endif @if ($customer->pic)

UP. {{ $customer->pic }}

@endif
@if ($invoice->due_date)

{{ __('invoice.due_date') }}

{{ date_id($invoice->due_date) }}

@endif @if ($taxId = Option::get('agency_tax_id'))

{{ __('agency.tax_id') }}

{{ $taxId }}

@endif
{{ __('invoice.items') }} :
@php $subtotal = 0; @endphp @foreach ($invoice->items as $key => $item) @php $subtotal += $item['amount']; @endphp @endforeach @if ($invoice->discount) @endif
{{ __('app.table_no') }} {{ __('invoice.item_description') }} {{ __('invoice.item_amount') }}
{{ 1 + $key }} {!! nl2br($item['description']) !!} {{ format_money($item['amount']) }}
{{ __('invoice.subtotal') }} : {{ format_money($subtotal) }}
{{ __('invoice.discount') }} {{ $invoice->discount_notes ? '('.$invoice->discount_notes.')': '' }} : - {{ format_money($invoice->discount) }}
{{ __('app.total') }} {{ format_money($invoice->amount) }}
{{ __('payment.words_amount') }} : {{ ucwords(Terbilang::make($invoice->amount)) }} {{ Option::get('money_sign_in_word', 'Rupiah') }}

{{ __('app.notes') }} : {!! nl2br($invoice->notes) !!}

@empty ($bankAccounts) @else

{{ __('invoice.payment_instruction') }}

@foreach ($bankAccounts as $key => $bankAccount) @php $bankAccount = (object) $bankAccount; @endphp
{{ __('bank_account.name') }}: {{ $bankAccount->name }}
{{ __('bank_account.number') }}: {{ $bankAccount->number }}
{{ __('bank_account.account_name') }}: {{ $bankAccount->account_name }}
@if ($key == count($bankAccounts))
@endif @endforeach @endempty

{{ __('invoice.thanks_text') }}

{{ Option::get('agency_city') ? Option::get('agency_city').', ' : '' }} {{ date_id($invoice->date) }}



{{ Option::get('agency_name') }}