{{-- Header Row --}}
No. {{ $order->po_no }} {{ $order->order_date->format('d M Y') }}
{{-- Document Title --}}
Purchase Order
{{-- Supplier Name --}}
{{ $supplier->name }}
@if($supplier->billing_address){{ $supplier->billing_address }}@endif @if($supplier->mobile) | Ph: {{ $supplier->mobile }}@endif @if($supplier->gst_number) | GST: {{ $supplier->gst_number }}@endif
{{-- Items Table --}} @php $totalAmount = 0; @endphp @foreach($order->items as $index => $item) @php $lineAmount = $item->qty * $item->rate; $totalAmount += $lineAmount; @endphp @endforeach
Sr. Qty Unit Items HSN Rate Amount
{{ $index + 1 }}. {{ indian_number($item->qty, 2) }} {{ strtolower($item->unit) }} {{ $item->product->name ?? 'Product' }} {{ $item->product->hsn ?? '-' }} {{ $item->rate > 0 ? indian_number($item->rate, 2) : '-' }} {{ $lineAmount > 0 ? indian_number($lineAmount, 2) : '-' }}
{{-- Totals Section --}} @if($totalAmount > 0)
Total: {{ indian_number($totalAmount, 2) }}
@endif {{-- Separator --}}
{{-- Company Footer --}}
{{ $company->legal_name ?? $company->name }}
@if($company->billing_address){{ $company->billing_address }}
@endif @if($company->phone)Ph: {{ $company->phone }} @endif @if($company->gstin)| GSTIN: {{ $company->gstin }}@endif
This is a computer-generated purchase order.