{{-- Order confirmation. Reached only via a session flash of the placed order id (CheckoutController::confirmation) — not deep-linkable. $order is a Lunar\Models\Order with lines + shipping/billing addresses eager-loaded. --}} @extends('layouts.app') @section('title', __('checkout.page.confirmation_title') . ' — ' . config('app.name')) @section('content')

{{ __('checkout.page.confirmation_heading') }}

{{ __('checkout.page.confirmation_order_number') }}: {{ $order->reference }}

{{ __('checkout.page.confirmation_email_note') }}

@foreach ($order->lines->where('type', '!=', 'shipping') as $line)
{{ $line->description }} × {{ $line->quantity }} {{ $line->sub_total?->formatted() }}
@endforeach
{{ __('checkout.cart.subtotal') }} {{ $order->sub_total?->formatted() }}
@if ($order->discount_total?->value > 0)
{{ __('checkout.cart.discount') }} −{{ $order->discount_total->formatted() }}
@endif
{{ __('checkout.cart.shipping') }} {{ $order->shipping_total?->formatted() }}
@if ($order->tax_total?->value > 0)
{{ __('checkout.cart.tax') }} {{ $order->tax_total->formatted() }}
@endif
{{ __('checkout.cart.total') }} {{ $order->total?->formatted() }}
@if ($order->shippingAddress)

{{ __('checkout.page.confirmation_shipping_to') }}

@endif @if ($order->billingAddress)

{{ __('checkout.page.confirmation_billing') }}

@endif
{{ __('checkout.page.confirmation_continue') }}
@endsection