Back to Tracking
@if (session('success')) @endif @if (session('error')) @endif

Tracking #{{ $shipment->resi_number }}

@php $statusIcons = [ 'draft' => 'mdi-pencil-outline', 'booked' => 'mdi-calendar-check', 'loaded' => 'mdi-package-variant', 'in_transit' => 'mdi-truck-delivery', 'delivered' => 'mdi-check-circle' ]; $icon = $statusIcons[$shipment->status] ?? 'mdi-information-outline'; @endphp {{ ucfirst(str_replace('_', ' ', $shipment->status)) }}

{{ __('shipment_page.shipment_progress') }}

@php $statuses = ['draft', 'booked', 'loaded', 'in_transit', 'delivered']; $statusLabels = [ 'Order Received', 'Shipment Booked', 'Cargo Loaded', __('shipment_page.status_in_transit'), __('shipment_page.status_delivered') ]; $statusIcons = [ 'mdi-clipboard-text', 'mdi-calendar-check', 'mdi-package-variant-closed', 'mdi-truck-delivery', 'mdi-map-marker-check' ]; $currentStatusIndex = array_search($shipment->status, $statuses); @endphp @if(isset($currentStatusIndex)) @foreach($statuses as $index => $status)
{{ $statusLabels[$index] }}
@if($index < count($statuses) - 1)
@endif @endforeach @endif
{{ __('shipment_page.shipment_information') }}
{{ __('shipment_page.customer') }}: {{ $shipment->customer->full_name }}
{{ __('shipment_page.total_volume_cbm') }}: {{ number_format($shipment->volume_cbm, 4) }} CBM
{{ __('shipment_page.total_weight_kg') }}: {{ number_format($shipment->weight_kg, 2) }} KG
{{ __('shipment_page.total_items') }}: {{ $shipment->items->count() }}
{{ __('shipment_page.timeline_information') }}
{{ __('common.date_received') }} {{ $shipment->getFormattedDateReceived() ?: 'Not yet received' }}
{{ __('common.date_loaded') }} {{ $shipment->getFormattedDateLoaded() ?: 'Not yet loaded' }}
{{ __('common.date_departure') }} {{ $shipment->getFormattedDateDeparture() ?: 'Not yet departed' }}
{{ __('common.estimated_arrival') }} {{ $shipment->getFormattedEstimatedArrival() ?: 'Not available' }}

{{ __('shipment_page.tracking_history') }}

@if($shipment->trackingEvents && $shipment->trackingEvents->count() > 0)
@foreach($shipment->trackingEvents as $event)
{{ $event->getFormattedEventDate() }}
@php $eventIcons = [ 'draft' => 'mdi-clipboard-text', 'booked' => 'mdi-calendar-check', 'received' => 'mdi-package-variant-closed', 'loaded' => 'mdi-dolly', 'in_transit' => 'mdi-truck-delivery', 'arrived' => 'mdi-truck-check', 'delivered' => 'mdi-package-variant-closed-check', 'completed' => 'mdi-check-circle', 'cancelled' => 'mdi-cancel' ]; $icon = $eventIcons[$event->status] ?? 'mdi-information-outline'; @endphp {{ ucfirst(str_replace('_', ' ', $event->status)) }}

{{ $event->description }}

@if($event->location)
{{ $event->location }}
@endif
@endforeach
@else
@if($shipment->status == 'delivered')
{{ now()->format('d M Y, H:i') }}
{{ __('shipment_page.status_delivered') }}

Package has been delivered to the recipient.

@endif @if(in_array($shipment->status, ['in_transit', 'delivered']))
{{ $shipment->getFormattedDateDeparture('d M Y, H:i') }}
{{ __('shipment_page.status_in_transit') }}

Package is in transit to the destination.

@endif @if(in_array($shipment->status, ['loaded', 'in_transit', 'delivered']))
{{ $shipment->getFormattedDateLoaded('d M Y, H:i') }}
{{ __('shipment_page.status_loaded') }}

Package has been loaded for shipment.

@endif @if(in_array($shipment->status, ['booked', 'loaded', 'in_transit', 'delivered']))
{{ $shipment->created_at->format('d M Y, H:i') }}
{{ __('shipment_page.status_booked') }}

Shipment has been booked.

@endif
{{ $shipment->getFormattedDateReceived('d M Y, H:i') }}
Order Received

Your shipment order has been received.

@endif

Shipment Items

@foreach($shipment->items as $index => $item) @endforeach
# {{ __('shipment_page.description') }} Dimensions (cm) Weight (kg) Qty
{{ $index + 1 }} {{ $item->description }} {{ $item->length_m }} × {{ $item->width_m }} × {{ $item->height_m }} {{ number_format($item->weight_kg, 2) }} {{ $item->quantity }}