@extends('ecommerce::delivery.layout') @section('header_title', $order->order_no) @section('content') Back to Orders

{{ $order->order_no }}

{{ $order->created_at->format('d M Y, h:i A') }}

{{ ucfirst(str_replace('_', ' ', $order->delivery_status)) }}
Order Total
₹{{ number_format($order->total, 2) }}
Payment
@if(in_array($order->payment_method, ['cod', 'cash']) && $order->payment_status === 'pending') Collect COD @else Prepaid @endif
Customer Details
{{ $order->customer_name }}
{{ $order->customer_phone }}
Delivery Address
{{ $order->shipping_address }}
{{ $order->shipping_city }}, {{ $order->shipping_state }}
{{ $order->shipping_pincode }}
Call Navigate
Order Items ({{ $order->items->count() }})
@foreach($order->items as $item)
@if($item->product && $item->product->primaryImage) @endif
{{ $item->product_name }}
@if($item->variation_name)
{{ $item->variation_name }}
@endif
Qty: {{ $item->qty }}
₹{{ number_format($item->subtotal, 2) }}
@endforeach
@if(in_array($order->delivery_status, ['assigned', 'picked_up', 'in_transit']))
Update Status
@csrf
@endif @if($order->deliveryStatusHistory->count() > 0)
Delivery Timeline
@foreach($order->deliveryStatusHistory as $history)
{{ ucfirst(str_replace('_', ' ', $history->status)) }}
@if($history->notes)
{{ $history->notes }}
@endif @if($history->location)
📍 {{ $history->location }}
@endif
{{ $history->created_at->format('d M Y, h:i A') }}
@endforeach
@endif @if($order->delivery_notes)
Delivery Notes

{{ $order->delivery_notes }}

@endif @endsection @section('scripts') @endsection