{{-- Contract: $heading, $text, $photo, $rooms (see ostsee-licht/views/sections/floor_plan.blade.php). theme.js (initFloorPlans) shows one room at a time; without JavaScript all rooms are listed and the areas jump to them. --}} @if ($photo && $rooms->isNotEmpty())

{{ $heading }}

@if ($text)

{{ $text }}

@endif
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'h-auto w-full']) @foreach ($rooms as $room) {{ $room['name'] }} @endforeach
@foreach ($rooms as $room)
@if ($room['photos']->isNotEmpty()) @include('theme::partials.image', ['photo' => $room['photos']->first(), 'sizes' => '(min-width: 1024px) 26rem, 100vw', 'class' => 'mb-5 h-56 w-full rounded object-cover']) @endif

{{ $room['name'] }}

@if ($room['description'])

{{ $room['description'] }}

@endif @if ($room['amenities']->isNotEmpty())
    @foreach ($room['amenities'] as $amenity)
  • @endforeach
@endif @if ($room['hint'])

{{ $room['hint'] }}

@endif @if ($room['videoChapter'] ?? null) @endif @if ($room['photos']->count() > 1) @endif
@endforeach
@endif