@extends('layouts.home') @section('content')

Order Placed Successfully!

Thank you for your purchase. Your order has been received and is being processed.

Order Details
#{{ $order->order_number ?? 'ORD-' . str_pad($order->id ?? '001', 6, '0', STR_PAD_LEFT) }}
{{ $order->created_at->format('F d, Y \a\t g:i A') ?? now()->format('F d, Y \a\t g:i A') }}
{{ str_replace('_', ' ', $order->payment_option ?? 'Cash on Delivery') }}
{{ $order->status ?? 'Processing' }}
{{ now()->addDays(3)->format('F d, Y') }} - {{ now()->addDays(7)->format('F d, Y') }}
{{ number_format($order->total_amount ?? 0, 2) }} @if ($config->currancy) {{ $config->currancy }} @endif
Shipping Information
Delivery Address
{{ $order->customerInfo->first_name ?? 'John' }} {{ $order->customerInfo->last_name ?? 'Doe' }}
{{ $order->address ?? '123 Main Street' }}
{{ $order->customerInfo->city ?? 'New York' }}, {{ $order->customerInfo->state ?? 'NY' }} {{ $order->customerInfo->postal_code ?? '10001' }}
{{ $order->customerInfo->country ?? 'United States' }}
{{ $order->customerInfo->phone ?? '+1 234 567 8900' }}
{{ $order->customerInfo->user->email ?? 'john@example.com' }}
Order Timeline
Order pending
Your order will be accepted within the next 24 hours
{{ now()->format('M d, Y \a\t g:i A') }}
Order Accepted
We’re getting your order ready for dispatch.
Shipped
1-2 business days
Delivered
2-7 business days
Order Items ({{ count($order->orderItems) }} {{ count($order->orderItems ?? []) == 1 ? 'item' : 'items' }})
@if (isset($order->orderItems) && count($order->orderItems) > 0) @foreach ($order->orderItems as $index => $item)
@if ($item->product->image) {{ $item->product->name }} @else {{ $item->product->image }} @endif
{{ $item->product->name }}
Quantity: {{ $item->quantity }} Price: {{ $item->price }} @if ($config->currancy) {{ $config->currancy }} @endif
{{ $item->total }} @if ($config->currancy) {{ $config->currancy }} @endif
@endforeach @else
Sample Product
Quantity: 1 Price: 99.99 @if ($config->currancy) {{ $config->currancy }} @endif
99.99 @if ($config->currancy) {{ $config->currancy }} @endif
@endif
Order Summary
Subtotal {{ number_format($order->total_amount, 2) }} @if ($config->currancy) {{ $config->currancy }} @endif

Total {{ number_format($order->total_amount, 2) }} @if ($config->currancy) {{ $config->currancy }} @endif
Continue Shopping
What's Next?
  • • You'll receive a confirmation email shortly
  • • We'll notify you when your order ships
  • • Contact us if you have any questions
@endsection