{% extends 'base.html.twig' %} {% block title %} {{ produit.metaTitle}} {% endblock %} {% block description %} {{ produit.metaDesc}} {% endblock %} {% block body %} {% include "front/inc/breadcrumb.html.twig" with { 'current_page' : produit.nomProduits, 'content_title': produit.categorie.nomCategorie, 'content_lien' : path('app_categorie',{'categorie':produit.categorie.slug}), 'image' : produit.categorie.imageCategorie } %} {# Product/Service Schema.org #} {% import "macros/schema_org.html.twig" as schema %} {% set productUrl = absolute_url(path('fiche_massage', { '_locale': app.request.locale, 'categorie': produit.categorie.slug, 'slug': produit.slugProduits })) %} {% set productImage = produit.imageProduits ? absolute_url(sonata_path(produit.imageProduits, 'reference')) : absolute_url(asset('front/images/fiche_massage.jpg')) %} {% set lowestPrice = null %} {% set highestPrice = null %} {% if produit.prixProduits|length > 0 %} {% for prix in produit.prixProduits %} {% if lowestPrice is null or prix.prixParPersonne < lowestPrice %} {% set lowestPrice = prix.prixParPersonne %} {% endif %} {% endfor %} {% endif %} {{ schema.product_schema( produit.nomProduits, produit.introProduits|striptags|trim, productImage, productUrl, { 'price': lowestPrice, 'priceCurrency': 'MAD', 'availability': 'https://schema.org/InStock', 'url': productUrl, 'priceValidUntil': 'now'|date_modify('+30 days')|date('Y-m-d'), }, { 'name': 'Natea Les Massages d\'Agadir' }, null ) }} {% set discountPercentage = 0 %} {% if produit.typeProduit == 1 %} {% set formulesProduits = produit.prixProduits[0].formulesProduits %} {% set lowestPrice = produit.prixProduits[0].prixParPersonne %} {% set total = 0 %} {% for it in formulesProduits %} {% set total = total + it.prixProduitParPersonne %} {% endfor %} {% set discountPercentage = ((total - lowestPrice) / total ) * 100 %} {% endif %}
{% if discountPercentage > 0 %} -{{discountPercentage|number_format(0, '.', '')}}% {% endif %} {{produit.nomProduits}} {% if produit.reserveAuFemme is same as(true) %}
{{ 'message.pourlesfemme'|trans }}
{% endif %}

{{produit.nomProduits}}

{{produit.introProduits|raw}}

{{produit.nomProduits}} {% if produit.reserveAuFemme is same as(true) %}
{{ 'message.pourlesfemme'|trans }}
{% endif %}
{% set type = false %} {% for horaire in produit.prixProduits %} {% set type = horaire.duree.type %} {% endfor %}
{% set lowestPrice = produit.prixProduits[0].prixParPersonne %} {% for horaire in produit.prixProduits %} {% if horaire.prixParPersonne < lowestPrice %} {% set lowestPrice = horaire.prixParPersonne %} {% endif %} {% endfor %}

{% if produit.prixProduits|length > 1 %} {{ 'index.apartir'|trans }} {% endif %} {% if discountPercentage %} {{ total }}DH {% endif %} {{ lowestPrice|number_format(0, '.', ' ') }}DH /Pers

{{produit.pointFort|raw}}
{{ 'footer.paiementsecurise'|trans }}
{{ 'fiche.utilisable'|trans }}
{{'fiche.réservation'|trans }}

{{'fiche.massage-slider'|trans }}

{% set asscoies = produit|getproduitAssocie(app.request.locale) %} {% for associe in asscoies %} {% set discountPercentage = 0 %} {% if associe.typeProduit == 1 %} {% set formulesProduits = associe.prixProduits[0].formulesProduits %} {% set lowestPrice = associe.prixProduits[0].prixParPersonne %} {% set total = 0 %} {% for it in formulesProduits %} {% set total = total + it.prixProduitParPersonne %} {% endfor %} {% set discountPercentage = ((total - lowestPrice) / total ) * 100 %} {% endif %}
{% if discountPercentage > 0 %} -{{discountPercentage|number_format(0, '.', '')}}% {% endif %} {{associe.nomProduits}} {% if associe.reserveAuFemme is same as(true) %}
{{ 'message.pourlesfemme'|trans }}
{% endif %}

{{associe.nomProduits}}

{{ (associe.prixProduits|length > 1 or associe.typeProduit == 1 ) ? 'index.apartir'|trans : '' }} {% set lowestPrice = associe.prixProduits[0].prixParPersonne %} {% set type = false %} {% for horaire in associe.prixProduits %} {% if horaire.prixParPersonne < lowestPrice %} {% set lowestPrice = horaire.prixParPersonne %} {% set type = horaire.duree.type %} {% endif %} {% endfor %} {{ lowestPrice|number_format(0, '.', ' ') }}DH

{% if type is same as(false) %}

{% if associe.prixProduits|length > 0 %} {% set combinedDuration = '' %} {% for horaire in associe.prixProduits %} {% set combinedDuration = combinedDuration ~ horaire.duree.intitule ~ '/' %} {% endfor %} {% set combinedDuration = combinedDuration|trim('/') %} {{ combinedDuration }} {% endif %}

{% endif %}
{% endfor %}

{% endblock %}