@extends('website.partials.app') @section('canonical', route('website.checkout')) @section('content')

Checkout

{{-- Section 1: Your details (customer only) --}}

Your details

@csrf

Customer Details

{{--
--}} {{--
--}}
{{-- Section 2: Order summary (plan + service details + card details) --}}

Order summary

{{ $description ?: 'Broadband plan' }}
{{ $serviceTypeLabel }}
@if($address)
{{ $address }}
@endif
@if($price !== '') ${{ $price }}/month @else — @endif
{{-- Router Option (NBN only) --}} @if($type === 'nbn')
Get your router delivered directly to your doorstep. Professional setup included.
@endif {{-- Do you have an existing NTD? (NBN only) --}}

Service Details

{{--
--}} {{-- Supporting Resources (NTD) for NBN --}} @if($type === 'nbn' && count($ntds ?? []) > 0)

SELECT A PORT

Supporting Resources (NTD)

@endif {{-- Copper Pairs: NBN only (when API returned copper_pairs for this location) --}} @if($type === 'nbn' && count($copperPairs ?? []) > 0)

SELECT A PORT

Copper Pairs

@endif @if($type === 'nbn' && (count($ntds ?? []) > 0 || count($copperPairs ?? []) > 0)) @endif {{-- AVC hidden fields: only at top of form (lines 19–20). Duplicate here sent empty avc_id/avc_verified (PHP/Laravel use last duplicate key). --}}
@php $minActivation = now()->addDays(7)->startOfDay(); $defaultActivation = now()->addDays(7)->startOfDay(); @endphp
When ASAP is selected, activation will be scheduled as soon as possible (earliest 7 days).

Card Details

@php $plansParams = ['address' => $address]; $hasDualLocs = (($locNbn ?? '') !== '' || ($locCf ?? '') !== ''); if ($hasDualLocs) { if (($locNbn ?? '') !== '') $plansParams['loc_nbn'] = $locNbn; if (($locCf ?? '') !== '') $plansParams['loc_cf'] = $locCf; } else { $plansParams['type'] = $type; if (($loc ?? '') !== '') $plansParams['loc'] = $loc; } if (($productId ?? '') !== '') $plansParams['selected_product_id'] = $productId; if (($type ?? '') !== '') $plansParams['selected_type'] = $type; $plansBackUrl = route('website.plans') . '?' . http_build_query($plansParams); @endphp Back to plans
{{-- Toaster for AVC success message --}} @if($type === 'nbn' && (count($ntds ?? []) > 0 || count($copperPairs ?? []) > 0))
@endif {{-- AVC verification modal (Used NTD port or Line In Use copper pair) --}} @if($type === 'nbn' && (count($ntds ?? []) > 0 || count($copperPairs ?? []) > 0)) @endif {{-- AVC ID info/help modal (What is an AVC ID?) --}} @if($type === 'nbn') @endif @endsection @push('css') @endpush @push('scripts') @endpush