{% extends 'layout_booking.html.twig' %} {% macro imageGallery(images, thumbImages, defaultAlt) %} {% if images|length > 0 %}
{% for image in images %}
{{ image.alt ?? defaultAlt }} {% if loop.index0 == 1 and images|length > 2 %}
+{{ images|length - 2 }}
{% endif %}
{% endfor %}
{% endif %} {% endmacro %} {% import _self as macros %} {% block title %}{{ booking.acceptedAt is not null ? 'Deine Buchung' : 'Dein Angebot' }}{% endblock %} {% block background %}bg-outer bg-outer--summer{% endblock %} {% block content %} {% set currency = booking.pricingCurrency ?? priceBreakdown.currency %}
{# Sidebar summary #}
{% include 'groups/offer/_summary.html.twig' with { booking: booking, ctx: ctx, currency: currency, } %}
{# Main area #}
{% include '_partials/_flashes.html.twig' %}

{{ booking.acceptedAt is not null ? 'Deine Buchung' : 'Dein Angebot' }}

{{ ctx.accommodation.name }}

{# Booked services #} {% if booking.boardServiceLabel or booking.additionalServices | length > 0 %}

{{ booking.acceptedAt is not null ? 'Gebuchte' : 'Angebotene' }} Leistungen

    {% if booking.boardServiceLabel %}
  • {{ booking.boardServiceLabel }}
  • {% endif %} {% for service in booking.additionalServices %}
  • {{ service.label }}
  • {% endfor %}
{% endif %} {% if booking.open %}
{% elseif booking.confirmedAt is not null %}
{{ icon('info', 'w-5 h-5') }}
Buchung bestätigt am {{ booking.confirmedAt | date('d.m.Y') }}
{% elseif booking.acceptedAt is not null %}
{{ icon('info', 'w-5 h-5') }}
Am {{ booking.acceptedAt | date('d.m.Y') }} bei uns eingegangen — wir prüfen deine Buchung und melden uns mit der Bestätigung bei dir.
{% endif %} {# hotel description #} {% if ctx.hotelCmsData is not null %} {% embed '_partials/_collapsible.html.twig' with { heading: 'Die Unterkunft', id: 'accommodation', } %} {% block body %} {% set icons = ctx.hotelCmsData.icons %} {% if icons is not empty %} {% endif %} {{ ctx.hotelCmsData.description | raw }} {% if ctx.hotelCmsData.features|striptags|trim is not empty %}

Details zur Unterkunft

{{ ctx.hotelCmsData.features | raw }} {% endif %} {% if ctx.hotelCmsData.roomTypes|striptags|trim is not empty %}

Die Zimmer

{{ ctx.hotelCmsData.roomTypes | raw }} {% endif %} {% endblock %} {% endembed %} {{ macros.imageGallery(ctx.hotelCmsData.images.resized.l, ctx.hotelCmsData.images.resized.m, ctx.accommodation.name) }} {% endif %} {# additional information #} {% if ctx.hotelCmsData is not null and ctx.hotelCmsData.additionalInformation|striptags|trim is not empty %} {% embed '_partials/_collapsible.html.twig' with { heading: 'Zusatzinformationen', id: 'additional-information', } %} {% block body %} {{ ctx.hotelCmsData.additionalInformation | raw }} {% endblock %} {% endembed %} {% endif %} {# region description #} {% if ctx.hotelCmsData is not null and ctx.hotelCmsData.region is not null %} {% set region = ctx.hotelCmsData.region %} {% embed '_partials/_collapsible.html.twig' with { heading: 'Die Region ' ~ region.name, id: 'region', region: region, } %} {% block body %} {% if region.altitude or region.length or region.lifts %} {% endif %} {% if region.webcam %}

Webcam der Region

{% endif %} {{ region.description | default('') | raw }} {{ region.skiArea | default('') | raw }} {{ region.skiAreaExtended | default('') | raw }} {% if region.news %}

Aktuelles aus der Region

{{ region.news | raw }} {% endif %} {% endblock %} {% endembed %} {% if region.regionMaps is not null and region.regionMaps | length > 0 %} {% set regionMapImages = region.regionMaps | map(url => {url: url}) %} {{ macros.imageGallery(regionMapImages, [], region.name) }} {% endif %} {{ macros.imageGallery(region.images.resized.l ?? [], region.images.resized.m ?? [], region.name) }} {% endif %}
{% endblock %}