{{-- Hotel Summary --}}
{{ $hotelData['hotel']['name'] }}
{{ $hotelData['hotel']['category'] ?? '4.2' }}/5

{{ $hotelData['hotel']['name'] }}

{{ $hotelData['hotel']['address'] }}

{{ Str::limit(strip_tags($hotelData['hotel']['description'] ?? 'Luxury accommodation with premium amenities'), 200) }}

@if(!empty($hotelData['hotel']['facilities'])) @php $facilitiesRaw = $hotelData['hotel']['facilities']; $facilities = is_array($facilitiesRaw) ? $facilitiesRaw : explode(';', $facilitiesRaw); $limitedFacilities = array_slice($facilities, 0, 4); @endphp @foreach($limitedFacilities as $facility) {{ trim($facility) }} @endforeach @endif
{{-- Stay Details --}}

Your Stay Details

Check-in
{{ $checkin }}
@if(!empty($checkin_begin_time))

{{ $checkin_begin_time }}

@endif
Check-out
{{ $checkout }}
@if(!empty($checkin_end_time))

{{ $checkin_end_time }}

@endif
Guests
{{ $adults ?? '1' }} Adults
@if(!empty($childrens))
{{ $childrens }} Children
@endif
Nights
{{ $nights ?? '2' }}
{{-- Room Details --}}

Room Details

@php $boardingDetails = $rate['board'] ?? []; $otherInclusions = $rate['inclusions'] ?? []; $rateComments = $rate['rateComments'] ?? []; $paxComments = $rate['paxComments'] ?? ''; $remarks = $rate['remarks'] ?? ''; $mealplan = $rate['mealplan'] ?? ''; $checkinBeginTime = $checkin_begin_time ?? ''; $checkoutTime = $checkin_end_time ?? ''; $roomDescription = $rate['rooms'][0]['description'] ?? ''; $roomType = $rate['rooms'][0]['room_type'] ?? ''; $cancellationPolicy = $rate['cancellation_policy'] ?? []; $cancelByDate = $rate['cancelByDate'] ?? null; $cancellationDetails = $rate['cancellationDetails'] ?? []; $noShowFee = $rate['noShowFee'] ?? []; $underCancellation = $cancellationPolicy['under_cancellation'] ?? false; $cancellationType = $rate['refund_status']['text']; $badgeClass = $rate['refund_status']['badge_class']; $supportsCancellation = $rate['supports_cancellation'] ?? false; $supportsAmendment = $rate['supports_amendment'] ?? false; $paymentType = $rate['payment_type'] ?? ''; $promotions = $rate['promotions'] ?? ''; @endphp {{-- Room header --}}

{{ $roomType }}

{{ $roomDescription }}

{{ $cancellationType }}
{{-- Meal plan / Check-in time --}}
@if(!empty($boardingDetails))
Meal Plan

{{ $boardingDetails }}

@endif @if($checkinBeginTime || $checkoutTime)
Check-in / Check-out
@if($checkinBeginTime)
Check-in {{ $checkinBeginTime }}
@endif @if($checkoutTime)
Check-out {{ $checkoutTime }}
@endif
@endif
{{-- Inclusions --}} @if(!empty($otherInclusions))
Room Inclusions
@foreach($otherInclusions as $inclusion) {{ $inclusion }} @endforeach
@endif {{-- Payable at hotel --}} @if(!empty($payableAtHotelList))
Charges Payable at Hotel

These charges are not included in your total booking amount.

Mandatory Charges

@foreach($payableAtHotelList as $payableCurrency => $payableAmount)
Pay at Hotel ({{ $payableCurrency }}) {{ $payableCurrency }} {{ number_format($payableAmount ?? 0, 2) }}
@endforeach
Total Payable at Hotel @if(count($payableAtHotelList) == 1) @php $payableCurrency = array_key_first($payableAtHotelList); @endphp {{ $payableCurrency }} {{ number_format(reset($payableAtHotelList) ?? 0, 2) }} @else @foreach($payableAtHotelList as $payableCurrency => $payableAmount) {{ $payableCurrency }} {{ number_format($payableAmount ?? 0, 2) }}
@endforeach @endif
@endif {{-- Cancellation Policy --}}
Cancellation Policy
@php $isNonRefundable = $rate['non_refundable'] ?? false; $underCancellation = $cancellationPolicy['under_cancellation'] ?? false; $cancelDate = $cancelByDate ? \Carbon\Carbon::parse($cancelByDate) : null; $now = \Carbon\Carbon::now(); @endphp @if(!$supportsCancellation)
Non-Cancellable

No refund allowed under any circumstance.

@elseif($supportsCancellation && $isNonRefundable)
Non-Refundable

No refund will be issued once booked.

@else @if($underCancellation)
Partially Refundable

Cancellation fee may apply.

@else
Fully Refundable

Before cancellation deadline

