@extends('admin.admin-layout') @section('content')

#{{ $order->id }} {{ ucfirst($order->payment_status) }} @switch($order->shipping_status) @case('Pending') Pending @break @case('Processing') Processing @break @case('Delivered') Delivered @break @case('Dispatched') Dispatched @break @case('Return') Return @break @default Unknown @endswitch

Order / Order Details / #{{ $order->id }} - {{ $order->created_at->format('F d, Y \a\t h:i A') }}

Product

@foreach($order->items as $item) {{-- Tax or additional charges --}} @endforeach
Product Name & Size Status Quantity Price Tax Amount
{{ $item->product->name ?? 'Product' }}

Size : {{ $item->product_size }}

Ready {{ $item->quantity }} ₹ {{ number_format($item->order_price, 2) }} ₹ 0.00₹ {{ number_format($item->quantity * $item->order_price, 2) }}

Customer Details

{{ $order->first_name . ' ' . $order->last_name }}

Contact Number

{{ $order->phone }}

Shipping Address

{{ $order->address }}

{{ $order->apartment }}

{{ $order->city }}, {{ $order->state }}

{{ $order->pincode }}

Billing Address

Same as shipping address

Order Summary

Sub Total :

₹ {{ number_format($order->subtotal, 2) }}

Discount :

- ₹ {{ number_format(($order->coupon_applied ? ($order->subtotal - $order->total + $order->shipping_cost) : 0), 2) }}
Delivery Charge: ₹ {{ number_format($order->shipping_cost, 2) }}
Estimated Tax (0%) : ₹ 0.00

Payment Information

Transaction ID:
#{{ $order->razorpay_payment_id ?? 'N/A' }}

Card Holder Name:
{{ $order->first_name . ' ' . $order->last_name }}

@endsection