{% set partnerName = partner_name|split_agency %}
RÉSERVATION CONFIRMÉE

Merci pour votre réservation, {{ booking.firstName }} !

Votre séjour est enregistré sous la référence : {{ booking.bookingNumber }}
{% if booking.specialWishes %} {% endif %} {% if booking.specialMessage is not null and booking.specialMessage is not empty %} {% endif %}
Client : {{ booking.getClientFullName() }}
Établissement : {{ booking.hotelName }}
Hébergement : {% set finalPrice = 0 %} {% for details in booking.detailsPrices %} {% if details['rooms_per_pension'] is defined %} {% for roomPerPension in details['rooms_per_pension'] %} {% for priceDay in roomPerPension['room_price_per_day'] %} {% set roomData = priceDay['final_price_per_day']['room'] %} {% set dayBrut = roomData['brut_price'] %} {% set finalPrice = finalPrice + dayBrut %}
{{ priceDay['date']|date('d/m/Y') }} : {{ roomPerPension['name'] }} {{ dayBrut|number_format(2, ',', ' ') }} TND
{# --- DÉTAILS OCCUPANTS --- #}
{# Adultes #} {% if roomData['adult'] is defined and roomData['adult'] is not empty %} • Adultes : {{ roomData['adult']['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %} {# Lits supp #} {% for i in 1..4 %} {% set bedKey = 'extendedBed' ~ i %} {% if roomData[bedKey] is defined and roomData[bedKey] is not empty and roomData[bedKey]['brut_price'] is defined and roomData[bedKey]['brut_price'] > 0 %} • Lit suppl. {{ i }} : {{ roomData[bedKey]['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %} {% endfor %} {# Enfants #} {% if roomData['childs'] is defined and roomData['childs'] is not empty %} {% for child in roomData['childs'] %} • Enfant {{ child.enfant ?? loop.index }} ({{ child.age }} {{ child.age <= 1 ? 'an' : 'ans' }}) : {{ child.brut_price|number_format(2, ',', ' ') }} TND {% if child.label %}
({{ child.label }}){% endif %}
{% endfor %} {% endif %}
{# --- SUPPLÉMENTS --- #} {% if priceDay['final_price_per_day']['supplements'] is defined and priceDay['final_price_per_day']['supplements'] is not empty %} {% for supplement in priceDay['final_price_per_day']['supplements'] %} {% set finalPrice = finalPrice + (supplement['brut_price'] ?? 0) %}
+ {{ supplement['name'] }} ({{ (supplement['brut_price'] ?? 0)|number_format(2, ',', ' ') }} TND)
{% endfor %} {% endif %}
{% endfor %} {% endfor %} {% endif %} {% endfor %}
Dates : Du {{ booking.beginDate|date('d/m/Y') }} au {{ booking.endDate|date('d/m/Y') }} ({{ booking.numberOfStay }} nuits)
Pension : {{ booking.pensionName }}
Mode de paiement : {{ displayPaymentType(booking.paymentType) }} {% if booking.paymentType == 1 and booking.agencyId %}
Agence : {{ displayAgencyCoordinate(booking.agencyId)['name'] ?? 'N/A' }}
{{ displayAgencyCoordinate(booking.agencyId)['address'] ?? '' }}
{% endif %}
Souhaits : {{ booking.specialWishes }}
Note particulière : {{ booking.specialMessage }}
MONTANT TOTAL : {{ finalPrice|number_format(2, ',', ' ') }} TND