@extends('admin.layouts.app') @section('title', 'Order #' . $order->order_number) @section('header_title', 'Order Details') @section('content')
Back to Orders

Order #{{ $order->order_number }}

{{ str_replace('_', ' ', $order->status) }}
Update Live Order Status
Order placed on {{ $order->created_at->format('M d, Y \a\t h:i A') }} ({{ $order->created_at->diffForHumans() }})
@csrf @method('PATCH')

Order Items

{{ $order->items->sum('quantity') }} items total
@foreach($order->items as $item) @endforeach
Item Qty Unit Price Subtotal
@php $imgSrc = asset('images/menu/ramen.jpeg'); if ($item->menuItem && $item->menuItem->image) { $imgSrc = asset($item->menuItem->image); } elseif ($item->menuItem && $item->menuItem->image_key) { $imgSrc = asset('images/menu/' . $item->menuItem->image_key . '.jpeg'); } @endphp {{ $item->item_name }}
{{ $item->item_name }}
@if($item->menuItem && $item->menuItem->category)
{{ $item->menuItem->category->name }}
@endif @if($item->special_instructions)
Note: {{ $item->special_instructions }}
@endif
x{{ $item->quantity }} {{ $currency }}{{ number_format($item->unit_price, 0) }} {{ $currency }}{{ number_format($item->subtotal, 0) }}
Subtotal {{ $currency }}{{ number_format($order->subtotal, 0) }}
Delivery Fee {{ $currency }}{{ number_format($order->delivery_fee, 0) }}
Total Paid/Due {{ $currency }}{{ number_format($order->total, 0) }}
@if($order->notes)

Order Notes from Customer

{{ $order->notes }}

@endif
Customer Details
Customer Name
{{ $order->customer_name }}
@if($order->customer_email)
Email Address
{{ $order->customer_email }}
@endif
Delivery Address
{{ $order->delivery_address }}
Branch & Payment
Assigned Branch
{{ $order->branch->name ?? 'Dhaka Central' }}
@if($order->branch)
{{ $order->branch->address }}
@endif
Payment Method
{{ str_replace('_', ' ', $order->payment_method) }}
Payment Status
{{ $order->payment_status }}
Danger Zone

Deleting an order is permanent and cannot be undone.

@csrf @method('DELETE')
@endsection