{{-- resources/views/public/checkout-page.blade.php --}} @php // Get theme fonts from active preset $headingFont = 'Inter'; $bodyFont = 'Inter'; if ($website && $website->activeTheme && $website->activeTheme->theme) { $defaultPreset = $website->activeTheme->theme->presets()->where('is_default', true)->first(); if ($defaultPreset && isset($defaultPreset->font_scheme)) { $headingFont = $defaultPreset->font_scheme['heading'] ?? 'Inter'; $bodyFont = $defaultPreset->font_scheme['body'] ?? 'Inter'; } } // Build Google Fonts URL dynamically $fontsToLoad = []; if ($headingFont !== 'Default') { $fontsToLoad[] = str_replace(' ', '+', $headingFont) . ':wght@300;400;500;600;700;800;900'; } if ($bodyFont !== 'Default' && $bodyFont !== $headingFont) { $fontsToLoad[] = str_replace(' ', '+', $bodyFont) . ':wght@300;400;500;600;700;800;900'; } $googleFontsUrl = 'https://fonts.googleapis.com/css2?family=' . implode('&family=', $fontsToLoad) . '&display=swap'; @endphp Checkout - {{ $website->name }} @if($website->theme) @endif @if(count($fontsToLoad) > 0) @endif @php $headerSection = $website->globalSections()->where('type', 'header')->where('is_default', true)->first(); @endphp @if($headerSection) @if($headerSection->builder_data)
{!! $headerSection->renderBuilderContent() !!}
@elseif($headerSection->builder_v2_data)
@include('global-sections.render-v2', ['section' => $headerSection])
@endif @endif
@if(false) @if($website->menus->count() > 0) @php $mainMenu = $website->menus->where('location', 'main')->first() ?? $website->menus->first(); @endphp @if($mainMenu && $mainMenu->items->count() > 0) @endif @endif @endif

Checkout

@if(session('success')) @endif @if(session('error')) @endif @if(request()->query('payment_failed')) @endif @if($errors->any()) @endif
@csrf @php // Calculate if any payment method is enabled $hasEnabledPayment = $enabledPayments['chipin'] || $enabledPayments['bank_transfer'] || $enabledPayments['cod']; $firstEnabledPayment = null; if ($enabledPayments['chipin']) $firstEnabledPayment = 'chipin'; elseif ($enabledPayments['bank_transfer']) $firstEnabledPayment = 'bank_transfer'; elseif ($enabledPayments['cod']) $firstEnabledPayment = 'cash_on_delivery'; @endphp
@guest('customer')
Checkout Options

Choose how you'd like to checkout:

Login to access your saved addresses and track your orders easily.
Create an account to track your orders and save your information for faster checkout next time!
Minimum 8 characters
Checking out as guest. You can create an account after placing your order to track it.
@endguest @auth('customer')
Logged in as {{ auth('customer')->user()->name }}

Your order will be linked to your account for easy tracking. Logout

@endauth
Customer Information
@error('customer_name')
{{ $message }}
@enderror
@error('customer_email')
{{ $message }}
@enderror
@error('customer_phone')
{{ $message }}
@enderror
Billing Address
@error('billing_address_line_1')
{{ $message }}
@enderror
@error('billing_address_line_2')
{{ $message }}
@enderror
@error('billing_country')
{{ $message }}
@enderror
@error('billing_state')
{{ $message }}
@enderror
@error('billing_city')
{{ $message }}
@enderror
@error('billing_postal_code')
{{ $message }}
@enderror
Shipping Address
Payment Method
@if($hasEnabledPayment || ($customer && $walletBalance > 0)) {{-- Wallet Credits Payment Option --}} @if($customer && $walletBalance > 0)
@endif @if($enabledPayments['chipin'])
@endif @if($enabledPayments['paypal'])
@endif @if($enabledPayments['stripe'])
@endif @if($enabledPayments['bank_transfer'])
@endif @if($enabledPayments['cod'])
@endif @error('payment_method')
{{ $message }}
@enderror @else
No payment methods available.

Please contact the store administrator to enable payment methods.

@endif
Order Notes
@error('notes')
{{ $message }}
@enderror
Order Summary
@foreach($cartItems as $item)
@if($item->product && $item->product->main_image) {{ $item->display_name }} @else
@endif
{{ $item->display_name }}
Qty: {{ $item->quantity }}
{{ $website->getCurrencySymbol() }} {{ number_format($item->total_price, 2) }}
@endforeach

Subtotal: {{ $website->getCurrencySymbol() }} {{ number_format($cartTotal, 2) }}
Shipping: Free
Tax: {{ $website->getCurrencySymbol() }} {{ number_format($taxAmount, 2) }}

Total: {{ $website->getCurrencySymbol() }} {{ number_format($finalTotal, 2) }}
@if(!$hasEnabledPayment) Payment methods must be configured by the store administrator @endif
Your payment information is secure and encrypted
@php $footerSection = $website->globalSections()->where('type', 'footer')->where('is_default', true)->first(); @endphp @if($footerSection) @if($footerSection->builder_data) @elseif($footerSection->builder_v2_data) @endif @endif