{% extends 'base.html.twig' %} {% block title %} {{ 'reservation_detail.title'|trans }} {% endblock %} {% block description %} {% endblock %} {% block body %} {% include "front/inc/breadcrumb.html.twig" with { 'current_page' : 'reservation_detail.breadcrumb'|trans, 'content_title': 'compte.title'|trans, 'content_lien' : path('app_account',{'_locale':app.request.locale}), 'image' : '' } %} {% set carts = order.produitReservation %} {% set cartCalendar = order.dateResa %} {% set cartHotel = order.hotelReservation %} {% set navetteAeroport = order.navetteAeroport %}
{{ 'reservation_detail.reservation_number'|trans }} {{ order.reference }}
{{ cartCalendar[firstKey].start|date('H:00') }}
{% if app.request.locale == 'en' %}
{{ cartCalendar[firstKey].start|format_datetime(locale='en',pattern="EEEE dd MMMM YYYY") }}
{% else %}
{{ cartCalendar[firstKey].start|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }}
{% endif %}
{% set minutes = cartCalendar[firstKey].duree %}
{% set hours = minutes // 60 %}
{% set remainingMinutes = minutes % 60 %}
{# Format hours and minutes as strings with leading zeros if needed #}
{% set hoursString = hours < 10 ? '0' ~ hours : hours %}
{% set minutesString = remainingMinutes < 10 ? '0' ~ remainingMinutes : remainingMinutes %}
{{ hoursString }}h{{ minutesString }} {{ 'confirmation.text25'|trans }}
{{ item.price|number_format(0,'.','') }} DH
{{ 'confirmation.text27'|trans }} {{ (tarifHotel > 0) ? tarifHotel ~ 'DH' : 'panier.gratuit'|trans }}
{% set text1 = "" %} {% set reservation_date = cartCalendar[firstKey].start|date('d-m-Y H:00') %} {% if pickup %} {% set reservation_date = reservation_date|date_modify("-" ~ pickup ~ " minutes") %} {% set text = (app.request.locale == 'fr') ? 'reservation_detail.hotel_pickup'|trans : 'reservation_detail.hotel_pickup_en'|trans %} {% set text1 = text ~ ' ' ~ reservation_date|date("H:i")|replace({':': 'h'}) %} {% endif %}{{nomHotel}} x {{personne}} {% if text1 %} ({{ text1 }}) {% endif %}
{% if reservation.numerodechambre %}{{'confirmation.numerodechambre'|trans }}: {{ reservation.numerodechambre }}
{% endif %}{{ 'confirmation.codepromo'|trans }} ({{order.codePromo}})
{{ order.Total - order.MontantReservation }}DH
{% if order.modePayment == "cache" %} {{ 'reservation_detail.total_to_pay'|trans }} {% else %} {{ 'reservation_detail.total_paid'|trans }} {% endif %}
{{ order.MontantReservation }} DH