@include('templates.pdf_header', [ 'organisation' => $organisation, 'title' => 'SALE ORDER' ])
Customer Information
Customer: {{ $saleOrder->customer->name ?? '' }}
Address: {{ $saleOrder->customer->address ?? 'N/A' }}
Contact: {{ $saleOrder->customer->phone ?? 'N/A' }}
Email: {{ $saleOrder->customer->email ?? 'N/A' }}
Order Information
Order #: {{ $saleOrder->so_number }}
Order Date: {{ $saleOrder->order_date }}
Payment Terms: {{$saleOrder->payment_terms}}
Expected Delivery: {{ $saleOrder->delivery_date ?? 'TBD' }}
Order Items
@foreach($saleOrder->orderLines as $line) @endforeach
Item Description Qty UOM Unit Price Discount % Tax % Line Total
{{ $line->name ?? $line->item->name ?? $line->quoteLine->name?? "N/A" }} {{ $line->description ?? 'N/A' }} {{ $line->qty_ordered }} {{ $line->uom->name ?? '' }} {{ number_format($line->unit_price, 2) }} {{ $line->discount_pct }} {{ $line->tax_pct }} {{ number_format($line->line_total, 2) }}
Subtotal: {{ number_format($saleOrder->subtotal ?? $saleOrder->total_amount, 2) }}
Tax: {{ number_format($saleOrder->tax_amount ?? 0, 2) }}
Shipping: {{ number_format($saleOrder->shipping_amount ?? 0, 2) }}
Other Charges: {{ number_format($saleOrder->other_charges ?? 0, 2) }}
TOTAL: {{ number_format($saleOrder->total_amount, 2) }}