@extends('admin.layouts.app') @section('title', 'Order Details') @section('content')

Order {{ $order->order_number }}

{{ ucfirst($order->status) }}
Order Items
@foreach($order->items as $item) @endforeach
ProductPrice
{{ $item->product_title }}{{ \App\Models\Setting::get('currency_symbol','৳') }}{{ number_format($item->price, 2) }}
Total{{ \App\Models\Setting::get('currency_symbol','৳') }}{{ number_format($order->total, 2) }}
Customer

{{ $order->user->name ?? 'N/A' }}
{{ $order->user->email ?? '' }}
{{ $order->user->phone ?? '' }}

Payment

Method: {{ $order->payment_method }}
TxnID: {{ $order->transaction_id }}
Date: {{ $order->created_at->format('M d, Y h:i A') }}

@if($order->status === 'pending')
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif
@endsection