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

Order Details

Order #{{ $order->id }}

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 }}

Order Items

@foreach ($order->orderItems as $item) @endforeach
Product Quantity Price Total
{{ $item->product->name }} {{ $item->quantity }} ${{ number_format($item->price, 2) }} ${{ number_format($item->price * $item->quantity, 2) }}
Back to Orders
@endsection