{{-- One template for both admin & customer --}}
An order has been placed on {{ $appName }}.
@elseWe’ve received your order #{{ $order->order_no }}. A summary is below.
Please fill out the required Compulsory Buying Form:
Fill the Compulsory Buying Form
Order #: {{ $order->order_no }}
Date: {{ $order->created_at->format('Y-m-d H:i') }}
Status: {{ ucfirst($order->status) }}
Total: £{{ number_format((float)$order->total_gbp, 2) }}
| # | Item | Qty | Unit (GBP) | Line Total |
|---|---|---|---|---|
| {{ $i+1 }} | {{ $item->title ?? $item->name ?? 'Item' }} | {{ $qty }} | {{ number_format($unit, 2) }} | {{ number_format($line, 2) }} |
@if(!is_null($order->subtotal_gbp)) Subtotal: £{{ number_format((float)$order->subtotal_gbp, 2) }}
@endif
@if(!is_null($order->vat_gbp)) VAT: £{{ number_format((float)$order->vat_gbp, 2) }}
@endif
Total: £{{ number_format((float)($order->total_gbp ?? $calcTotal), 2) }}
Customer: {{ $order->customer_name ?? $order->user?->name ?? '—' }} ({{ $order->customer_email ?? $order->user?->email ?? '—' }})
@elseIf you have any questions, just reply to this email. Thanks for shopping with {{ $appName }}!
@endif