@include('templates.pdf_header', [
'organisation' => $organisation,
'asOfDate' => $asOfDate,
'title' => 'PURCHASE ORDER #' . $purchaseOrder->po_number
])
Supplier Information
{{ $purchaseOrder->supplier->name ?? 'N/A' }}
{{ $purchaseOrder->supplier->address ?? '' }}
Phone: {{ $purchaseOrder->supplier->phone ?? '' }}
Email: {{ $purchaseOrder->supplier->email ?? '' }}
Ship To
{{ $organisation->organisation_name ?? 'N/A' }}
{{ $purchaseOrder->shipping_address ?: $organisation->address }}
Items Ordered
| # |
Description |
Qty |
Unit Price |
Total |
@php $subtotal = 0; @endphp
@foreach($purchaseOrder->items as $index => $item)
@php
$lineTotal = $item->quantity * $item->unit_price;
$subtotal += $lineTotal;
@endphp
| {{ $index + 1 }} |
{{ $item->item->name ?? $item->description ?? 'Item' }}
{{ $item->description ?? '' }}
|
{{ $item->quantity }} {{ $item->uom->name ?? '' }} |
{{ number_format($item->unit_price, 2) }} |
{{ number_format($lineTotal, 2) }} |
@endforeach
| Subtotal: |
{{ number_format($subtotal, 2) }} |
@if($purchaseOrder->tax_rate > 0)
| Tax ({{ $purchaseOrder->tax_rate }}%): |
{{ number_format($purchaseOrder->tax_amount, 2) }} |
@endif
@if($purchaseOrder->shipping_cost > 0)
| Shipping: |
{{ number_format($purchaseOrder->shipping_cost, 2) }} |
@endif
| Total: |
{{ number_format($subtotal + $purchaseOrder->tax_amount + $purchaseOrder->shipping_cost, 2) }} |
Purpose
{{ $purchaseOrder->purpose ?: 'N/A.' }}
Terms & Conditions
{{ $purchaseOrder->special_instructions ?: 'N/A' }}