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

{{ $invoice->name }}

@if($invoice->status)

{{ $invoice->status }}

@endif

{{ __('invoices::invoice.serial') }} {{ $invoice->getSerialNumber() }}

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

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

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

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

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

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

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

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

{{ __('invoices::invoice.vat') }}: {{ $invoice->seller->vat }}

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

{{ __('invoices::invoice.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)

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

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

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

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

{{ __('invoices::invoice.vat') }}: {{ $invoice->buyer->vat }}

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

{{ __('invoices::invoice.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
{{ __('invoices::invoice.description') }}{{ __('invoices::invoice.units') }}{{ __('invoices::invoice.quantity') }} {{ __('invoices::invoice.price') }}{{ __('invoices::invoice.discount') }}{{ __('invoices::invoice.tax') }}{{ __('invoices::invoice.sub_total') }}
{{ $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) }}
{{ __('invoices::invoice.total_discount') }} {{ $invoice->formatCurrency($invoice->total_discount) }}
{{ __('invoices::invoice.taxable_amount') }} {{ $invoice->formatCurrency($invoice->taxable_amount) }}
{{ __('invoices::invoice.tax_rate') }} {{ $invoice->tax_rate }}%
{{ __('invoices::invoice.total_taxes') }} {{ $invoice->formatCurrency($invoice->total_taxes) }}
{{ __('invoices::invoice.shipping') }} {{ $invoice->formatCurrency($invoice->shipping_amount) }}
{{ __('invoices::invoice.total_amount') }} {{ $invoice->formatCurrency($invoice->total_amount) }}
@if($invoice->notes)

{{ trans('invoices::invoice.notes') }}: {!! $invoice->notes !!}

@endif

{{ trans('invoices::invoice.amount_in_words') }}: {{ $invoice->getTotalAmountInWords() }}

{{ trans('invoices::invoice.pay_until') }}: {{ $invoice->getPayUntilDate() }}