{% extends "base.html.twig" %}
{% set currentPage = (("navbar.products")|trans )%}
{% set whiteMenu = true %}
{% set h1 = categoryActive.h1 %}
{% block body_tag %}
data-products-limit={{ limit }}
{% endblock %}
{% block metaTags %}
<meta name="description" content="{{ categoryActive.metaDescription }}">
<title>{{ categoryActive.metaTitle }}</title>
<meta property="og:title" content="{{ categoryActive.metaTitle }}">
<meta property="og:description" content="{{ categoryActive.metaDescription }}">
{% endblock %}
{% block body %}
<section class="position-relative bgp-center bgs-cover header-presentation first-section" style="background-image:linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)),url({{ asset(vich_uploader_asset(categoryActive, 'category1File'))|imagine_filter('large') }})">
<img src="{{ asset('assets/img/points_blue.svg') }}" class="position-absolute t-120 l-0 zi-0" alt="points icon"/>
<div class="container position-relative he-480 d-flex align-items-center">
<img src="{{ asset('assets/img/points_blue.svg') }}" class="position-absolute b-45 r-75 zi-9" alt="points icon"/>
<div class="position-absolute b--70-md b--50 r-0-lg r-20" data-aos="fade-in" data-aos-duration="800" data-aos-delay="600">
<img src="{{ asset('assets/img/hexagone-big.svg') }}" alt="hexagone" class="he-140-md he-100 {{categoryActive.position == "1" ? "hexagone-green" : (categoryActive.position == "2" ? "hexagone-lightBlue")}} "/>
<img src="{{ asset(vich_uploader_asset(categoryActive, 'categoryIconFile')) }}"
alt="{{ categoryActive.title }}" class="img-white position-absolute t-0 b-0 wi-65-md wi-55 h-auto l-0 r-0 m-auto img-white"/>
</div>
<div class="position-absolute t-20 l-20">
{# {% include "front/menu.html.twig" with {'menu':{("menu.presentation"|trans):path("front_presentation")} %}#}
{% include "front/menu.html.twig" with {'menu':{(categoryActive.title):"#"}} %}
</div>
<div class="position-relative">
<h2 data-aos="fade-up" data-aos-duration="800" class="text-left c-white fs-70 fw-600 mab-0 position-relative">
{{ categoryActive.title }}
</h2>
<h3 data-aos="fade-up" data-aos-duration="800" class="text-left c-white fs-70 fw-600 mab-35 position-relative">
{{"products.title.all"|trans}}
</h3>
<p data-aos="fade-up" data-aos-duration="800" data-aos-delay="200" class="mawi-460 fs-14 lh2-14 c-8E9094">
{{ categoryActive.description|nl2br }}
</p>
</div>
</div>
</section>
<section class="pat-70 pab-100">
<div class="container">
<div class="row js-prods-list" data-total-products="{{ totalProducts }}">
<div class="col-lg-3 productsFilterForm">
<div class="fs-22 fw-700 mab-40 d-flex btn-filter align-items-center jusify-content-center ">
{{"products.filters.title"|trans}}
<i class="far fa-plus mal-10 d-block d-lg-none r-0" aria-hidden="true"></i>
</div>
{% include "form/productsFilterForm.html.twig" %}
</div>
<div class="col-lg-9" data-aos="fade" data-aos-duration="800" data-aos-delay="600">
<div class="" >
{% set offset = productsFilterForm.children.offset.vars.value|default(0) %}
<div class="c-8E9094 fs-15 fw-500 mab-40 text-center text-lg-left">
{{ "products.count_products"|trans({"%countProductsMin%":(products|length > 0 ? "1" : "0"),"%productsLength%":products|length,"%totalProducts%":totalProducts})|raw }}
</div>
<div class="products row justify-content-center-sm">
{% include "front/productsList.html.twig" with {'products':products} %}
</div>
<div class="contactForm form-contact ">
<h3 class="text-left c-333333 fs-38 fw-700 mat-0 mab-15"> {{ "products.contact.title"|trans }}</h3>
<p class="c-8C8C8C fw-500 fs-14 mab-35">
{{ "products.contact.content"|trans }}
</p>
{% include "form/contactForm.html.twig" %}
</div>
{% if products|length < totalProducts %}
<div class="text-center">
<button class="btn btn1 loadMoreProducts">{{ "products.load_more.btn"|trans }}</button>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
{# <div>
<img src="{{ asset(vich_uploader_asset(categoryActive, 'category1File'))|imagine_filter('large') }}"
alt="{{ categoryActive.title }}" class="w-100"/>
</div>#}
{% endblock %}