@extends('layouts.app') @section('title', 'Track Your Order - AVIOBOOTS') @section('content') @php $activeTrackingOrders = $activeTrackingOrders ?? collect(); $prefilledTrackingId = old('tracking_id', request('tracking_id', $activeTrackingOrders->first()->tracking_id ?? '')); @endphp

Track Your Order

Enter your Tracking ID to see the latest order status, or open one of your active orders below.

@if($activeTrackingOrders->isNotEmpty())

Your Active Orders

Visible here until delivery is complete
@foreach($activeTrackingOrders as $order) @php $statusMeta = [ 'pending' => ['label' => 'Pending', 'bg' => '#fffbeb', 'border' => '#fde68a', 'text' => '#92400e'], 'confirmed' => ['label' => 'In Production', 'bg' => '#eff6ff', 'border' => '#bfdbfe', 'text' => '#1d4ed8'], 'shipped' => ['label' => 'Shipped', 'bg' => '#f0fdf4', 'border' => '#86efac', 'text' => '#166534'], ][$order->status] ?? ['label' => ucfirst($order->status), 'bg' => '#f8fafc', 'border' => '#cbd5e1', 'text' => '#334155']; @endphp

Order #{{ $order->id }}

{{ $order->tracking_id }}

{{ $statusMeta['label'] }}

Placed {{ $order->created_at->format('d M Y') }}

Open Live Tracking Open Public Page
@endforeach
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@csrf

Your Tracking ID is shared after checkout and in your order email.

@if($activeTrackingOrders->isNotEmpty())

Quick tip: the first active order is already filled in for you.

@endif
@endsection