{{-- 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 }}
@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

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

{{-- 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
@foreach ($order->lines->where('type', '!=', 'shipping') as $line)
@if ($thumb = $line->purchasable?->getThumbnailImage()) {{ $line->description }} @endif
{{ $line->description }} × {{ $line->quantity }} @if ($line->option)

{{ $line->option }}

@endif @include('checkout::partials.line-custom-fields', ['line' => $line])
{{ $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
@endsection