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

{{ $invoice->name }}

@if($invoice->status)

{{ $invoice->status }}

@endif

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

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

{{-- Seller - Buyer --}}
{{ config('app.name') }} {{ __('Bill to') }}
@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->address)

{{ __('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(!empty($invoice->formatted_total_discount)) @endif @if($invoice->taxable_amount) @endif @if($invoice->tax_rate) @endif @if(!empty($invoice->formatted_total_taxes)) @endif @if($invoice->shipping_amount) @endif
{{ __('Description') }}{{ __('Units') }}{{ __('Qty') }} {{ __('Price') }}{{ __('Discount') }}{{ __('Tax') }}
{{ $item->title }} @if($item->description)

{{ $item->description }}

@endif
{{ $item->units }}{{ $item->quantity }} {{ $item->formatted_price_per_unit }} {{ $invoice->formatCurrency($item->discount) }} {{ $invoice->formatCurrency($item->tax) }}
{{ __('Total discount') }} {{ $invoice->formatted_total_discount }}
{{ __('Taxable amount') }} {{ $invoice->formatCurrency($invoice->taxable_amount) }}
{{ __('Tax rate') }} {{ $invoice->tax_rate }}%
{{ __('Total taxes') }} {{ $invoice->formatted_total_taxes }}
{{ __('Shipping') }} {{ $invoice->formatCurrency($invoice->shipping_amount) }}
{{ __('Total amount') }} {{ $invoice->formatted_total_amount }}
@if($invoice->notes)

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

@endif