@extends('layouts.app') @section('title', 'Tracking Detail '.$shipment->resi_number) @push('styles') @endpush @section('content')

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

Back to Tracking
@include('layouts.partials.flash')
{{ __('shipment_page.shipment_information') }}

{{ __('common.resi_number') }} {{ $shipment->resi_number }}

Status: {{ ucfirst(str_replace('_', ' ', $shipment->status)) }}

{{ __('shipment_page.customer') }}: {{ $shipment->customer->full_name }}

{{ __('shipment_page.total_weight_kg') }}: {{ number_format($shipment->weight_kg, 2) }} KG

QR Code

Scan for public tracking

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

{{ __('common.date_received') }} {{ $shipment->getFormattedDateReceived() }}

{{ __('common.date_loaded') }} {{ $shipment->getFormattedDateLoaded() }}

{{ __('common.date_departure') }} {{ $shipment->getFormattedDateDeparture() }}

{{ __('common.estimated_arrival') }} {{ $shipment->getFormattedEstimatedArrival() }}

{{ __('shipment_page.tracking_progress') }}
@php $statuses = ['In Warehouse', __("messages.loading") . " Delay"]; $currentStatusIndex = array_search($shipment->status, $statuses); @endphp @foreach($statuses as $index => $status)
@if($index <= $currentStatusIndex) @else @endif
{{ ucfirst(str_replace('_', ' ', $status)) }}
@if($index < count($statuses) - 1)
@endif @endforeach
Shipment Items
@foreach($shipment->items as $index => $item) @endforeach
# {{ __('shipment_page.description') }} Dimensions (cm) Volume (CBM) Weight (KG) {{ __('shipment_page.quantity') }}
{{ $index + 1 }} {{ $item->description }} {{ $item->length_m }} × {{ $item->width_m }} × {{ $item->height_m }} {{ number_format($item->volume_cbm, 4) }} {{ number_format($item->weight_kg, 2) }} {{ $item->quantity }}
{{ __('shipment_page.tracking_history') }}
@if($shipment->trackingEvents && $shipment->trackingEvents->count() > 0)
@foreach($shipment->trackingEvents as $event)
{{ ucfirst(str_replace('_', ' ', $event->status)) }}
{{ $event->getFormattedEventDate('d M Y H:i') }}

{{ $event->description }}

@if($event->location)

{{ $event->location }}

@endif
Added by: {{ $event->creator ? $event->creator->name : 'System' }}
@endforeach
@else
No tracking events recorded. Add events to help customers track their shipment progress.
@endif
@endsection @section('css') @endsection