@if(auth()->user()->organisation->logo) {{ auth()->user()->organisation->organisation_name }} @else

{{ auth()->user()->organisation->organisation_name }}

@endif

Purchase Order

PO #{{ $purchaseOrder->purchase_order_no }}

Date: {{ $purchaseOrder->created_at->format('F j, Y') }}

Supplier: {{ $purchaseOrder->supplier->supplier_name }}

Dear {{ $purchaseOrder->supplier->supplier_name }},

Please find attached purchase order #{{ $purchaseOrder->purchase_order_no }}.

@php $subtotal = 0; @endphp @foreach($purchaseOrder->items as $index => $item) @php $lineTotal = $item->quantity * $item->unit_price; $subtotal += $lineTotal; @endphp @endforeach @if($purchaseOrder->tax_amount > 0) @endif
Description Amount
Subtotal ({{ $purchaseOrder->items->count() }} items) {{ config('app.currency_symbol') }}{{ number_format($subtotal, 2) }}
Tax ({{ $purchaseOrder->tax_rate }}%) {{ config('app.currency_symbol') }}{{ number_format($purchaseOrder->tax_amount, 2) }}
Total {{ number_format($subtotal + $purchaseOrder->tax_amount + $purchaseOrder->shipping_cost, 2) }}
@if($purchaseOrder->delivery_instructions)

Special Instructions

{{ $purchaseOrder->delivery_instructions }}

@endif
Confirm Receipt

Best regards,

{{ auth()->user()->employee->first_name }} {{ auth()->user()->employee->last_name ?? '' }}

{{ auth()->user()->organisation->organisation_name }}

Phone: {{ auth()->user()->employee->phone ?? '' }}