@php
$tracking = $shipment->tracking ?? [
['event' => 'Booking Confirmed', 'location' => 'Shanghai, China', 'date' => '05 Jan 2026 09:00', 'completed' => true],
['event' => 'Container Loaded at Port', 'location' => 'Yangshan Port, Shanghai', 'date' => '12 Jan 2026 14:30', 'completed' => true],
['event' => 'Vessel Departed', 'location' => 'Shanghai, China', 'date' => '14 Jan 2026 08:00', 'completed' => true],
['event' => 'Transshipment at Colombo', 'location' => 'Colombo, Sri Lanka', 'date' => '22 Jan 2026 11:00', 'completed' => true],
['event' => 'Vessel Departed Colombo', 'location' => 'Colombo, Sri Lanka', 'date' => '24 Jan 2026 06:00', 'completed' => true],
['event' => 'Arrived at JNPT', 'location' => 'JNPT, Navi Mumbai', 'date' => '03 Feb 2026 16:00', 'completed' => false],
['event' => 'Discharged at Port', 'location' => 'JNPT, Navi Mumbai', 'date' => null, 'completed' => false],
['event' => 'Customs Clearance', 'location' => 'JNPT, Navi Mumbai', 'date' => null, 'completed' => false],
['event' => 'Delivered to Warehouse', 'location' => 'Mumbai', 'date' => null, 'completed' => false],
];
@endphp
@foreach($tracking as $i => $t)
@if($t['completed'])@else{{ $i + 1 }}@endif
@if(!$loop->last)
@endif
{{ $t['event'] }}
{{ $t['location'] }}
{{ $t['date'] ?? 'Pending' }}
@endforeach