@php $currency = app(\App\Support\AppSettings::class)->get('currency', 'USD'); @endphp

Items

Placed {{ $order->created_at->format('d M Y, h:i A') }} - branch: {{ $order->branch?->name }}

All orders
@foreach ($order->items as $item) @endforeach
Product Batch Qty Unit price Subtotal

{{ $item->item_name }}

{{ $item->brand?->medicine?->generic_name }} {{ $item->brand?->medicine?->strength }}

{{ $item->batch?->batch_no }} (exp {{ $item->batch?->exp_date?->format('M Y') }}) {{ $item->quantity }} {{ $currency }} {{ number_format((float) $item->unit_price, 2) }} {{ $currency }} {{ number_format((float) $item->subtotal, 2) }}
Subtotal{{ $currency }} {{ number_format((float) $order->subtotal, 2) }}
VAT{{ $currency }} {{ number_format((float) $order->tax, 2) }}
Delivery{{ $currency }} {{ number_format((float) $order->delivery_fee, 2) }}
Total{{ $currency }} {{ number_format((float) $order->total, 2) }}

Customer & delivery

{{ $order->customer_name }}

{{ $order->phone }}

@if ($order->email)

{{ $order->email }}

@endif @if ($order->customer) View customer profile @endif

Ship to

{{ $order->address }}@if ($order->city), {{ $order->city }}@endif

@if ($order->notes)

Note: {{ $order->notes }}

@endif
@if ($order->prescription_note)

Prescription details (verify before dispatch)

{{ $order->prescription_note }}

@endif