@extends('layouts.mobile') @section('title', 'Order Details') @section('content')

Order Details

{{ $order->tracking_code }}

{{ ucfirst(str_replace('_', ' ', $order->status)) }}
@if($order->status === 'delivered')
Order Completed Successfully!
@elseif($order->status === 'in_transit')
Package is on the way!
@elseif($order->status === 'picked')
Package picked up from sender
@else
Order created, waiting for pickup
@endif
Order Information
Order ID #{{ $order->id }}
Tracking {{ $order->tracking_code }}
Order Date {{ $order->created_at->format('M d, Y') }}
{{ $order->created_at->format('h:i A') }}
Total Amount Rs. {{ number_format($order->final_price) }}
{{ ucfirst($order->payment_method) }}
Package Type {{ ucfirst($order->package_type) }}
Weight {{ $order->weight }} kg
Pickup & Delivery
Pickup Location
{{ $order->pickupDistrict->name }}
{{ $order->pickup_address }}
Delivery Location
{{ $order->dropDistrict->name }}
{{ $order->drop_address }}
Recipient Information
{{ $order->recipient_name }}
{{ $order->recipient_phone }}
@if($order->assignedAgent)
Delivery Agent
{{ $order->assignedAgent->user->name }}
{{ $order->assignedAgent->user->phone ?? 'Contact through office' }}
Agent ID: {{ $order->assignedAgent->agent_id }}
@if($order->assignedAgent->user->phone) @endif
@endif @if($order->special_instructions)
Special Instructions

{{ $order->special_instructions }}

@endif
Payment Information
Base Price Rs. {{ number_format($order->base_price) }}
Final Price Rs. {{ number_format($order->final_price) }}
Method {{ ucfirst($order->payment_method) }}
Status {{ ucfirst($order->payment_status) }}
Need Help with this Order?
@endsection @push('scripts') @endpush