@use('App\Modules\Orders\Enums\OrderStatus')

Track your order

No need to sign in. Use the order number from your confirmation email.

@if ($notFound ?? false) @endif
@csrf @auth

Signed in? See every order in My orders.

@endauth
@if ($order) @php($current = $order->status->step())

Order #{{ $order->number }}

Placed {{ $order->placed_at->format('d M Y') }} · {{ $order->itemCount() }} {{ Str::plural('item', $order->itemCount()) }}

{{ $order->status->label() }}
@if ($order->status === OrderStatus::Cancelled)
This order was cancelled.
@else
    @foreach (OrderStatus::STEPS as $i => $step)
  1. $i < $current, 'current' => $i === $current])> {{ $step->label() }}
  2. @endforeach
@endif @foreach ($order->shipments() as $seller => $items) @php($ship = $items->first())
Parcel {{ $loop->iteration }} · {{ $seller }} {{ $ship->status->label() }}
{{ $items->pluck('product_name')->join(', ') }} @if ($ship->tracking_number) {{ $ship->courier }} · {{ $ship->tracking_number }} @if ($ship->delivered_at) · Delivered {{ $ship->delivered_at->format('d M') }} @elseif ($ship->shipped_at) · Shipped {{ $ship->shipped_at->format('d M') }} @endif @endif
@endforeach
@endif