@if ($invoice->notes) @endif
{!! appLogoImage(['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')) @lang('contact.phone_abb') {{ Option::get('agency_phone') }} @endif
@endif

{{ trans('invoice.invoice') }}

{{ trans('invoice.number') }} : INV-{{ $invoice->number }}
{{ trans('app.date') }} : {{ dateId($invoice->date) }}

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

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

{{ $customer->name }}

@if ($customer->address)

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

@endif @if ($customer->phone)

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

@endif @if ($customer->website)

{{ $customer->website }}

@endif @if ($customer->pic)

UP. {{ $customer->pic }}

@endif
@if ($invoice->due_date)

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

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

@endif
{{ trans('invoice.items') }} :
@php $subtotal = 0; @endphp @foreach ($invoice->items as $key => $item) @php $subtotal += $item['amount']; @endphp @endforeach @if ($invoice->discount) @endif
{{ trans('app.table_no') }} {{ trans('invoice.item_description') }} {{ trans('invoice.item_amount') }}
{{ 1 + $key }} {!! nl2br($item['description']) !!} {{ formatRp($item['amount']) }}
{{ __('invoice.subtotal') }} : {{ formatRp($subtotal) }}
{{ __('invoice.discount') }} {{ $invoice->discount_notes ? '('.$invoice->discount_notes.')': '' }} : - {{ formatRp($invoice->discount) }}
{{ trans('app.total') }} {{ formatRp($invoice->amount) }}
{{ trans('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
{{ trans('bank_account.name') }}: {{ $bankAccount->name }}
{{ trans('bank_account.number') }}: {{ $bankAccount->number }}
{{ trans('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').', ' : '' }} {{ dateId($invoice->date) }}



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