@extends('layouts.app') @section('title', 'Track Your Vehicle Repair Status — Abu Dhabi Auto Care') @section('content')
REAL-TIME WORKSHOP TRACKER

Live Vehicle Progress Tracker

Enter your Order Number (e.g. AD-8401) or registered mobile number to see your car’s exact stage in our Mussafah M11 workshop.

@if($order)
{{ $order->vehicle_make }} {{ $order->vehicle_model }} {{ $order->vehicle_year ?? '2023' }}
Order Number: {{ $order->order_number }} • Client: {{ $order->client->name }}
{{ $order->status_label }}
Workshop Stage Progress {{ $order->progress_percent }}% Completed
@php $currentStep = $order->status_info['step'] ?? 1; $stepNames = [ 1 => 'Pending Review', 2 => 'Confirmed', 3 => 'Vehicle In', 4 => 'Inspection', 5 => 'Prep / Sand', 6 => 'Paint Booth', 7 => 'Polishing QC', 8 => 'Ready Delivery', ]; @endphp @foreach($stepNames as $stepIndex => $stepName)
@if($stepIndex < $currentStep) ✓ @else {{ $stepIndex }} @endif
{{ $stepName }}
@endforeach
Current Activity: {{ $order->status_label }} Updated: {{ $order->updated_at->diffForHumans() }}

{{ $order->status_info['desc'] ?? 'Vehicle is currently in service.' }}

@if($order->internal_notes)
Technician Note: {{ $order->internal_notes }}
@endif
Service Type {{ $order->service_title }}
Target Colour {{ $order->target_color ?: ($order->current_color ?: 'Factory Match') }}
Estimated Cost AED {{ number_format($order->final_cost ?: $order->estimated_cost) }}
Pickup & Drop {{ $order->pickup_required ? 'Abu Dhabi Free Pickup' : 'Mussafah M11 Drop' }}
@if($order->statusLogs && $order->statusLogs->count() > 0)

Milestone Logs & History

@foreach($order->statusLogs as $log)
{{ $log->to_status_label }} {{ $log->created_at->format('M d, Y • h:i A') }}
@if($log->note)

{{ $log->note }}

@endif
@endforeach
@endif
Questions about this job? Talk directly with our workshop desk. WhatsApp Inquire
@elseif($query)
No order found matching "{{ $query }}"

Please verify your Order Number (e.g. AD-8401) or try searching with your mobile number.

@endif
@endsection