{% extends 'base.html.twig' %} {% block title %} {{ 'reservations.title'|trans }} {% endblock %} {% block description %} {% endblock %} {% block body %} {% include "front/inc/breadcrumb.html.twig" with { 'current_page' : 'reservations.title'|trans, 'content_title': 'compte.title'|trans, 'content_lien' : path('app_account',{'_locale':app.request.locale}), 'image' : '' } %}

{{ 'reservations.title'|trans }}

{% if orders|length > 0 %}
{{ 'reservations.table.order_number'|trans }}
{{ 'reservations.table.date'|trans }}
{{ 'reservations.table.service_count'|trans }}
{{ 'reservations.table.people_count'|trans }}
{{ 'reservations.table.total_price'|trans }}
{{ 'reservations.table.status'|trans }}
{% for order in orders %}
N° {{order.reference}}
{% if app.request.locale == 'en' %} {{ order.dateReservation|format_datetime(locale='en',pattern="EEEE dd MMMM YYYY") }} {% else %} {{ order.dateReservation|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }} {% endif %}
{{ order.reservationsItems|length }}
{{order.NombrePersonne}}
{{ order.MontantReservation }} dh
{% if order.paye == 1 and order.archive == 0 %} {{ 'reservations.status.confirmed'|trans }} {% endif %} {% if order.paye == 0 and order.archive == 0 %} {{ 'reservations.status.upcoming'|trans }} {% endif %} {% if order.archive == 1 %} {{ 'reservations.status.cancelled'|trans }} {% endif %}
{% if order.paye == 1 and order.archive == 0 %} {% endif %}
{% endfor %}
{% else %}

{{ 'reservations.empty'|trans }}

{% endif %}
{% endblock %}