Plan Your Dream Trip
{{ $this->currentStepName }}
Step {{ $currentStep + 1 }} of {{ $totalSteps }}
@if($tripType)
{{ $tripType === 'pre_planned' ? 'Pre-planned Trip' : 'Self-planned Trip' }}
@endif
{{-- Display current traveler composition if available --}}
@if($travelerComposition && isset($travelerComposition['total_travelers']))
{{ $travelerComposition['adults_count'] ?? 0 }} adults
@if(($travelerComposition['children_count'] ?? 0) > 0)
, {{ $travelerComposition['children_count'] }} children
@endif
({{ $travelerComposition['total_travelers'] }} total)
@endif
@if($this->canSkipToSummary)
@endif
@foreach($stepNames as $stepIndex => $stepName)
@if($stepIndex < $currentStep)
@else
{{ $stepIndex + 1 }}
@endif
{{ $stepName }}
@if($stepIndex < count($stepNames) - 1)
@endif
@endforeach
@if($currentStep === 0)
@livewire('trips.trip-type-selection', key('trip-type-' . now()))
@elseif($currentStep === 1)
@if($tripType === 'pre_planned')
@livewire('trips.pre-planned-trip-selection', key('pre-planned-' . now()))
@else
@livewire('trips.destination-selection', key('destination-' . now()))
@endif
@elseif($currentStep === 2)
@if($tripType === 'self_planned')
@livewire('trips.trip-details', key('trip-details-' . now()))
@else
@livewire('trips.invite-friends', key('invite-friends-' . now()))
@endif
@elseif($currentStep === 3)
@if($tripType === 'self_planned')
@livewire('trips.itinerary-planning', key('itinerary-' . now()))
@else
@livewire('trips.review', key('review-' . now()))
@endif
@elseif($currentStep === 4 && $tripType === 'self_planned')
@livewire('trips.invite-friends', key('invite-friends-step4-' . now()))
@elseif($currentStep === 5 && $tripType === 'self_planned')
@livewire('trips.review', key('review-step5-' . now()))
@endif
@if(($tripType === 'pre_planned' && $currentStep === 3) || ($tripType === 'self_planned' && $currentStep === 5))
@endif
@if(config('app.debug'))
Debug Info:
{{ json_encode($this->debugSession(), JSON_PRETTY_PRINT) }}
@endif
@if($currentStep > 0 && (($tripType === 'pre_planned' && $currentStep < 3) || ($tripType === 'self_planned' && $currentStep < 5)))
@if($canProceed)
✓ Ready to continue
@else
Complete this step to continue
@endif
@if($canProceed)
@else
@endif
@endif
@if (session('success'))
@endif
@if (session('error'))
@endif