{{-- 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. $bankTransferInstructions is already-sanitized HTML from StoreDetailsService::bankTransferInstructionsFor(), or null unless this is a bank transfer order with instructions filled in for this locale. --}} @extends('layouts.app') @section('title', __('checkout.page.confirmation_title') . ' — ' . config('app.name')) @section('content')

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

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

{{ __('checkout.page.confirmation_order_number') }}
#{{ \Modules\Core\Order\Support\OrderReferenceDisplay::resolve($order) }}
@if ($order->billingAddress?->contact_email)
{{ __('checkout.page.email_label') }}
{{ $order->billingAddress->contact_email }}
@endif @if ($paymentMethodName)
{{ __('checkout.page.payment_heading') }}
{{ $paymentMethodName }}
@endif @if ($shippingLine = $order->lines->firstWhere('type', 'shipping'))
{{ __('checkout.page.shipping_method_heading') }}
{{ $shippingLine->description }}
@endif
{{-- Guests: logging in with the order's email attaches it to an account (boboko-core's Modules\Core\Customer\Listeners\ClaimGuestOrdersOnLogin), so it shows in their history. --}} @guest @if ($loginRoute = config('checkout.login_route'))

{{ __('checkout.page.confirmation_login_hint') }} {{ __('checkout.page.login_link') }}

@endif @endguest

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

{{ __('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 || $order->billingAddress)
@if ($order->shippingAddress)

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

@endif @if ($order->billingAddress)

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

@endif
@endif @if ($bankTransferInstructions)

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

{!! $bankTransferInstructions !!}
@endif
@endsection