@extends('layouts.admin') @section('title', 'Order ' . $order->order_number) @section('content')

{{ $order->order_number }}

Placed {{ $order->created_at->format('j F Y \a\t g:ia') }} · {{ $order->created_at->diffForHumans() }}

@include('admin.partials.status-badge', ['status' => $order->status])
{{-- Items --}}

Items

@foreach($order->items as $item)
@if($item->product?->mainImage()) {{ $item->product_name }} @else
@endif
@if($item->product) {{ $item->product_name }} @else

{{ $item->product_name }}

@endif

৳{{ number_format($item->price) }} × {{ $item->quantity }}

৳{{ number_format($item->line_total) }}

@endforeach
Subtotal
৳{{ number_format($order->subtotal) }}
Delivery
{{ $order->delivery_charge > 0 ? '৳' . number_format($order->delivery_charge) : 'Free' }}
Total
৳{{ number_format($order->total) }}
{{-- Status update --}}

Update Status

@csrf @method('PATCH')
{{-- Customer --}}

Customer

Name
{{ $order->customer_name }}
Phone
{{ $order->phone }}
@if($order->email)
Email
{{ $order->email }}
@endif
Delivery Address
{{ $order->address }}{{ $order->city ? ', ' . $order->city : '' }}
@if($order->note)
Note
"{{ $order->note }}"
@endif
Payment
{{ $order->payment_method }}
Contact on WhatsApp
@endsection