@endif @if($cancelDate) @if($now->lt($cancelDate))
Free cancellation until: {{ $cancelDate->format('M d, Y h:i A') }}
@else
Cancellation deadline passed: {{ $cancelDate->format('M d, Y h:i A') }}
@endif @endif @if(!empty($cancellationDetails))
Cancellation Charges: @foreach($cancellationDetails as $rule) @php $ruleDate = !empty($rule['from']) ? \Carbon\Carbon::parse($rule['from'])->format('M d, Y h:i A') : 'N/A'; if (isset($rule['percent'])) { $chargeMsg = $rule['percent'] . '% of the total booking amount will be charged.'; } elseif (array_key_exists('amount', $rule)) { $ruleCurrency = $rule['currency'] ?? ''; $chargeMsg = 'A charge of ' . $ruleCurrency . ' ' . number_format($rule['amount'] ?? 0, 2) . ' will be applied.'; } elseif (isset($rule['flat_fee'])) { $ruleCurrency = $rule['currency'] ?? ''; $chargeMsg = 'A fixed fee of ' . $ruleCurrency . ' ' . number_format($rule['flat_fee'] ?? 0, 2) . ' will be charged.'; } elseif (isset($rule['nights'])) { $chargeMsg = 'You will be charged the cost of ' . $rule['nights'] . ' night(s).'; } else { $chargeMsg = 'Charges apply as per policy.'; } @endphp
From {{ $ruleDate }}: {{ $chargeMsg }}
@endforeach
@endif @if(!empty($noShowFee)) @php if (isset($noShowFee['percent'])) { $noShowMsg = "{$noShowFee['percent']}% of the booking amount will be charged if you fail to check in."; } elseif (isset($noShowFee['amount'])) { $noShowMsg = "A charge of " . number_format($noShowFee['amount'] ?? 0, 2) . " will be applied."; } elseif (isset($noShowFee['flat_fee'])) { $nsC = $noShowFee['currency'] ?? ''; $noShowMsg = "A fixed charge of {$nsC} " . number_format($noShowFee['flat_fee'] ?? 0, 2) . " will be applied if you fail to check in."; } elseif (isset($noShowFee['nights'])) { $noShowMsg = "If you do not arrive, you will be charged for {$noShowFee['nights']} night(s)."; } else { $noShowMsg = "No-show charges may apply."; } @endphp
{{ $noShowMsg }}
@endif @endif {{-- end supports_cancellation else --}}
{{-- Rate Details Accordion --}} @php $accordionId = 'rateDetails_' . uniqid(); @endphp
Cancellation
{{ $supportsCancellation ? 'Allowed' : 'Not Allowed' }}
Amendments
{{ $supportsAmendment ? 'Allowed' : 'Not Allowed' }}
Payment Type
{{ $paymentType }}
@if(!empty($promotions))
Special Offer: {{ $promotions }}
@endif @php $commentLabels = [ "remarks" => "Remarks", "policies" => "Hotel Policies", "pax_comments" => "Important Note", "mealplan" => "Meal Plan", "mandatory_fees" => "Mandatory Fees", "optional_fees" => "Optional Fees", "cards_accepted" => "Cards Accepted", "comments" => "Comments", "checkout_time" => "Checkout Time", "checkin_special_instructions" => "Check-in Special Instructions", "checkin_min_age" => "Minimum Check-in Age", "checkin_instructions" => "Check-in Instructions", "checkin_end_time" => "Check-in End Time", "checkin_begin_time" => "Check-in Start Time", "MandatoryFee" => "Mandatory Fee", "MandatoryTax" => "Mandatory Tax", ]; @endphp @if(!empty($rateComments))
Rate Information
@foreach($rateComments as $key => $value) @if(!empty($value) && isset($commentLabels[$key]))
{{ $commentLabels[$key] }}:
{!! $value !!}
@endif @endforeach
@endif
{{-- end card-body (room details) --}}
{{-- end card (room details) --}} {{-- Guest Details --}}

Guest Details

@foreach($Personcount as $roomIndex => $room)

Room {{ $roomIndex + 1 }}

{{-- Adults --}} @for($i = 0; $i < $room['adults']; $i++)
Adult {{ $i + 1 }}
@if($i == 0 && $roomIndex == 0) Main Guest @endif
{{-- Main guest extra fields --}} @if($i == 0 && $roomIndex == 0)
@if(($supplier['supplier'] ?? '') !== 'ratehawk' && $pan_required == true)
@endif @endif {{-- end main guest block --}} @if(($supplier['supplier'] ?? '') !== 'ratehawk' && $passportRequired == true)
@endif
{{-- end guest-block (adult) --}} @endfor {{-- Children --}} @for($j = 0; $j < $room['childrens']; $j++)
Child {{ $j + 1 }}
@if(($supplier['supplier'] ?? '') !== 'ratehawk' && $passportRequired == true)
@endif
{{-- end guest-block (child) --}} @endfor
{{-- end room-guest-block --}} @endforeach
{{-- end guest-form --}}
{{-- end card-body (guest details) --}}
{{-- end card (guest details) --}} {{-- Booking Remarks --}}

Booking Remarks / Comments

{{-- end card (remarks) --}}