@php $firstName = explode(' ', $order->shipping_name)[0] ?? 'there'; @endphp
@if ($order->status === 'pending_payment')

Processing your payment…

We're waiting for payment confirmation for order #{{ $order->order_number }}. This page updates automatically once it's verified.

@elseif ($order->status === 'cancelled')

Order #{{ $order->order_number }} was cancelled.

@if ($order->refunds->where('status', 'succeeded')->isNotEmpty()) Your payment has been refunded in full. @else A refund is being processed for this order. @endif

@else

Thank you, {{ $firstName }}! Your order is confirmed.

A confirmation email has been sent to {{ $order->email }}

Order #{{ $order->order_number }}
Placed on {{ $order->created_at->format('F j, Y \a\t g:i A') }}
@if ($order->canStillBeCancelled())
You can still cancel this order
Orders can be cancelled free of charge within the first 2 hours. After that, your order is sent to fulfillment.
@endif
What happens next
Order Placed
Processing
Shipped
Delivered
@endif
Order Items
@foreach ($order->items as $item)
{{ $item->product_title }} ×{{ $item->quantity }}
${{ number_format($item->line_total, 2) }}
@endforeach
Subtotal${{ number_format($order->subtotal, 2) }}
Shipping${{ number_format($order->shipping_total, 2) }}
Tax${{ number_format($order->tax_total, 2) }}
Total Paid${{ number_format($order->total, 2) }}
Shipping Address
{{ $order->shipping_name }}
{{ $order->shipping_address_line1 }}
@if ($order->shipping_address_line2) {{ $order->shipping_address_line2 }}
@endif {{ $order->shipping_city }}, {{ $order->shipping_state }} {{ $order->shipping_zip }}
United States

Shipping Method
{{ $order->shipping_method === 'express' ? 'Express Shipping (2–3 business days)' : 'Standard Shipping (5–7 business days)' }}