{{-- ── Restaurant header strip ─────────────────────────────── --}}
@if($order->restaurant->logo)
@else
{{ strtoupper(substr($order->restaurant->name, 0, 1)) }}
@endif
{{ $order->restaurant->name }}
Live order tracking
{{-- ── Thank you banner ────────────────────────────────────── --}}
@php $cancelled = in_array($order->status, ['cancelled', 'rejected']); $completed = in_array($order->status, ['completed', 'served']); @endphp
@if($cancelled)
@else
@endif
@if($cancelled) Order {{ ucfirst($order->status) }} @elseif($completed) Enjoy your meal! @else Thank you, your order has been placed! @endif
@if($cancelled) Please contact the restaurant for help. @else We'll keep this page updated as your order progresses. @endif
Order ID: {{ $order->order_number }}
{{-- ── Current status card with live dot ──────────────────── --}}
📝
Current Status
{{ $order->tracking_label }}
@if(!$order->is_terminal_status)
@endif
{{-- ── Visual timeline ─────────────────────────────────────── --}}
Order Progress
@php $currentStep = $order->tracking_step; @endphp @foreach($order->timeline_steps as $i => $step)
@if($i < $currentStep)
@else {{ $step['icon'] }} @endif
{{ $step['label'] }}
@endforeach
{{-- ── Order details ───────────────────────────────────────── --}}
Order Details
Order Type
@if($order->order_type === 'dine_in') 🪑 Dine-In @elseif($order->order_type === 'takeaway') 🥡 Takeaway @elseif($order->order_type === 'delivery') 🛵 Delivery @else 💬 WhatsApp @endif
@if($order->table)
Table
{{ $order->table->table_name }}
@endif @if($order->customer_name)
Customer
{{ $order->customer_name }}
@endif @if($order->customer_phone)
Phone
{{ $order->customer_phone }}
@endif @if($order->delivery_address)
Delivery Address
{{ $order->delivery_address }}
@endif
Placed At
{{ $order->created_at->format('d M, H:i') }}
Payment
@php $payClass = match($order->payment_status) { 'paid' => 'pay-paid', 'failed', 'refunded' => 'pay-failed', default => 'pay-unpaid', }; @endphp
{{ ucfirst($order->payment_status) }}
@if($order->estimated_time)
Estimated Time
{{ $order->estimated_time }} min
@endif
{{-- ── Items ───────────────────────────────────────────────── --}}
Items ({{ $order->items->count() }})
@foreach($order->items as $item)
{{ $item->quantity }}×
{{ $item->item_name }}
@if($item->special_instruction)
📝 {{ $item->special_instruction }}
@endif
₹{{ number_format($item->total_price, 0) }}
@endforeach
Subtotal
₹{{ number_format($order->subtotal, 2) }}
@if($order->tax_amount > 0)
Tax
₹{{ number_format($order->tax_amount, 2) }}
@endif @if($order->service_charge > 0)
Service Charge
₹{{ number_format($order->service_charge, 2) }}
@endif @if($order->discount_amount > 0)
Discount
−₹{{ number_format($order->discount_amount, 2) }}
@endif
Total
₹{{ number_format($order->total_amount, 2) }}
@if($order->special_instruction)
📝 {{ $order->special_instruction }}
@endif
{{-- ── Actions ─────────────────────────────────────────────── --}}
@if(!empty($whatsappUrl ?? null))
Share via WhatsApp
@endif
Share Tracking Link
← Back to Menu
{{-- ── My Other Orders (device localStorage) ─────────────────── --}}
My Other Orders
This page auto-refreshes every 5s — bookmark it to keep tracking.