{{-- Contract: $heading, $text, $photo (App\Models\Photo, the plan picture), $rooms (Collection of arrays: key, name, description, hint, points = "x,y x,y …" in percent of the picture, photos = Collection, amenities = Collection). Base version without JavaScript: the areas on the plan jump to the room descriptions below. --}} @if ($photo && $rooms->isNotEmpty())

{{ $heading }}

@if ($text)

{{ $text }}

@endif
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1280px) 80rem, 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) 25vw, 100vw', 'class' => 'mb-4 h-44 w-full rounded-sm object-cover']) @endif

    {{ $room['name'] }}

    @if ($room['description'])

    {{ $room['description'] }}

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

    {{ $room['hint'] }}

    @endif
  • @endforeach
@endif