{% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %}
{{ sylius_template_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}
<div class="row categorie-detail pb-md-3">
<div class="col-xl-4 col-md-6 order-md-2">
<div class="object-fit-img h-100 pr-xl-3">
{% if taxon.images | length > 0 %}
{% if taxon.images | length > 1 %}
{% set image = taxon.images[1] %}
{% set path = image.path is not null ? image.path|imagine_filter('app_shop_taxon_show_main') %}
{% else %}
{% set path = taxon.images.first.path is not null ? taxon.images.first.path|imagine_filter('app_shop_taxon_show_main') %}
{% endif %}
{% else %}
{% set path = asset('images/img_categ.jpg') %}
{% endif %}
<img src="{{ path }}" alt="{{ taxon.name }}" class="" />
</div>
</div>
<div class="col-12 order-md-1">
<div class="px-md-0 px-2">
{{ render(url('sylius_shop_partial_taxon_show_by_slug', {'slug': taxon.slug,'template': '@SyliusShop/Taxon/_breadcrumb.html.twig'})) }}
</div>
</div>
<div class="col-xl-8 col-md-6 pl-xl-1 order-md-3">
<div class="px-md-0 px-2">
<h1 class="title-medium mb-2 lib-categ text-center text-md-left mb-md-3 text-uppercase">{{ taxon.name }} </h1>
<div class="text-grey text-regular-onlg expand-me-mobile">
{{ taxon.description|raw }}
</div>
</div>
</div>
</div>
{% if taxon.children|length > 0 %}
<div class="ss-categ-content">
<div class="title-ss-regular text-md-left text-center ">{{ 'app.taxon.sub_categories'|trans }}</div>
<div class="padding-mobile-ss">
<div class=" mt-md-2 ss-categ pt-3 text-regular-onlg fontsize-mobile-text categ-ss-list swiper-container">
<div class="swiper-wrapper">
{% for childTaxon in taxon.children %}
{% if childTaxon.enabled %}
<div class="swiper-slide swiper-sscateg-bit">
<a href="{{ path('sylius_shop_product_index', {'slug': childTaxon.slug, '_locale': childTaxon.translation.locale, 'id': childTaxon.oldId}) }}" class="ss-categ-link hover-img-scale">
<strong>
{% if childTaxon.images.first %}
{% set path_child = childTaxon.images.first.path|imagine_filter(filter|default('app_shop_taxonchildren_show')) %}
<img src="{{ path_child }}" alt="{{ childTaxon.name }}" class="" />
{% else %}
{% set path_child = asset('images/spacer.png') %}
<img src="{{ path_child }}" alt="{{ childTaxon.name }}" class="w-100" />
{% endif %}
</strong>
<h2><span>{{ childTaxon.name }}</span></h2></a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="text-center content-pagination pt-md-3 pt-2">
<div class="select-container position-relative">
<div class="ss-prev btn2-slide-prev"></div>
<div class="ss-next btn2-slide-next"></div>
<div class="swiper-pagination swiper-pagination-ss"></div>
</div>
</div>
</div>
{% endif %}
{{ sylius_template_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}