@extends('frontend.layouts.master') @section('title', $config['label'] . ' — ' . (settings('name') ?: 'Travelio')) @section('meta', $config['intro']) @section('page', 'booking') @php $all = \App\Http\Controllers\FrontendController::bookingTypes(); // Prefill from the query string so "Book" links on the visa / flight / // hotel / transport pages carry the selection into this form. $pre = fn ($key, $default = '') => old($key, request($key, $default)); @endphp @section('content') @include('frontend.components.page-hero', [ 'title' => $config['label'], 'subtitle' => $config['intro'], 'crumbs' => [___('frontend.book') => null, $config['label'] => null], ])
{{-- Sidebar: other services --}}
{{ ___('frontend.book_service') }}
@foreach($all as $key => $cfg) {{ $cfg['label'] }} @endforeach
{{ ___('frontend.why_book_with_us') }}
    @foreach($whyBook as $reason)
  • {{ $reason->title }}
  • @endforeach
{{-- Form --}}

{{ $config['label'] }}

{{ $config['intro'] }}

@if(session('success'))
{{ session('success') }}
@endif
@csrf @if($type === 'flight') @endif
{{-- ---------- Type-specific fields ---------- --}} @foreach($config['fields'] as $group) @switch($group) @case('trip') @if($type === 'flight')
@else
@foreach($packages->pluck('destination')->unique() as $d)
@endif @if($type === 'tour' && $packages->isNotEmpty())
@endif
@error('departure_date')
{{ $message }}
@enderror
@break @case('stay')
@break @case('visa')
@error('country')
{{ $message }}
@enderror
@break @case('pilgrim') {{-- The package and the passport are what the Hajj module actually registers a pilgrim against, so they are asked for here rather than guessed from an "Economy / Standard / Premium" preference. --}}
@error('hajj_package_id')
{{ $message }}
@enderror
@error('passport_no')
{{ $message }}
@enderror
{{-- Preferences: no column on the pilgrim record, so they ride to the consultant as a CRM lead. --}}
@break @case('transfer')
@error('pickup')
{{ $message }}
@enderror
@error('dropoff')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@break @case('rental')
@error('pickup_date')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@break @endswitch @endforeach {{-- ---------- Contact details ---------- --}}

@error('name')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@endsection