@php $hotelsContent = getContent('hotels.content', true); $hotelsElements = getContent('hotels.element', false, 4, true); // Fixed hotels data - 4 hotels for Sri Lanka $fixedHotels = [ [ 'id' => 'hotel-1', 'name' => 'Cinnamon Grand Colombo', 'location' => 'Colombo', 'price' => 'From $150/night', 'rating' => '4.8', 'image' => 'sunset-pool.jpg', 'description' => 'Luxury beachfront hotel in the heart of Colombo with world-class amenities', 'route' => 'hotel-cinnamon-grand' ], [ 'id' => 'hotel-2', 'name' => 'Jetwing Vil Uyana', 'location' => 'Sigiriya', 'price' => 'From $200/night', 'rating' => '4.9', 'image' => 'swimming-pool.jpg', 'description' => 'Eco-luxury resort near Sigiriya Rock with stunning water villas', 'route' => 'hotel-jetwing-vil-uyana' ], [ 'id' => 'hotel-3', 'name' => 'Tea Factory Hotel', 'location' => 'Nuwara Eliya', 'price' => 'From $120/night', 'rating' => '4.7', 'image' => 'type-entertainment-complex-popular-resort-with-pools-water-parks-turkey-with-more-than-5-million-visitors-year-amara-dolce-vita-luxury-hotel-resort-tekirova-kemer.jpg', 'description' => 'Unique hotel converted from a traditional tea factory in the highlands', 'route' => 'hotel-tea-factory' ], [ 'id' => 'hotel-4', 'name' => 'Shangri-La Hambantota', 'location' => 'Hambantota', 'price' => 'From $180/night', 'rating' => '4.8', 'image' => 'placa-del-ajuntament-summer-evening-valencia.jpg', 'description' => 'Beach resort and spa with championship golf course on the south coast', 'route' => 'hotel-shangri-la-hambantota' ] ]; // Safely get content data $contentData = null; if ($hotelsContent && !empty($hotelsContent->data_values)) { if (is_string($hotelsContent->data_values)) { $contentData = json_decode($hotelsContent->data_values); } else { $contentData = $hotelsContent->data_values; } } // Fallback content if database content is not available if (!$contentData) { $contentData = (object) [ 'title' => 'Featured Hotels', 'heading' => 'Premium Accommodations', 'sub_heading' => 'Discover our handpicked selection of the finest hotels and resorts across Sri Lanka, offering luxury, comfort, and unforgettable experiences.' ]; } @endphp {{ __($contentData->title) }} {{ __($contentData->heading) }} {{ __($contentData->sub_heading) }} @forelse ($fixedHotels as $item) View Details FEATURED {{ $item['location'] }} {{ $item['rating'] }} {{ $item['name'] }} {{ $item['description'] }} Luxury Premium @empty No hotels available at the moment. @endforelse
{{ __($contentData->sub_heading) }}
{{ $item['description'] }}
No hotels available at the moment.