@extends('layouts.app') @section('title', 'Order Details') @section('content')
Date: {{ $order->created_at->format('M d, Y') }}
Status: {{ ucfirst($order->status) }}
Total Amount: ${{ number_format($order->total_amount, 2) }}
Shipping Address: {{ $order->shipping_address }}
Billing Address: {{ $order->billing_address }}
| Product | Quantity | Price | Total |
|---|---|---|---|
| {{ $item->product->name }} | {{ $item->quantity }} | ${{ number_format($item->price, 2) }} | ${{ number_format($item->price * $item->quantity, 2) }} |