@extends('layouts.tracking') @section('title', 'Tracking Result') @section('content')

Tracking ID: {{ $parcel->tracking_id }}

Track your shipment progress and delivery updates.

Sender Information

Name: {{ $parcel->sender_name }}

Email: {{ $parcel->sender_contact }}

Address: {{ $parcel->sender_address }}

Phone: {{ $parcel->sender_phone }}

Receiver Information

Name: {{ $parcel->reci_name }}

Email: {{ $parcel->reci_contact }}

Address: {{ $parcel->reci_address }}

Phone: {{ $parcel->reci_phone }}

Shipment Details
@if($parcel->dep_date)
Departure Date

{{ $parcel->dep_date }}

@endif @if($parcel->pickup_date)
Pick-up Date

{{ $parcel->pickup_date }}

@endif @if($parcel->exp_date)
Expected Delivery

{{ $parcel->exp_date }}

@endif @if($parcel->carrier_no)
Carrier ID

{{ $parcel->carrier_no }}

@endif @if($parcel->branch_pro)
Processed Branch

{{ $parcel->branch_pro }}

@endif @if($parcel->pickup_branch)
Pick-up Branch

{{ $parcel->pickup_branch }}

@endif @if($parcel->total_price)
Total shipping Cost

${{ $parcel->total_price }}

@endif @if($parcel->freight_cost)
Freight Cost

${{ $parcel->freight_cost }}

@endif @if($parcel->description)
Package Description

{{ $parcel->description }}

@endif
Package Details
@if($packages && $packages->count())
@foreach($packages as $index => $pkg) @endforeach
# Type Qty Weight Dimensions (L×W×H) Description Price Image
{{ $index + 1 }} {{ $pkg->type }} {{ $pkg->quantity }} {{ $pkg->weight }} kg {{ $pkg->length }} × {{ $pkg->width }} × {{ $pkg->height }} cm {{ $pkg->description }} ${{ $pkg->price }} @if($pkg->image) @else No Image @endif
@else

No package information available.

@endif
Shipment Progress
{{ $parcel->percentage }}%
Tracking History
@foreach($track as $item) @php /* Status Badge Color */ $statusColor = match($item->cstatus) { 'Pending' => 'warning', 'In Transit' => 'primary', 'Delivered' => 'success', 'Cancelled' => 'danger', 'Cancelleda' => 'danger', 'On Hold' => 'secondary', default => 'dark' }; /* Timeline Icon Color */ $iconColor = match($item->cstatus) { 'Pending' => '#ffc107', 'In Transit' => '#0d6efd', 'Delivered' => '#28a745', 'Cancelled' => '#dc3545', 'Cancelleda' => '#dc3545', 'On Hold' => '#6c757d', default => '#343a40' }; @endphp
{{ $item->cstatus }} @if($loop->first) Current @endif

{{ $item->remark }}

{{ $item->location }}

{{ $item->updated_date }} | {{ $item->updated_time }}
@endforeach
@endsection