@extends('layouts.app') @section('content')

Book a Room

Reserve your stay at G4 Homez — Kilakala Bong'ola, Morogoro

@if(!$rooms->isEmpty())
@if(isset($selectedCheckIn) || isset($selectedCheckOut) || isset($selectedCategory))

Search Results

@if(isset($selectedCheckIn) && isset($selectedCheckOut)) {{ \Carbon\Carbon::parse($selectedCheckIn)->format('M d, Y') }} - {{ \Carbon\Carbon::parse($selectedCheckOut)->format('M d, Y') }} @endif @if(isset($selectedCategory)) | {{ $selectedCategory === 'conference' ? 'Conference Facility' : ucfirst($selectedCategory) . ' Room' }} @endif

Clear Filters
@endif

Available Rooms

Select a room to proceed with your booking

@foreach($rooms as $room)
@if($room->images && count($room->images) > 0) {{ $room->name }} @else {{ $room->name }} @endif

{{ $room->name }}

@if($room->room_number) #{{ $room->room_number }} @endif
@if($room->room_category)

{{ $room->room_category === 'conference' ? 'Conference Facility' : $room->room_category . ' Room' }}

@endif

{{ Str::limit($room->description, 100) }}

@if($room->amenities && count($room->amenities) > 0)
@php $amenityIcons = [ 'breakfast' => 'fa-utensils', 'lunch' => 'fa-utensils', 'dinner' => 'fa-utensils', 'wifi' => 'fa-wifi', 'ict' => 'fa-laptop', 'parking' => 'fa-car', 'air_conditioning' => 'fa-snowflake', 'tv' => 'fa-tv', 'balcony' => 'fa-home', 'kitchen' => 'fa-kitchen-set', 'bathroom' => 'fa-bath', 'laundry' => 'fa-shirt', 'room_service' => 'fa-bell', 'security' => 'fa-shield', ]; $amenityLabels = [ 'breakfast' => 'Breakfast', 'lunch' => 'Lunch', 'dinner' => 'Dinner', 'wifi' => 'WiFi', 'ict' => 'ICT', 'parking' => 'Parking', 'air_conditioning' => 'AC', 'tv' => 'TV', 'balcony' => 'Balcony', 'kitchen' => 'Kitchen', 'bathroom' => 'Bathroom', 'laundry' => 'Laundry', 'room_service' => 'Room Service', 'security' => 'Security', ]; @endphp @foreach(array_slice($room->amenities, 0, 4) as $amenity) {{ $amenityLabels[$amenity] ?? ucfirst(str_replace('_', ' ', $amenity)) }} @endforeach @if(count($room->amenities) > 4) +{{ count($room->amenities) - 4 }} more @endif
@endif
${{ number_format($room->price, 2) }}/{{ $room->pricing_unit ?? ($room->room_category === 'conference' ? 'session' : 'night') }}
@endforeach
@else

No Rooms Available

@if(isset($selectedCheckIn) || isset($selectedCheckOut) || isset($selectedCategory)) No rooms match your search criteria. Please try different dates or room category. @else No rooms are currently available for booking. @endif

View All Rooms
@endif @endsection