@extends('layouts.shop') @section('title', 'Order Details') @section('content')
Back to list Date Placed: {{ $order->created_at->format('M d, Y h:i A') }}
Order Reference

{{ $order->order_number }}

Delivery: {{ $order->status }} Payment: {{ $order->payment_status }}

Products in Order

@foreach($order->items as $item)
{{ $item->product_name }}

@if($item->product) {{ $item->product_name }} @else {{ $item->product_name }} @endif

@if($item->selected_size) {{ $item->selected_size }} @endif @if($item->selected_color) {{ $item->selected_color }} @endif

Qty: {{ $item->quantity }} × ৳{{ number_format($item->price, 0) }}

৳{{ number_format($item->total, 0) }}
@endforeach

Customer details

{{ $order->customer_name }}

@if(!empty($order->customer_email))

{{ $order->customer_email }}

@endif @if($order->customer_phone)

{{ $order->customer_phone }}

@endif

Shipping Address

{{ $order->shipping_address }}

Order Totals

Subtotal ৳{{ number_format($order->subtotal, 0) }}
Shipping Cost ৳{{ number_format($order->shipping_cost, 0) }}
Total Paid ৳{{ number_format($order->total, 0) }}
@endsection