@extends('client.layouts.main') @section('title', 'Checkout') @section('content')
@csrf
Account Information
{{ auth()->user()->first_name }} {{ auth()->user()->last_name }}
{{ auth()->user()->email }}
{{ auth()->user()->phone }}
{{ auth()->user()->address_line_1 }}
{{ auth()->user()->city }}, {{ auth()->user()->state }} {{ auth()->user()->postal_code }}
{{ auth()->user()->country_code }}
@if($cart->items->where('item_type', 'domain_register')->count() > 0 || $cart->items->where('item_type', 'domain_transfer')->count() > 0)
Domain Registrant Contact
Add New Contact
@endif
Order Review
@foreach($cart->items as $item) @endforeach
Description Billing Cycle Price Setup Fee
@if($item->domain) {{ $item->domain }} ({{ ucfirst(str_replace('_', ' ', $item->item_type)) }}) @elseif($item->product) {{ $item->product->name }} @else {{ ucfirst(str_replace('_', ' ', $item->item_type)) }} @endif {{ $item->billingCycle->name ?? ($item->quantity > 1 ? $item->quantity . ' Years' : '1 Year') }} {{ number_format($item->unit_price * $item->quantity, 2) }} {{ number_format($item->setup_fee, 2) }}
Payment Method
@forelse($gateways as $gateway) @empty

No payment methods available. Please contact support.

@endforelse @if ($errors->has('payment_gateway_id')) {{ $errors->first('payment_gateway_id') }} @endif
Additional Notes
Order Total
@if($totals['setup_fees'] > 0) @endif @if($totals['discount'] > 0) @endif @if(($totals['tax'] ?? 0) > 0) @endif
Subtotal {{ number_format($totals['subtotal'], 2) }}
Setup Fees {{ number_format($totals['setup_fees'], 2) }}
Discount -{{ number_format($totals['discount'], 2) }}
Tax {{ number_format($totals['tax'], 2) }}
Total Due {{ number_format($totals['total'], 2) }}
Back to Cart
@endsection @push('scripts') @endpush