{{-- resources/views/pdf/purchase-order.blade.php --}} PO {{ $po->po_number }}
{{-- Header --}}
{{ $property->name }}
@if($property->address_line1){{ $property->address_line1 }}
@endif @if($property->city){{ $property->city }}, {{ $property->country }}
@endif @if($property->phone)Tel: {{ $property->phone }}
@endif @if($property->email){{ $property->email }}
@endif @if($property->tax_number)Tax #: {{ $property->tax_number }}@endif
PURCHASE ORDER
{{ $po->po_number }}
{{ strtoupper($po->status) }}
{{-- Parties --}}
Supplier
{{ $po->supplier->name }}
@if($po->supplier->address)
{{ $po->supplier->address }}
@endif @if($po->supplier->contact_person)
Attn: {{ $po->supplier->contact_person }}
@endif @if($po->supplier->email)
{{ $po->supplier->email }}
@endif @if($po->supplier->phone)
{{ $po->supplier->phone }}
@endif
Delivery To
{{ $property->name }}
@if($po->delivery_address)
{{ $po->delivery_address }}
@elseif($property->address_line1)
{{ $property->address_line1 }}
@endif
{{-- Dates --}}
Order Date
{{ $po->order_date->format('d M Y') }}
@if($po->expected_date)
Expected Delivery
{{ $po->expected_date->format('d M Y') }}
@endif
Currency
{{ $po->currency }}
@if($po->approvedBy)
Approved By
{{ $po->approvedBy->name }}
@endif
{{-- Items --}} @foreach($po->items as $item) @endforeach
Description Unit Qty Unit Price Total
{{ $item->description }} {{ $item->unit ?? '—' }} {{ $item->quantity_ordered }} {{ $po->currency }} {{ number_format($item->unit_price, 2) }} {{ $po->currency }} {{ number_format($item->total_price, 2) }}
{{-- Totals --}}
Subtotal {{ $po->currency }} {{ number_format($po->subtotal, 2) }}
@if($po->tax_amount > 0)
Tax {{ $po->currency }} {{ number_format($po->tax_amount, 2) }}
@endif
TOTAL {{ $po->currency }} {{ number_format($po->total_amount, 2) }}
{{-- Notes --}} @if($po->notes)
Notes / Special Instructions
{{ $po->notes }}
@endif {{-- Signatures --}}
Authorised Signature · {{ $property->name }}
Supplier Acknowledgement · {{ $po->supplier->name }}
{{-- Footer --}}