Order Placed!

Your order is being processed

Hi {{ $order->user->first_name .' '. $order->user->last_name ?? 'Valued Customer' }},

Thank you for your order! We've received your request and are working to get your items ready. Here's what's happening next:

Order Number

#{{ $order->id }}

Order Date

{{ $order->created_at->format('F j, Y') }}

Order Status

{{ ucfirst($order->order_status) }}

Total Amount

{{ DEFAULT_CURRENCY }} {{ number_format($order->order_amount, 2) }}

Order Summary

@php // Collect all product IDs from the order's products array $productIds = []; foreach ($order->products as $prod) { $productIds[] = $prod['id']; } $productIds = array_unique($productIds); // Fetch all products at once and key them by ID $productsFromDb = \App\Models\Product::whereIn('id', $productIds)->get()->keyBy('id'); @endphp @foreach($order->products as $product) @endforeach
Item Price Qty Total
{{ $productsFromDb[$product['id']]->name_en ?? ('Product #' . $product['id']) }} {{ DEFAULT_CURRENCY }} {{ number_format($product['price'], 2) }} {{ $product['quantity'] }} {{ DEFAULT_CURRENCY }} {{ number_format($product['total'], 2) }}
Grand Total {{ DEFAULT_CURRENCY }} {{ number_format($order->order_amount, 2) }}

Shipping Details

{{ $order->shipping_address }}

📞 {{ $order->phone }}

📝 {{ $order->order_note ?: 'No special instructions' }}

Thank you for shopping with us!
The {{ config('app.name') }} Team