{% extends 'layout_booking.html.twig' %} {% block title %}{{ booking.inquiry ? 'Dein Angebot' : 'Deine Buchung' }}{% endblock %} {% block background %}bg-outer bg-outer--summer{% endblock %} {% block content %} {% set currency = booking.pricingCurrency ?? priceBreakdown.currency %} {% if booking.discount is not null and priceBreakdown is not null %} {% set discountAmount = (priceBreakdown.total * booking.discount / 100) | round | number_format(0, '.', '') %} {% set discountedTotal = booking.totalPrice ?? (priceBreakdown.total - discountAmount) %} {% endif %} {% set displayTotal = discountedTotal ?? (priceBreakdown.total ?? null) %}
{# Sidebar summary #}
{% include 'groups/booking/_offer_summary.html.twig' with { booking: booking, ctx: ctx, currency: currency, displayTotal: displayTotal, discountAmount: discountAmount ?? null, discountedTotal: discountedTotal ?? null, } %}
{# Main area #}

{{ booking.inquiry ? 'Dein Angebot' : 'Deine Buchung' }}

{{ ctx.accommodation.name }}

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

Gebuchte Leistungen

    {% if booking.boardServiceLabel %}
  • {{ booking.boardServiceLabel }}
  • {% endif %} {% for service in booking.additionalServices %}
  • {{ service.label }}
  • {% endfor %}
{% endif %} {% if ctx.hotelCmsData is not null %}

Die Unterkunft

{{ ctx.hotelCmsData.description | raw }}

Details zur Unterkunft

{{ ctx.hotelCmsData.features | raw }}

Die Zimmer

{{ ctx.hotelCmsData.roomTypes | raw }}

Weitere Infos

{{ ctx.hotelCmsData.additionalInformation | raw }}

Bilder

{% set largeImages = ctx.hotelCmsData.images.resized.l %} {% set mediumImages = ctx.hotelCmsData.images.resized.m %} {% if largeImages | length > 0 %}
{% for image in largeImages %}
{{ image.alt ?? ctx.accommodation.name }} {% if loop.index0 == 1 and largeImages | length > 2 %}
+{{ largeImages | length - 2 }}
{% endif %}
{% endfor %}
{% endif %} {% endif %} {# TODO: additional hotel and location information fetched from the CMS #} {% if booking.remarks %}

Anmerkungen

{{ booking.remarks | nl2br }}

{% endif %} {% if booking.inquiry %}
{% else %} {% if booking.acceptedAt is not null %}

Angenommen am {{ booking.acceptedAt | date('d.m.Y') }} um {{ booking.acceptedAt | date('H:i') }} Uhr

{% endif %} {% endif %}
{% if justAccepted %}
{% include '_partials/_alert.html.twig' with { level: 'success', title: 'Bestätigt', messages: ['Deine Buchung ist verbindlich bestätigt.'], } %}
{% endif %} {% endblock %}