@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@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
@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