{{ $settings->shop_name ?? 'POS LINK (PVT) LTD' }}

{{ $settings->shop_address ?? '123 Business Avenue, Rajagiriya, Sri Lanka' }}

Tel: {{ $settings->shop_phone ?? '+94 11 234 5678' }} | Email: {{ $settings->shop_email ?? 'admin@poslink.lk' }}

Purchase Order

Document No: {{ $purchaseOrder->po_code }}

Supplier Information
{{ $purchaseOrder->supplier->name ?? 'N/A' }}
{{ $purchaseOrder->supplier->address ?? 'Address not available' }}
@if($purchaseOrder->supplier->phone)
Phone: {{ $purchaseOrder->supplier->phone }}
@endif @if($purchaseOrder->supplier->email)
Email: {{ $purchaseOrder->supplier->email }}
@endif
Deliver To / Warehouse
{{ $purchaseOrder->warehouse->name ?? 'N/A' }}
Desired Delivery Location
Status: {{ $purchaseOrder->status == 1 ? 'RECEIVED' : 'PENDING' }}
Order Date: {{ date('Y-M-d', strtotime($purchaseOrder->order_date)) }}
@foreach($purchaseOrder->items as $index => $item) @endforeach
# 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) }}
@if($purchaseOrder->note)
Important Remarks
{{ $purchaseOrder->note }}
@endif
Authorized Signature / Stamp