@extends('layouts.app') @section('title', $pageTitle . ' - G4 Homez') @section('content') @php $heroImage = match($roomCategory) { 'apartment' => asset('assets/image_jengo.jpg'), 'conference' => asset('assets/image_ukumbi.jpg'), default => asset('assets/about_us.jpg'), }; $fallbackImage = match($roomCategory) { 'apartment' => asset('assets/image_jengo.jpg'), 'conference' => asset('assets/image_ukumbi.jpg'), default => asset('assets/house.jpg'), }; @endphp
{{ $pageTitle }} hero image
Welcome to G4 Homez

{{ $heroTitle }}

{{ $heroSubtitle }}

{{ $heroDescription }}

Explore Our {{ $pageTitle }}

Choose the option that fits you best, with high quality standards, spotless cleanliness, and a peaceful atmosphere for a truly memorable experience.

@forelse($items as $item) @php $amenities = $item->amenities ?? []; $pricingUnit = $item->pricing_unit ?: 'night'; $cardImage = $item->first_image_url ?: $fallbackImage; @endphp
{{ $item->name }}
{{ ucfirst($item->room_category ?: $roomCategory) }}

{{ $item->name }}

{{ \Illuminate\Support\Str::limit($item->description ?: 'Beautifully prepared space with comfort-focused amenities for a relaxing stay.', 155) }}

@if($item->room_category === 'conference' && $item->conference_capacity)
Capacity: {{ $item->conference_capacity }} guests
@endif @if(!empty($amenities))
@foreach(array_slice($amenities, 0, 4) as $amenity) {{ ucwords(str_replace('_', ' ', $amenity)) }} @endforeach @if(count($amenities) > 4) +{{ count($amenities) - 4 }} more @endif
@endif

Starting from

${{ number_format((float) $item->price, 2) }} /{{ $pricingUnit }}

Book Now
@empty
{{ $pageTitle }}

No {{ strtolower($pageTitle) }} available now

{{ $emptyMessage }}

Contact G4 Homez
@endforelse
@endsection