{{ $settings->shop_address ?? '123 Business Avenue, Rajagiriya, Sri Lanka' }}
Tel: {{ $settings->shop_phone ?? '+94 11 234 5678' }} | Email: {{ $settings->shop_email ?? 'admin@poslink.lk' }}
Document No: {{ $purchaseOrder->po_code }}
| # | Item & Variation | Qty | Unit Cost | Disc. | Subtotal |
|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $item->product->name ?? 'N/A' }}
@php
$label = $item->productVariation->variationType->name ?? null;
@endphp
@if($label && !in_array(strtolower($label), ['default', 'n/a']))
Variation: {{ $label }}
@endif
ID: {{ $item->product->code ?? 'N/A' }}
|
{{ number_format($item->qty, 0) }} | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->discount_amount, 2) }} | {{ number_format($item->sub_total, 2) }} |
| Item Total: | Rs {{ number_format($purchaseOrder->items->sum(fn($i) => $i->qty * $i->unit_price), 2) }} |
| Total Discount: | - Rs {{ number_format($purchaseOrder->order_discount ?? 0, 2) }} |
| Total Tax: | Rs {{ number_format($purchaseOrder->order_tax ?? 0, 2) }} |
| Grand Total: | Rs {{ number_format($purchaseOrder->total_amount, 2) }} |