@include('pdf.partials.style')
@php $logoPath = $setting->logo_path ? public_path('storage/'.$setting->logo_path) : null; $hasLogo = $logoPath && file_exists($logoPath); @endphp| Invoice No. | {{ $document->number }} |
| Invoice Date | {{ $document->issue_date->format('d M Y') }} |
| Due Date | {{ optional($document->due_date)->format('d M Y') }} |
| Reference | {{ $document->reference_number ?: '-' }} |
| # | Item | Description | Qty | Unit Price | Discount | VAT | Total | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $line->item->item_name ?? 'Custom' }} | {{ $line->description }} | {{ number_format($line->quantity,2) }} | @if($line->by_others)By Others | @elseAED {{ number_format($line->unit_price,2) }} | AED {{ number_format($line->discount,2) }} | {{ number_format($line->vat_rate,2) }}% AED {{ number_format($line->vat_amount,2) }} |
AED {{ number_format($line->line_total,2) }} | @endif|||
| Subtotal | AED {{ number_format($document->subtotal,2) }} |
| Discount | AED {{ number_format($document->discount_total,2) }} |
| VAT Total | AED {{ number_format($document->vat_total,2) }} |
| Grand Total | AED {{ number_format($document->grand_total,2) }} |
| Paid | AED {{ number_format($document->paid_amount,2) }} |
| Balance Due | AED {{ number_format($document->balance_due,2) }} |