@extends('layout.base') @section('action') {{--
RESET
--}} @endsection @section('content')
@if (request()->has(['checkin', 'checkout', 'rooms']))
@forelse ($hotels as $hotel)
{{ $hotel->hotel_name }}

{{ $hotel->address }}

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

@php $facilities = is_string($hotel->facilities) ? json_decode($hotel->facilities, true) : $hotel->facilities; $facilityTranslations = [ 'Parkir Gratis' => 'Free Parking', 'WiFi Gratis' => 'Free WiFi', 'Kolam Renang' => 'Swimming Pool', 'Restoran' => 'Restaurant', ]; @endphp @if ($facilities && is_array($facilities)) @foreach ($facilities as $facility) {{ $facilityTranslations[$facility] ?? $facility }} @endforeach @endif
View Detail
@empty
No hotels found for the selected filters.
@endforelse
@else

Please apply filter first to view available hotels.

@endif
@endsection @section('styles') @endsection @section('scripts') @endsection