| 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
{# --- 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) %}
{% 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 %}
+ {{ supplement['name'] }} ({{ (supplement['brut_price'] ?? 0)|number_format(2, ',', ' ') }} TND)
{% endfor %}
{% endif %}
|
| 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' }}
{% endif %}
{{ displayAgencyCoordinate(booking.agencyId)['address'] ?? '' }} |
| Souhaits : | {{ booking.specialWishes }} |
| Note particulière : | {{ booking.specialMessage }} |
| MONTANT TOTAL : | {{ finalPrice|number_format(2, ',', ' ') }} TND |