{% for sousCateg in categ.CategorieChild %}
{% for keys, prod in sousCateg.getProduits() %}
{% if prod.stock <= 0 %}
{% set cardClass = 'product-no-stock' %}
{% else %}
{% set cardClass = '' %}
{% endif %}
<div class="col-xl-2 col-lg-3 col-md-4 col-sm-6 col-6 p-1 hp_block-product-responsive text-center">
<div class="coup_de_coeur coup_de_coeur_lg">
{% if prod.isCoupCoeur %}
<img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur"> <span class="text-coup-coeur">{% trans %}COUP DE COEUR{% endtrans %} SPA.BIZ</span> <img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur">
{% endif %}
</div>
<div class="card {{ cardClass }}">
<div class="card-body pt-2 pb-2 p-1">
<div class="product_one_block_link" style="cursor: pointer;" data-link="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
{% if prod.stock <= 0 %}
<div>
<p class="text-red-stock">Bientôt en stock</p>
</div>
{% endif %}
<div><h6 class="fw-600 text-grey-color-used"><i class="text-portail">SPAS</i> {{ prod.name|filterName|raw }}</h6></div>
<div class="row">
<div class="col-6 text-small-bolder text-end text-grey-color-used no-wrap">{{ prod | places }} {% trans %}place(s){% endtrans %}</div>
<div class="col-6 text-small-bolder text-start text-grey-color-used no-wrap">{{ prod | jets}} {% trans %}jet(s){% endtrans %}</div>
</div>
{% if not prod.stock <= 0 %}
<div class="ratings">
{% set nbrStartsP = categ.name|number_format %}
<div class="d-flex">
{% for i in 1..nbrStartsP %}
<img style="height: 23px;" src="{{ asset("/images/start_actif_hotfix.png") }}" alt="etoile">
{% endfor %}
</div>
</div>
{% endif %}
</div>
<div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>
<div id="carouselExampleControls{{ keys }}" class="carousel slide" data-interval="false">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
{% for keyIndicator, prodImage in prod.imageProduits %}
{% if keyIndicator < 7 %}
<button type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide-to="{{ keyIndicator+1 }}" aria-label="Slide {{ keyIndicator }}"></button>
{% endif %}
{% endfor %}
</div>
<div class="carousel-inner">
<div class="carousel-item all-products-selected active">
<a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
<div class="responsiveImageProduit">
<img src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">
</div>
</a>
</div>
{% for keyImage, prodImage in prod.imageProduits %}
{% if keyImage < 7 %}
<div class="carousel-item all-products-selected">
<a href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">
<div class="responsiveImageProduit">
<img src="{{ asset("/images/images_produits/"~prodImage.image) }}" alt="zaccouzi">
</div>
</a>
</div>
{% endif %}
{% endfor %}
</div>
<button class="carousel-control-prev button-slider-inside-home" type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next button-slider-inside-home" type="button" data-bs-target="#carouselExampleControls{{ keys }}" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div>
{% if prod.stock <= 0 %}
<div class="button-show-detail-red no-wrap">
<a class="text-white text-decoration-none" href="">{% trans %}M'inscrire à la newsletter{% endtrans %} <img class="img-email-newsletter" src="/images/block_products/email.png" alt="email"></a>
</div>
{% else %}
<div class="button-show-detail no-wrap">
<a class="text-white text-decoration-none" href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": prod | game}) }}">{% trans %}Afficher le{% endtrans %} spa</a>
</div>
{% endif %}
<div class=" no-wrap">
<a class="button-add-comparator" href="{{ path("app_comparateur_set_list", {"id_gamme": prod | game, "id_produit": prod.id}) }}">{% trans %}Ajouter au{% endtrans %} {% trans %}comparateur{% endtrans %}</a>
</div>
</div>
</div>
</div>
</div>
{# <div class="col-xl-2 col-lg-3 col-md-4 p-1">#}
{# <div class="coup_de_coeur">#}
{# {% if not prod.stock <= 0 %}#}
{# <img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur"> <span class="text-coup-coeur">{% trans %}COUP DE COEUR{% endtrans %} SPA.BIZ</span> <img width="10px" src="{{ asset("/images/block_products/coup_coeur.png") }}" alt="coeur">#}
{# {% endif %}#}
{# </div>#}
{# <div class="card {{ cardClass }}">#}
{# <div class="card-body pt-2 pb-2 p-1">#}
{# {% if prod.stock <= 0 %}#}
{# <div>#}
{# <p class="text-red-stock">{% trans %}Bientôt en stock{% endtrans %}</p>#}
{# </div>#}
{# {% endif %}#}
{# <div><h6 class="fw-600 text-grey-color-used no-wrap"><i class="text-portail">SPAS</i> {{ prod.getNameLangue(app.request.locale) }}</h6></div>#}
{# <div class="row">#}
{# <div class="col-6 text-small-bolder text-end text-grey-color-used">{{ prod | places }} {% trans %}places{% endtrans %}</div>#}
{# <div class="col-6 text-small-bolder text-start text-grey-color-used">{{ prod | jets}} {% trans %}jets{% endtrans %}</div>#}
{# </div>#}
{# <div class="price-products text-grey-color-used">{{ prod.price|number_format(0, ',', ' ') }}€</div>#}
{# {% if not prod.stock <= 0 %}#}
{# <div class="ratings">#}
{# <div class="empty-stars"></div>#}
{# <div class="full-stars" style="width:{{ prod.getNoteClientOfOneProduct(prod.getAvisClients) }}"></div>#}
{# </div>#}
{# {% endif %}#}
{# #}{# slider #}
{# <section class="lazy1 slider" data-sizes="50vw">#}
{# <div class="width-unset d-flex">#}
{# <img height="100%" src="{{ asset("/images/images_produits/"~prod.imageProduitsPrincipale) }}" alt="zaccouzi">#}
{# </div>#}
{# {% for prodImage in prod.imageProduits %}#}
{# <div class="width-unset d-flex">#}
{# <img height="100%" src="{{ asset("/images/images_produits/"~prodImage.image) }}" alt="zaccouzi">#}
{# </div>#}
{# {% endfor %}#}
{# </section>#}
{# #}{# slider #}
{# <div>#}
{# {% if prod.stock <= 0 %}#}
{# <div class="button-show-detail-red">#}
{# <a class="text-white text-decoration-none" href="">{% trans %}M'inscrire à la newsletter{% endtrans %} <img class="img-email-newsletter" src="{{ asset("/images/block_products/email.png") }}" alt="email"></a>#}
{# </div>#}
{# {% else %}#}
{# <div class="button-show-detail">#}
{# <a class="text-white text-decoration-none" href="{{ path("app_fiche_produit", {"id_product": prod.id,"id_categorie": categ.id}) }}">{% trans %}Afficher le{% endtrans %} spa</a>#}
{# </div>#}
{# {% endif %}#}
{# <div>#}
{# <a class="button-add-comparator" href="{{ path("app_comparateur_set_list", {"id_gamme": categ.id, "id_produit": prod.id}) }}">{% trans %}Ajouter au{% endtrans %} {% trans %}comparateur{% endtrans %}</a>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{% endfor %}
{% endfor %}