@extends('theme::layouts.app', ['title' => __('checkout.title|Secure Checkout')]) @section('content')
{{-- Loading Overlay --}}
{{-- Breadcrumb & SSL Badge --}} @include('theme::partials.breadcrumbs') {{-- Guest Account Notice --}} @guest
{{ __("checkout.Don't have an account?") }} {{ __("checkout.We'll create an account automatically for you using your email from the billing details.") }} {{ __('checkout.Please create a password below so you can access your new account after checkout.') }} {{ __('checkout.If you already have an account,') }} {{ __('checkout.click here to sign in') }}.
@endguest {{-- Error Message --}}
@{{ errorMessage }}
{{-- Left Column --}}
{{-- Section 1: Billing Information --}}
1

{{ __('checkout.heading|Billing Information') }}

{{-- Saved Billing Display (for logged-in users) --}}

@{{ billing.first_name }} @{{ billing.last_name }}

@{{ billing.phone_number }}
@{{ billingDisplayAddress }}

{{-- Billing Form --}}

@{{ errors.first_name[0] }}

@{{ errors.last_name[0] }}

@guest

{{ __('checkout.Order confirmation will be sent here.') }}

@{{ errors.email[0] }}

@{{ errors.password[0] }}

@endguest

@{{ errors.phone_number[0] }}

@{{ errors.address[0] }}

@{{ errors.city[0] }}

@{{ errors.zip[0] }}

@{{ errors.country_id[0] }}

@{{ errors.state_id[0] }}

{{-- Save/Cancel Buttons for logged-in users --}} @auth
@endauth
{{-- Section 2: Additional Information (Custom Checkout Fields) --}}
2

{{ __('checkout.heading|Additional Information') }}

{{ __('checkout.Please fill in the details required to set up your service.') }}

@{{ group.product_name }}

{{-- text / email / url / number --}} {{-- textarea --}} {{-- select --}} {{-- radio --}}
{{-- checkbox --}}

@{{ field.help_text }}

@{{ errors['custom_fields.' + rowId + '.' + field.name][0] }}

{{-- Section 3 (or 2): Payment Method --}}
@{{ Object.keys(customFieldDefs || {}).length > 0 ? 3 : 2 }}

{{ __('checkout.heading|Payment Method') }}

@foreach ($gateways as $gateway) @endforeach
{{-- Right Column: Order Summary --}}

{{ __('checkout.heading|Order Summary') }}

{{-- Cart Items --}}
inventory_2

{{ __('checkout.Free Trial') }}: @{{ item.options.trial_period_info }}

{{ __('checkout.After Trial') }}:

{{-- Coupon Code --}} @if(($checkoutMode ?? 'cart') !== 'payment')

@{{ couponData.error }}

{{ __('checkout.Coupon applied successfully!') }}

@endif {{-- Order Totals --}}
{{ __('checkout.Subtotal') }}
{{ __('checkout.Discount Applied') }}
{{ __('checkout.Tax') }}
{{ __('checkout.Total') }}
{{-- Complete Order Button --}}

{{ __('checkout.By completing your purchase, you agree to our Terms of Service & Privacy Policy.') }}

{{-- Trust Badges --}}
verified_user

{{ __('checkout.heading|Secure Checkout') }}

{{ __('checkout.Your data is always encrypted.') }}

@include('theme::partials.recaptcha', ['action' => 'checkout_order']) @endsection @push('ch_footer') {{-- Vue 3 --}} {{-- Checkout Config --}} @endpush @push('styles') @endpush