
@if (!empty($hotel['images']) && count($hotel['images']) > 1)
@php
$thumbnailImages = array_slice($hotel['images'], 1, 4);
$hasMoreImages = count($hotel['images']) > 5;
@endphp
@foreach ($thumbnailImages as $index => $image)

@if ($loop->last && $hasMoreImages)
+{{ count($hotel['images']) - 5 }}
@endif
@endforeach
@endif
{{ $hotel['name'] ?? 'Hotel Name' }}
{!! $hotel['description'] !!}
Address:
{{ $hotel['address'] }}
Category:
{{ $hotel['category'] ?? 'N/A' }} Star
Country: {{ $hotel['country_name'] ?? 'N/A' }}
Property Type: {{ ucfirst($hotel['kind'] ?? 'Hotel') }}
@if (!empty($hotel['check_in_time']))
Check-in:
{{ date('g:i A', strtotime($hotel['check_in_time'])) }}
@endif
@if (!empty($hotel['check_out_time']))
Check-out:
{{ date('g:i A', strtotime($hotel['check_out_time'])) }}
@endif
@foreach ($hotel['images'] as $key => $image)
@endforeach
Available Rooms & Rates
@php
$maxRooms = 0;
foreach ($rates as $rate) {
if (isset($rate['no_of_rooms']) && $rate['no_of_rooms'] > $maxRooms) {
$maxRooms = $rate['no_of_rooms'];
}
}
$Roomcount = $maxRooms;
@endphp
@foreach ($rates as $rate)
@if ($Roomcount == $rate['no_of_rooms'])
@php
$rooms = $rate['rooms'] ?? [];
$refund = $rate['refund_status'] ?? [];
// Generate unique ID for accordion
$accordionId = 'rateDetails' . uniqid();
@endphp
{{-- ROOM RATE CARD --}}
{{-- Non-Refundable Badge on Top Right --}}
{{ $refund['text'] ?? 'N/A' }}
{{ strtoupper($rate['supplier'] ?? 'N/A') }}
(ID: {{ $rate['supplier_id'] ?? '-' }})
@if (!empty($rate['supplier_hotel_code']))
| Code: {{ $rate['supplier_hotel_code'] }}
@endif
{{ $rooms[0]['description'] ?? 'Room' }}
{{-- Room Details --}}
@foreach ($rooms as $index => $room)
Room {{ $index + 1 }}: {{ $room['description'] ?? 'Room' }}
{{ $room['no_of_adults'] }} Adults
{{ $room['no_of_children'] }} Children
@endforeach
{{-- Meal Plan --}}
Meal Plan: {{ $rate['board'] }}
{{-- Breakfast Plan --}}
@if ($rate['has_breakfast'] ?? false)
Breakfast Included
@endif
{{-- Inclusions --}}
@if (!empty($rate['inclusions']))
@foreach ($rate['inclusions'] as $incl)
@endforeach
@endif
{{-- Rate Details & Policies Accordion (Bootstrap collapse, always starts closed) --}}
{{-- Cancellation --}}
Cancellation
{{ $rate['supports_cancellation'] ? 'Allowed' : 'Not Allowed' }}
@php
$cancel = $rate['cancellation_policy'] ?? [];
$freeDate =
$cancel['free_cancellation_before'] ?? null;
$policies = $cancel['policies'] ?? [];
$chargeAmount = null;
foreach ($policies as $p) {
if (($p['amount_show'] ?? 0) > 0) {
$chargeAmount = $p['amount_show'];
break;
}
}
@endphp
@if ($freeDate)
Free
cancellation before
{{ \Carbon\Carbon::parse($freeDate)->format('d M Y, H:i') }} UTC+0
@endif
@if ($chargeAmount)
After that {{ $rate['currency'] }}
{{ $chargeAmount }} charge
@endif
{{-- Amendment --}}
Amendments
{{ $rate['supports_amendment'] ?? 0 ? 'Allowed' : 'Not Allowed' }}
{{-- Payment --}}
Payment
Type
{{ !empty($rate['payment_type']) ? ucfirst($rate['payment_type']) : 'Flexible' }}
{{-- Residency --}}
Residency
Rule
{{ $rate['any_residency'] ?? false ? 'Open for all guests' : 'Restriction applies' }}
@if ($rate['pan_required'] == 1)
@endif
@if (!empty($rate['promo_text']))
Special Offer:
{{ $rate['promo_text'] }}
@endif
{{-- Rate Comments Section --}}
@if (!empty($rate['paxComments']) || !empty($rate['remarks']))
@if (!empty($rate['paxComments']))
{{ $rate['paxComments'] }}
@endif
@if (!empty($rate['remarks']))
@php
$notes = explode(
'.',
strip_tags($rate['remarks']),
);
@endphp
@foreach ($notes as $note)
@if (trim($note))
- {{ trim($note) }}
@endif
@endforeach
@endif
@endif
{{-- Price & Booking --}}
@if ($rate['original_price'] > $rate['price'])
@if (strtolower($rate['currency']) == 'inr')
₹
@endif
{{ number_format($rate['original_price'] ?? 0, 2) }} {{ $rate['currency'] }}
@endif
@if (strtolower($rate['currency']) == 'inr')
₹
@endif
{{ number_format($rate['price'] ?? 0, 2) }}
{{ $rate['currency'] }}
@if ($rate['tax_amount'] > 0)
+ @if (strtolower($rate['currency']) == 'inr')
₹
@endif
{{ number_format($rate['tax_amount'] ?? 0, 2) }} taxes & fees
@endif
@endif
@endforeach
Hotel Facilities
@foreach ($hotel['facilities'] as $f)
{{ trim($f) }}
@endforeach
@if(!empty($hotel['policies']) || !empty($hotel['metapolicy']))
Important Hotel Information
@foreach($hotel['policies'] as $policy)
{{ $policy['title'] }}
@foreach($policy['items'] as $item)
- {{ $item }}
@endforeach
@endforeach
@if(!empty($hotel['metapolicy']))
{!! $hotel['metapolicy'] !!}
@endif
@endif