@if ($order->status->isPaid() && $justPaid)
Order confirmed

Thank you, {{ strtok($order->customer_name, ' ') }}.

Payment received. Your new era is on its way. A confirmation has been sent to {{ $order->email }}.

@elseif ($order->status === \App\Enums\OrderStatus::AwaitingPayment)
Confirming payment

Almost there.

We're waiting for Paystack to confirm your payment. This page updates automatically — or check your email in a minute.

@else

Order {{ $order->number }}

@endif
Order {{ $order->number }} Placed {{ $order->created_at->format('j M Y') }} Status {{ $order->status->label() }}

Progress

@foreach ($order->history as $h)
@unless ($loop->last)@endunless {{ $h->note ?: \App\Enums\OrderStatus::tryFrom((string) $h->to_status)?->label() }}{{ $h->created_at->format('j M Y, g:ia') }}
@endforeach @if ($order->tracking_number)

Tracking: {{ $order->tracking_number }}@if ($order->courier) ({{ $order->courier }})@endif

@endif

Items

@foreach ($order->items as $item)
{{ $item->displayName() }}Qty {{ $item->quantity }} · {{ money($item->unit_price) }} each {{ money($item->line_subtotal) }}
@endforeach