Purchase order {{ $order->number }}

{{ config('app.name', 'The Ring Authority') }}

Supplier: {{ $order->supplier_name ?? $order->supplier?->name ?? '—' }}
Warehouse: {{ $order->location?->name ?? '—' }} ({{ $order->location?->code }})
Status: {{ ucfirst($order->status) }}
Ordered: {{ $order->ordered_at?->format('Y-m-d') ?? '—' }}

@if($order->notes)

Notes: {{ $order->notes }}

@endif @foreach($order->lines as $line) @endforeach
SKU Title Qty Unit cost Line total
{{ $line->sku }} {{ $line->title }} {{ $line->quantity_ordered }} {{ number_format($line->unit_cost_cents / 100, 2) }} {{ number_format(($line->quantity_ordered * $line->unit_cost_cents) / 100, 2) }}

Total: {{ $order->money() }}