{% set wishlist = null %}
{% if app.user %}
{% set wishlist = app_get_wishlist() %}
{% endif %}
{% set path_route = app.request.attributes.get('_route') %}
{% if products|length > 0 %}
<div class="position-relative position-relative mx-top-index mt-3">
<div class="btn2-slide-prev{% if path_route == "app_shop_products_visited" %} vu-prev {% elseif path_route == "app_shop_partial_products_same_category_index" %} conseil-prev {% else %} conseil-prev {% endif %}"></div>
<div class="btn2-slide-next conseil-next"></div>
<div class="{% if path_route == "app_shop_products_visited" %} swiper-vu {% elseif path_route == "app_shop_partial_products_same_category_index" %} swiper-collection2 {% else %} swiper-conseil {% endif %} swiper-container ">
<div class="swiper-wrapper wrapper-article-h">
{% for product in products %}
{% if product.enabled and app_count_available_variants(product) and (not product.variants.empty() or (product.simple and sylius_inventory_is_available(product.variants.first)) )%}
<div class="swiper-slide art-collection-item">
{% include '@SyliusShop/Product/_box.html.twig' with {'wishlist': wishlist} %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class="position-relative pt-md-3 container-pagination d-none">
<div class="swiper-pagination {% if path_route == "app_shop_products_visited" %} swiper-pagination-vu {% elseif path_route == "app_shop_partial_products_same_category_index" %} swiper-pagination-collection2 {% else %} swiper-pagination-conseil {% endif %} position-relative bottom-0"> </div>
</div>
</div>
{% else %}
<style>
.article-bottom{display:none}
</style>
{% endif %}