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

Package Tracking Details

Tracking Code: {{ $order->tracking_code }}

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

{{ $order->payment_method === 'cod' ? 'Cash on Delivery' : ucfirst($order->payment_method) }}
Order Created
{{ $order->created_at->format('M d, Y - h:i A') }}
Package Picked Up
{{ $order->picked_at ? $order->picked_at->format('M d, Y - h:i A') : 'Pending pickup' }}
In Transit
{{ $order->status === 'in_transit' || $order->status === 'delivered' ? 'Package is on the way' : 'Waiting for pickup' }}
Delivered
{{ $order->delivered_at ? $order->delivered_at->format('M d, Y - h:i A') : 'Pending delivery' }}
Sender & Receiver
Sender Information

{{ $order->sender_name }}

{{ $order->sender_phone }}

{{ $order->sender_address }}

Receiver Information

{{ $order->receiver_name }}

{{ $order->receiver_phone }}

{{ $order->receiver_address }}

Package Details
Weight
{{ $order->weight }} kg
Size
{{ $order->size }}
Category
{{ $order->category }}
Vehicle
{{ ucfirst($order->vehicle_type) }}
@if($order->description)
Description:

{{ $order->description }}

@endif
Delivery Route
Pickup Location

{{ $order->pickupDistrict->name }}

{{ $order->pickupDistrict->province }}
Drop Location

{{ $order->dropDistrict->name }}

{{ $order->dropDistrict->province }}
@if($order->assignedOffice)
Assigned Office: {{ $order->assignedOffice->name }} {{ $order->assignedOffice->address }}
@endif
Pricing
Delivery Type: {{ ucfirst(str_replace('_', ' ', $order->delivery_type)) }}
Payment Method: {{ $order->payment_method === 'cod' ? 'COD' : ucfirst($order->payment_method) }}
Payment Status: {{ ucfirst($order->payment_status) }}

Total Amount: PKR {{ number_format($order->final_price, 2) }}
Track Another Package @auth @if($order->user_id === auth()->id()) View Full Details @endif @endauth
@endsection @push('styles') @endpush