@if($company->logo) {{ $company->name }} @else

{{ $company->name }}

@endif

{{ $company->address }}

{{ $company->phone }} | {{ $company->email }} | {{ $company->website }}

Document
{{ $document->type }}
Reference
{{ $document->reference_number }}
Issue Date
{{ $document->issue_date }}
Due Date
{{ $document->due_date ?? 'N/A' }}
Bill To
{{ $document->customer_data['customer_name'] ?? '' }}
{{ $document->customer_data['company_name'] ?? '' }}
{{ $document->customer_data['address'] ?? '' }}
Contact
{{ $document->customer_data['contact_person'] ?? '' }}
{{ $document->customer_data['email'] ?? '' }}
{{ $document->customer_data['phone'] ?? '' }}
VAT / TRN
{{ $document->customer_data['vat_trn'] ?? '-' }}
@foreach($items as $item) @endforeach
Description Qty Unit Unit Price Total
{{ $item->product_name }}@if($item->specifications)
{{ $item->specifications }}@endif
{{ number_format($item->quantity, 2) }} {{ $item->unit }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->line_total, 2) }}
Subtotal: AED {{ number_format($document->subtotal, 2) }}
VAT ({{ $document->vat_rate }}%): AED {{ number_format($document->vat_amount, 2) }}
Grand Total: AED {{ number_format($document->grand_total, 2) }}

Payment Details

{{ $company->bank_name ?? 'Bank information not configured.' }}

{{ $company->iban ? 'IBAN: '.$company->iban : '' }} {{ $company->swift_code ? 'SWIFT: '.$company->swift_code : '' }}

Notes

{{ $document->notes ?? 'No additional notes.' }}