@extends('emails.layout') @section('email-content')

Order Confirmed!

Thank you for your purchase, {{ $order->customer->name ?? 'Customer' }}.

Your order has been received and is being processed. We'll send you another email once it ships.

@if($order->shipping_address) @endif
Order Number {{ $order->order_number }}
Date {{ $order->created_at->format('M d, Y h:i A') }}
Total Amount ${{ number_format($order->total, 2) }}
Payment {{ ucfirst($order->payment_method ?? 'Pending') }}
Status {{ ucfirst(str_replace('_', ' ', $order->status)) }}
Shipping To @if(is_array($order->shipping_address)) {{ $order->shipping_address['address_line1'] ?? '' }} {{ $order->shipping_address['city'] ?? '' }}, {{ $order->shipping_address['state'] ?? '' }} {{ $order->shipping_address['postal_code'] ?? '' }} @else {{ $order->shipping_address }} @endif
@if($order->items->count() > 0)

Order Items

@foreach($order->items as $item) @endforeach
{{ $item->product_name ?? 'Product' }} x {{ $item->quantity }} ${{ number_format($item->subtotal ?? ($item->price * $item->quantity), 2) }}
@endif View Order Details

Need help? Contact us at support@mebuy.com

@endsection