@extends('layouts.customer') @section('title', 'Order #' . $order->order_number . ' – 12-Step Live Import Tracking') @section('page_title', 'Order #' . $order->order_number) @section('content')
Back to All Orders
Car
Order #{{ $order->order_number }} {{ $order->order_type }}

{{ $order->car_title }}

Chassis: {{ $order->chassis_number ?? 'Awaiting Allocation' }} @if($order->bid && $order->bid->auctionVehicle) · Lot #{{ $order->bid->auctionVehicle->lot_number }} ({{ $order->bid->auctionVehicle->auctionHouse->name ?? 'Japan' }}) @endif

Total Landed Cost ৳{{ number_format($order->total_amount_bdt) }}
Paid Amount ৳{{ number_format($order->paid_amount_bdt) }}
Balance Due ৳{{ number_format($order->due_amount_bdt) }}

12-Step Live Import Milestone Tracker

Complete provenance tracking from Japanese auction floor to Dhaka handover.

@php $currentIndex = $order->current_step_index; $percent = min(100, round((($currentIndex + 1) / 12) * 100)); @endphp
{{ $percent }}% Journey Completed
@php $stepKeys = array_keys($trackingSteps); @endphp @foreach($stepKeys as $idx => $stepKey) @php $step = $trackingSteps[$stepKey]; $isCompleted = $idx < $currentIndex; $isCurrent = $idx === $currentIndex; $isUpcoming = $idx > $currentIndex; @endphp
Milestone {{ sprintf('%02d', $idx + 1) }} @if($isCompleted) @elseif($isCurrent) @else {{ $idx + 1 }} @endif

{{ $step['title'] }}

{{ $step['desc'] }}

@if($isCurrent)
Currently In Progress
@endif
@endforeach

Marine Shipping & Customs Manifest

Vessel Name: {{ $order->vessel_name ?? 'Pending Vessel Nomination' }}
Voyage / Call Sign: {{ $order->voyage_number ?? 'TBD' }}
Bill of Lading (B/L): {{ $order->bl_number ?? 'In Processing' }}
Shipping Line: {{ $order->shipping_line ?? 'NYK / MOL / Kline' }}
Port of Loading (Japan): {{ $order->port_of_loading ?? 'Yokohama / Nagoya' }}
Port of Discharge (Bangladesh): {{ $order->port_of_discharge ?? 'Chittagong Port' }}
ETD Japan: {{ $order->etd_japan ? $order->etd_japan->format('M d, Y') : 'Scheduled' }}
ETA Chittagong: {{ $order->eta_chittagong ? $order->eta_chittagong->format('M d, Y') : 'Estimating' }}
Customs Clearance Date: {{ $order->customs_cleared_date ? $order->customs_cleared_date->format('M d, Y') : 'Pending Berthing' }}

Import History & C&F Notes

@forelse($order->statusHistory as $history)
{{ $history->status_title ?? ucwords(str_replace('_', ' ', $history->new_status)) }} {{ $history->occurred_at ? $history->occurred_at->format('M d, Y h:i A') : $history->created_at->format('M d, Y') }}

{{ $history->notes ?? 'Milestone achieved.' }}

@empty

Order successfully initiated.

@endforelse

Invoices & Payments Ledger

Multi-stage transparent payment milestones.

@if($order->invoices->count() > 0)
@foreach($order->invoices as $invoice)
{{ $invoice->title ?? 'Invoice #' . $invoice->invoice_number }} {{ $invoice->invoice_date ? $invoice->invoice_date->format('M d, Y') : $invoice->created_at->format('M d, Y') }}
{{ $invoice->status }}
Invoice Amount: ৳{{ number_format($invoice->amount_bdt) }}
@if($invoice->payments->count() > 0)
Confirmed Payments: @foreach($invoice->payments as $payment)
{{ ucfirst($payment->payment_method) }} (Txn: {{ $payment->transaction_reference ?? 'Bank' }}): ৳{{ number_format($payment->amount_bdt) }}
@endforeach
@endif
@endforeach
@else

No invoices generated yet. Our accounts department will generate milestone invoices as your shipment progresses.

@endif
Dhaka Showroom Handover

{{ config('motosolution.showroom.address') }}

Upon arrival in Dhaka, vehicle undergoes a 120-point mechanical inspection, full Meguiar's detailing, BRTA smart card handover, and complimentary full tank of fuel.

@endsection