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

Order #{{ $order->id }}

Back to Orders
{{-- Order & Shipping Details --}}
Order & Shipping Details
Customer:

Name: {{ $order->shipping_name }}
Email: {{ $order->shipping_email }}
Phone: {{ $order->shipping_phone }}

Shipping Address:

{{ $order->shipping_address }}, {{ $order->shipping_city }}, {{ $order->shipping_state }}, {{ $order->shipping_country }} - {{ $order->shipping_zip }}

Payment Info:

Method: {{ ucfirst($order->payment_method) }}
Transaction ID: {{ $order->transaction_id ?? 'N/A' }}
Status: {{ ucfirst($order->status) }}

{{-- Order Items --}}
Order Items
@if($order->carts && $order->carts->count()) @foreach($order->carts as $key => $item) @endforeach
# Product Qty Price Subtotal
{{ $key + 1 }} {{ $item->product->name ?? 'N/A' }} {{ $item->quantity }} ₹{{ number_format($item->price, 2) }} ₹{{ number_format($item->price * $item->quantity, 2) }}
Total: ₹{{ number_format($order->total_amount, 2) }}
@else

No items found for this order.

@endif
@endsection