@extends("client.layouts.app") @section("title", __("client.checkout.title")) @section("content") {{ __('client.cart.back_to_cart') }}

{{ __('common.actions.checkout') }}

{{ __('client.checkout.subtitle') }}

@if(session("error"))
{{ session("error") }}
@endif
@csrf
@auth
{{ __('client.checkout.contact_details') }}
@else {{-- The visitor opens their account right here, mid-payment - not on a register page three screens back with the cart lost on the way. Same fields the register page asks for. --}}
{{ __('client.auth.create_your_account') }} {{ __('client.auth.already_have_account') }} {{ __('client.auth.sign_in') }}
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@if(isset($orderFields) && $orderFields->isNotEmpty()) @include('client.partials.custom-fields', ['fields' => $orderFields, 'clientId' => null]) @endif @include('client.partials.recaptcha', ['form' => 'signup']) @error(\App\Services\RecaptchaService::FIELD)
{{ $message }}
@enderror
@endauth {{-- Asked here when it is missing, and only then: an existing customer who already has an address should not have to retype it to buy a second service. A guest always sees it, because the account is being opened on this page. --}} @if($needsBillingAddress)
{{ __('common.form.billing_address') }}

{{ __('common.form.billing_address_hint') }}

@include('client.partials.billing-address-fields')
@endif
{{ __('client.checkout.payment_method') }}
@foreach($paymentMethods as $value => $label) @endforeach
@guest @endguest
{{ __('client.cart.order_summary') }}
@foreach($totals["items"] as $item)
{{ $item["product_name"] ?? __('client.cart.product_fallback') }} {{ display_money_fmt($item["price"] ?? 0) }}
@endforeach @if(($totals["discount"] ?? 0) > 0)
{{ __('client.cart.discount') }}-{{ display_money_fmt($totals["discount"]) }}
@endif @if(($totals["tax"] ?? 0) > 0)
{{ __('client.cart.tax') }}{{ display_money_fmt($totals["tax"]) }}
@endif
{{ __('client.cart.total') }} {{ display_money_fmt($totals["total"]) }}

{{ __('client.checkout.secure_checkout') }} — {{ display_money_fmt($totals["total"]) }}

@include('client.cart.partials.currency-note')
@section("scripts") @endsection @endsection