{{ $purchase->branch?->address }}
{{ $purchase->branch?->phone }}
{{ $purchase->branch?->email }}
GRN No: {{ $purchase->purchase_no }}
Date: {{ $purchase->purchase_date?->format('Y-m-d H:i') }}
Supplier: {{ $purchase->supplier_name ?: '-' }}
Received By: {{ $purchase->user?->name ?: '-' }}
| Barcode | Product | Qty Received | B.Price Before VAT | VAT Type | VAT Amount | B.Price After VAT | Total |
|---|---|---|---|---|---|---|---|
| {{ $item->barcode ?: ($item->product?->barcode ?: '-') }} | {{ $item->product_name }} | {{ number_format($item->quantity, 2) }} | {{ \App\Models\SystemSetting::formatMoney($item->unit_cost) }} | {{ \App\Models\TaxRate::typeLabel($item->tax_type ?: 'non_taxable', $item->tax_rate) }} | {{ \App\Models\SystemSetting::formatMoney($item->tax_amount) }} | {{ \App\Models\SystemSetting::formatMoney($item->unit_cost_after_tax) }} | {{ \App\Models\SystemSetting::formatMoney($item->line_total) }} |
| Totals | {{ number_format($purchase->items->sum('quantity'), 2) }} | {{ \App\Models\SystemSetting::formatMoney($purchase->items->sum('tax_amount')) }} | {{ \App\Models\SystemSetting::formatMoney($purchase->items->sum('line_total')) }} | ||||
| VAT Summary | Before VAT | VAT | After VAT |
|---|---|---|---|
| {{ \App\Models\TaxRate::typeLabel($type, $rate) }} | {{ \App\Models\SystemSetting::formatMoney($items->sum(fn ($item) => (float) $item->line_total - (float) $item->tax_amount)) }} | {{ \App\Models\SystemSetting::formatMoney($items->sum('tax_amount')) }} | {{ \App\Models\SystemSetting::formatMoney($items->sum('line_total')) }} |