{% extends 'layout.html.twig' %} {% block title %}{{ booking.inquiry ? 'Dein Angebot' : 'Deine Buchung' }}{% endblock %} {% block background %}bg-outer bg-outer--summer{% endblock %} {% block content %}

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

{{ booking.accommodation.name }}

Anreise
{{ booking.dateFrom | date('d.m.Y') }}
Abreise
{{ booking.dateTo | date('d.m.Y') }}
Nächte
{{ booking.nights }}
Personen
{{ booking.paxCount }}
{% if booking.boardServiceLabel %}
Verpflegung
{{ booking.boardServiceLabel }}
{% endif %}
{% if booking.additionalServices | length > 0 %}

Zusatzleistungen

{% endif %} {% if priceBreakdown is not null %} {% set currency = booking.accommodation.currency %}

Preise

{% if booking.discount is not null %} {% set discountAmount = (priceBreakdown.total * booking.discount / 100) | round | number_format(0, '.', '') %} {% set discountedTotal = priceBreakdown.total - discountAmount %} {% endif %}
Gesamtpreis zzgl. ortsabhängiger Gebühren {{ (priceBreakdown.total / 100) | format_currency(currency) }}
Rabatt {{ booking.discount }} % – {{ (discountAmount / 100) | format_currency(currency) }}
Gesamtpreis nach Rabatt {{ (discountedTotal / 100) | format_currency(currency) }}
{% endif %} {% if booking.inquiry %}
{% else %} {% include '_partials/_alert.html.twig' with { level: 'success', title: 'Bestätigt', messages: ['Deine Buchung ist verbindlich bestätigt.'], } %} {% endif %}
{% endblock %}