{{-- resources/views/tracking/result.blade.php --}} Tracking Result @php $statuses = [ 'received' => [ 'label' => 'Received', 'icon' => 'arrow-down-tray', ], 'departed' => [ 'label' => 'Departed', 'icon' => 'paper-airplane', ], 'in_transit' => [ 'label' => 'In Transit', 'icon' => 'truck', ], 'arrived' => [ 'label' => 'Arrived', 'icon' => 'flag', ], 'customs_clearance' => [ 'label' => 'Customs Clearance', 'icon' => 'shield-check', ], 'ready_for_pickup' => [ 'label' => 'Ready for Pickup', 'icon' => 'inbox-arrow-down', ], 'delivered' => [ 'label' => 'Delivered', 'icon' => 'check-circle', ], ]; $statusKeys = array_keys($statuses); $currentIndex = array_search($consignment->status, $statusKeys); @endphp
{{-- Back --}} ← Track another shipment {{-- Header card --}}

Tracking Code

{{ $consignment->tracking_code }}

{{ strtoupper($consignment->shipment->type) }} FREIGHT

Consignee

{{ $consignment->customer_name }}

Description

{{ $consignment->description }}

Cartons

{{ $consignment->ctns }}

CBM

{{ $consignment->cbm }}

@if($consignment->actual_weight)

Weight

{{ $consignment->actual_weight }} kg

@endif

Destination

{{ $consignment->destination }}

@if($consignment->shipment->eta)

ETA

{{ $consignment->shipment->eta->format('M d, Y') }}

@endif
{{-- Status Timeline --}}

Shipment Progress

@foreach($statuses as $key => $info) @php $stepIndex = array_search($key, $statusKeys); $done = $stepIndex <= $currentIndex; $current = $key === $consignment->status; @endphp

{{ $info['label'] }} @if($current) Current @endif

@if(! $loop->last)
@endif @endforeach
{{-- Create account nudge --}} @guest

Create a free account to track all your shipments in one place

Create Account →
@endguest