@livewireStyles @php $images = is_array($room->images ?? null) ? array_values(array_filter($room->images)) : []; $amenities = is_array($room->amenities ?? null) ? $room->amenities : []; $fallbackImage = asset('images/logo_nero.png'); $resolveImageUrl = static function (?string $path) use ($fallbackImage): string { if (! filled($path)) { return $fallbackImage; } $cleanPath = ltrim($path, '/'); return \Illuminate\Support\Str::startsWith($cleanPath, 'images/') ? asset($cleanPath) : asset('storage/' . $cleanPath); }; $mainImage = count($images) > 0 ? $resolveImageUrl($images[0]) : $fallbackImage; @endphp @include('components.shared-nav')
{{ $room->name }}
Cà Scirocco

{{ $room->name }}

← Torna agli alloggi
@if(count($images) > 0)
@foreach($images as $image) @endforeach
@endif

{{ $room->name }}

{{ $room->description ?: 'Descrizione non disponibile al momento.' }}
@if(count($amenities) > 0)

Dotazioni

@foreach($amenities as $amenity)
{{ $amenity }}
@endforeach
@endif
Prezzo a notte €{{ number_format((float) ($room->price_per_night ?? 0), 0, ',', '.') }}
Prenota Ora
@livewireScripts