{{-- Header --}} @if($invoice->logo) logo @endif

{{ $invoice->name }} {{$invoice->getSerialNumber()}}

@if($invoice->status)

{{ $invoice->status }}

@endif

{{ __('Serial No.') }} {{ $invoice->getSerialNumber() }}

{{ __('Invoice date') }}: {{ $invoice->getDate() }}

{{-- Seller - Buyer --}}
{{ __('Seller') }} {{ __('Buyer') }}
@if($invoice->seller->name)

{{ $invoice->seller->name }}

@endif @if($invoice->seller->address)

{{ __('Address') }}: {{ $invoice->seller->address }}

@endif @if($invoice->seller->code)

{{ __('Code') }}: {{ $invoice->seller->code }}

@endif @if($invoice->seller->vat)

{{ __('VAT Code') }}: {{ $invoice->seller->vat }}

@endif @if($invoice->seller->phone)

{{ __('Phone') }}: {{ $invoice->seller->phone }}

@endif @foreach($invoice->seller->custom_fields as $key => $value)

{{ ucfirst($key) }}: {{ $value }}

@endforeach
@if($invoice->buyer->name)

{{ $invoice->buyer->name }}

@endif @if($invoice->buyer->adress)

{{ __('Address') }}: {{ $invoice->buyer->address }}

@endif @if($invoice->buyer->code)

{{ __('Code') }}: {{ $invoice->buyer->code }}

@endif @if($invoice->buyer->vat)

{{ __('VAT Code') }}: {{ $invoice->buyer->vat }}

@endif @if($invoice->buyer->phone)

{{ __('Phone') }}: {{ $invoice->buyer->phone }}

@endif @foreach($invoice->buyer->custom_fields as $key => $value)

{{ ucfirst($key) }}: {{ $value }}

@endforeach
{{-- Table --}} @if($invoice->hasItemUnits) @endif @if($invoice->hasItemDiscount) @endif @if($invoice->hasItemTax) @endif {{-- Items --}} @foreach($invoice->items as $item) @if($invoice->hasItemUnits) @endif @if($invoice->hasItemDiscount) @endif @if($invoice->hasItemTax) @endif @endforeach {{-- Summary --}} @if($invoice->hasItemOrInvoiceDiscount()) @endif @if($invoice->taxable_amount) @endif @if($invoice->tax_rate) @endif @if($invoice->hasItemOrInvoiceTax()) @endif @if($invoice->shipping_amount) @endif
{{ __('Description') }}{{ __('Units') }}{{ __('Quantity') }} {{ __('Price') }}{{ __('Discount') }}{{ __('Tax') }}{{ __('Subtotal') }}
{{ $item->title }} @if($item->description)

{{ $item->description }}

@endif
{{ $item->units }}{{ $item->quantity }} {{ $invoice->formatCurrency($item->price_per_unit) }} {{ $invoice->formatCurrency($item->discount) }} {{ $invoice->formatCurrency($item->tax) }} {{ $invoice->formatCurrency($item->sub_total_price) }}
{{ __('Total discount') }} {{ $invoice->formatCurrency($invoice->total_discount) }}
{{ __('Taxable amount') }} {{ $invoice->formatCurrency($invoice->taxable_amount) }}
{{ __('Tax rate') }} {{ $invoice->tax_rate }}%
{{ __('Total taxes') }} {{ $invoice->formatCurrency($invoice->total_taxes) }}
{{ __('Shipping') }} {{ $invoice->formatCurrency($invoice->shipping_amount) }}
{{ __('Total amount') }} {{ $invoice->formatCurrency($invoice->total_amount) }}
@if($invoice->notes)

{{ __('Notes') }}: {!! $invoice->notes !!}

@endif

{{ __('Amount in words') }}: {{ $invoice->getTotalAmountInWords() }}

{{ __('Please pay until') }}: {{ $invoice->getPayUntilDate() }}