{% extends 'base.html.twig' %} {% block title %} {{ 'reservation.metatitle'|trans }} {% endblock %} {% block description %} {{ 'reservation.metadescription'|trans }} {% endblock %} {% block body %}
natea siege
natea siege

{{ 'natea_address'|trans }}

{{ 'natea_ouverture'|trans }}

{{ 'reservation.title'|trans }}

{% set total = 0 %} {% set category = 0 %} {% if app.session.get('cart', [])|length > 0 %} {% for key,item in app.session.get('cart', []) %} {% set category = item.categorie %}

{{ item.product|getProduct(app.request.locale)['nomProduits'] }}

{% if item.product|getProduct(app.request.locale)['reserveAuFemme'] is same as(true) %}
{{ 'message.pourlesfemme'|trans }}
{% endif %} {{ item.duration|getdatadure(app.request.locale)['intitule'] }}

{% set total = total + item.price %}

{{ (item.price)|number_format(0,'.','') }} DH

{% endfor %} {% else %}
{{ 'reservation.msg.panier'|trans }}
{% endif %}

{{ 'reservation.vouscherchez'|trans }}

{{ 'reservation.prestations'|trans }}

{% set position = 0 %} {% set newArray = [] %} {% set start = 0 %} {% for key,categorie in categories %} {% if categorie.typeCategorie == 2 or categorie.typeCategorie == 0 %} {% set newArray = newArray|merge([categorie]) %} {% endif %} {% if categorie.reservation == 1 %} {% set start = start + 1 %} {% set position = ((start) == 1) ? 1 : 0 %}
{% endif %} {% endfor %}
    {% if newArray|length > 0 %} {% for k,categorie in newArray %} {% set productCount = 0 %} {% if produits|length > 0 %} {% for produit in produits %} {% if produit.categorie and produit.categorie.id == categorie.id %} {% set productCount = productCount + 1 %} {% endif %} {% endfor %} {% endif %}
  • {{categorie.nomCategorie}} ({{productCount}})
  • {% endfor %} {% endif %}
  • {% if produits|length > 0 %} {% for l,produit in produits %}

    {{produit.nomProduits}}

    {% if produit.reserveAuFemme is same as(true) %}
    {{ 'message.pourlesfemme'|trans }}
    {% endif %}

    {% set lowestPrice = produit.prixProduits[0].prixParPersonne %} {% for horaire in produit.prixProduits %} {% if horaire.prixParPersonne < lowestPrice %} {% set lowestPrice = horaire.prixParPersonne %} {% endif %} {% endfor %} {{ lowestPrice|number_format(0, '.', ' ') }}DH

    {% if produit.prixProduits|length > 1 %}
    {% else %}
    {{ produit.prixProduits[0].duree.intitule }}
    {% endif %}
    {% endfor %} {% endif %}

{{app.session.get('cart', [])|length}} {{ 'reservation.prestationsa'|trans }} : {{ total|number_format(0,'.','') }} DH

{% endblock %}