164 lines
5.8 KiB
Twig
164 lines
5.8 KiB
Twig
{% extends 'email/layout.html.twig' %}
|
||
|
||
{% block body %}
|
||
<h1>
|
||
Neue Unterkunfts{% if booking.inquiry %}anfrage{% else %}buchung{% endif %}
|
||
</h1>
|
||
|
||
<p>
|
||
<strong>Art:</strong>
|
||
{% if booking.inquiry %}
|
||
Unverbindliche Anfrage
|
||
{% else %}
|
||
Verbindliche Buchung
|
||
{% endif %}
|
||
</p>
|
||
|
||
{% if accessLink %}
|
||
<p>
|
||
<a href="{{ accessLink }}" class="button">Kundenansicht öffnen</a>
|
||
</p>
|
||
{% endif %}
|
||
|
||
<h2>Unterkunft</h2>
|
||
<table>
|
||
<tr>
|
||
<td><strong>Name</strong></td>
|
||
<td>{{ booking.accommodation.name }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>Anreise</strong></td>
|
||
<td>{{ booking.dateFrom|date('d.m.Y') }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>Abreise</strong></td>
|
||
<td>{{ booking.dateTo|date('d.m.Y') }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>Nächte</strong></td>
|
||
<td>{{ booking.nights }}</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<h2>Personen</h2>
|
||
<table>
|
||
<tr>
|
||
<td><strong>Personen</strong></td>
|
||
<td>{{ booking.paxCount }}</td>
|
||
</tr>
|
||
{% if booking.minorsCount > 0 %}
|
||
<tr>
|
||
<td><strong>Kinder (0–3 J.)</strong></td>
|
||
<td>{{ booking.minorsCount }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if booking.childrenCount > 0 %}
|
||
<tr>
|
||
<td><strong>Kinder (4–{{ booking.accommodation.maxAdolescentAge }} J.)</strong></td>
|
||
<td>{{ booking.childrenCount }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
</table>
|
||
|
||
{% if booking.boardServiceLabel %}
|
||
<h2>Verpflegung</h2>
|
||
<p>{{ booking.boardServiceLabel }}</p>
|
||
{% endif %}
|
||
|
||
{% if booking.additionalServices is not empty %}
|
||
<h2>Zusatzleistungen</h2>
|
||
<ul>
|
||
{% for service in booking.additionalServices %}
|
||
<li>{{ service.label }}</li>
|
||
{% endfor %}
|
||
</ul>
|
||
{% endif %}
|
||
|
||
{% if priceBreakdown is not empty %}
|
||
{% set currency = booking.pricingCurrency ?? priceBreakdown.currency %}
|
||
<h2>Preise</h2>
|
||
<table>
|
||
{% if priceBreakdown.basePrice > 0 %}
|
||
<tr>
|
||
<td><strong>Basispreis</strong>{% if priceBreakdown.includedPax is defined %} ({{ priceBreakdown.includedPax }} Pers.){% endif %}</td>
|
||
<td>{{ (priceBreakdown.basePrice / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if priceBreakdown.additionalPersonsPrice > 0 %}
|
||
<tr>
|
||
<td><strong>Aufpreis Personenzahl</strong>{% if priceBreakdown.includedPax is defined %} ({{ priceBreakdown.effectivePax - priceBreakdown.includedPax }} Pers.){% endif %}</td>
|
||
<td>{{ (priceBreakdown.additionalPersonsPrice / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if priceBreakdown.shortTermSurcharge > 0 %}
|
||
<tr>
|
||
<td><strong>Aufpreis Kurzzeit</strong></td>
|
||
<td>{{ (priceBreakdown.shortTermSurcharge / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if priceBreakdown.boardPrice > 0 %}
|
||
<tr>
|
||
<td><strong>Verpflegung</strong></td>
|
||
<td>{{ (priceBreakdown.boardPrice / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if priceBreakdown.undersubscriptionSurcharge > 0 %}
|
||
<tr>
|
||
<td><strong>Verpflegungs-Aufschlag</strong> (unter {{ priceBreakdown.undersubscriptionThreshold }} Pers.)</td>
|
||
<td>{{ (priceBreakdown.undersubscriptionSurcharge / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% for service in priceBreakdown.serviceDetails %}
|
||
{% if service.price > 0 %}
|
||
<tr>
|
||
<td><strong>{{ service.label }}</strong></td>
|
||
<td>{{ (service.price / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% endfor %}
|
||
{% if priceBreakdown.runningCosts > 0 %}
|
||
<tr>
|
||
<td><strong>Strom- und Abfallgebühren</strong></td>
|
||
<td>{{ (priceBreakdown.runningCosts / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
<tr>
|
||
<td><strong>Gesamtpreis</strong> <em>(zzgl. ortsabhängiger Gebühren)</em></td>
|
||
<td><strong>{{ ((booking.totalPrice ?? priceBreakdown.total) / 100)|format_currency(currency) }}</strong></td>
|
||
</tr>
|
||
</table>
|
||
{% endif %}
|
||
|
||
<h2>Kontakt</h2>
|
||
<table>
|
||
<tr>
|
||
<td><strong>Name</strong></td>
|
||
<td>{{ booking.salutation }} {{ booking.firstName }} {{ booking.lastName }}</td>
|
||
</tr>
|
||
<tr>
|
||
<td><strong>E-Mail</strong></td>
|
||
<td><a href="mailto:{{ booking.email }}">{{ booking.email }}</a></td>
|
||
</tr>
|
||
{% if booking.phone %}
|
||
<tr>
|
||
<td><strong>Telefon</strong></td>
|
||
<td>{{ booking.phone }}</td>
|
||
</tr>
|
||
{% endif %}
|
||
{% if booking.street or booking.zip or booking.city %}
|
||
<tr>
|
||
<td><strong>Adresse</strong></td>
|
||
<td>
|
||
{% if booking.street %}{{ booking.street }}<br>{% endif %}
|
||
{% if booking.zip or booking.city %}{{ booking.zip }} {{ booking.city }}{% endif %}
|
||
</td>
|
||
</tr>
|
||
{% endif %}
|
||
</table>
|
||
|
||
{% if booking.remarks %}
|
||
<h2>Anmerkungen</h2>
|
||
<p>{{ booking.remarks|nl2br }}</p>
|
||
{% endif %}
|
||
{% endblock %}
|