Booking Person Registration

Booking: {{ $bookingNo }}

@if(session('success')) @endif @if($errors->any()) @endif
Booking Information
Date:
{{ $booking->date ? \Carbon\Carbon::parse($booking->date)->format('l, j F Y') : 'N/A' }}
@php $hasPackagesWithPersons = false; foreach($bookingDetailsWithPackages as $detail) { if($detail->person > 0) { $hasPackagesWithPersons = true; break; } } @endphp
@csrf @if($hasPackagesWithPersons) {{--
Please register persons for each package below. You can add more persons dynamically up to the package limit.
--}}
Disclosure Required:
Please inform any medical condition of a participant (e.g., heart condition, epilepsy). Incidents related to these are not covered by our insurance.
@foreach($bookingDetailsWithPackages as $detail) @if($detail->person > 0)
{{ $detail->package_name }} ({{ $detail->person }} persons allowed) @if($detail->qty > 1) {{ $detail->qty }} packages @endif
@php $existingCount = $packageDataForJS[$detail->code]['existing_persons'] ?? 0; @endphp {{ $existingCount }} / {{ $detail->person }} @if($existingCount > 0) ({{ $existingCount }} existing) @endif
@php $existingCount = $packageDataForJS[$detail->code]['existing_persons'] ?? 0; $maxPersons = $detail->person; $progressPercent = $maxPersons > 0 ? round(($existingCount / $maxPersons) * 100) : 0; @endphp
@endif @endforeach
@else
Please register the person for this booking.
Person Information
@endif
@if($bookingPersons->count() > 0)
Registered Persons ({{ $bookingPersons->count() }})
@foreach($bookingPersons as $person)
{{ $person->name }}
@if($person->medical) @php $medicalConditions = json_decode($person->medical, true); $medicalLabels = [ 'no_medical' => ['label' => 'No Medical Conditions', 'icon' => 'fas fa-check-circle', 'color' => 'success'], 'heart_condition' => ['label' => 'Heart Condition', 'icon' => 'fas fa-heartbeat', 'color' => 'danger'], 'asthma' => ['label' => 'Asthma', 'icon' => 'fas fa-lungs', 'color' => 'warning'], 'epilepsy' => ['label' => 'Epilepsy', 'icon' => 'fas fa-brain', 'color' => 'info'], 'broken_bones' => ['label' => 'Previous Broken Bones', 'icon' => 'fas fa-bone', 'color' => 'secondary'], 'dislocated_joints' => ['label' => 'Dislocated Joints', 'icon' => 'fas fa-hand-paper', 'color' => 'secondary'], 'diabetes' => ['label' => 'Diabetes', 'icon' => 'fas fa-tint', 'color' => 'warning'], 'water_contact_lenses' => ['label' => 'Water Contact Lenses', 'icon' => 'fas fa-eye', 'color' => 'info'], 'hearing_impairment' => ['label' => 'Hearing Impairment', 'icon' => 'fas fa-deaf', 'color' => 'info'], 'pregnant' => ['label' => 'Pregnant', 'icon' => 'fas fa-baby', 'color' => 'primary'] ]; @endphp
@foreach($medicalConditions as $condition) @if(isset($medicalLabels[$condition])) @php $medicalInfo = $medicalLabels[$condition]; @endphp {{ $medicalInfo['label'] }} @else {{ $condition }} @endif @endforeach
@else
No medical information
@endif
@endforeach
@endif
@include('components.tos-modal')