| Date | Désignation & Occupants | Pension | Prix Chambre | Suppléments Hors Chambre |
|---|---|---|---|---|
| {{ priceDay['date']|date('d/m/Y') }} |
{{ roomPerPension['name'] }} ({{ roomPerPension['code'] }})
{# --- DÉTAIL DES OCCUPANTS --- #}
{# Adulte(s) #}
{% if roomPriceData['adult'] is defined and roomPriceData['adult'] is not empty %}
• Adulte(s) de base : {{ roomPriceData['adult']['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %}
{# Lits supplémentaires 1 à 4 #}
{% for i in 1..4 %}
{% set bedKey = 'extendedBed' ~ i %}
{% if roomPriceData[bedKey] is defined and roomPriceData[bedKey] is not empty and roomPriceData[bedKey]['brut_price'] is defined and roomPriceData[bedKey]['brut_price'] > 0 %}
• Lit supplémentaire {{ i }} : {{ roomPriceData[bedKey]['brut_price']|number_format(2, ',', ' ') }} TND
{% endif %}
{% endfor %}
{# Enfants #}
{% if roomPriceData['childs'] is defined and roomPriceData['childs'] is not empty %}
{% for child in roomPriceData['childs'] %}
• Enfant {{ child.enfant ?? loop.index }} ({{ child.age }} {{ child.age <= 1 ? 'an' : 'ans' }}) :
{{ child.brut_price|number_format(2, ',', ' ') }} TND
{% if child.label %}
{% endfor %}
{% endif %}
({{ child.label }}){% endif %} |
{{ details['pension_name'] }} | {{ roomBrut|number_format(2, ',', ' ') }} TND |
{% 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'] }}
{% endfor %}
{% else %}
Aucun
{% endif %}
+ {{ (supplement['brut_price'] ?? 0)|number_format(2, ',', ' ') }} TND |
| Montant total à régler : | {{ finalPrice|number_format(2, ',', ' ') }} TND |