{% extends "base.html.twig" %}
{% set subCategory = product.subCategory %}
{% set category = subCategory.category %}
{% set productImg = (product.productFileName ? asset(vich_uploader_asset(product, 'productFile')) : asset('assets/img/defprod.png')) %}
{% block metaTags %}
<meta name="description" content="{{ product.metaDescription ? product.metaDescription : product.description|raw }}">
<title>{{ product.metaTitle ? product.metaTitle : product.title }}</title>
<meta property="og:title" content="{{ product.metaTitle ? product.metaTitle : product.title }}">
<meta property="og:description" content="{{ product.metaDescription ? product.metaDescription : product.description|raw }}">
<meta property="og:image"
content="{{ absolute_url(productImg|imagine_filter('medium')) }}">
<meta property="og:url" content="{{ app.request.uri }}">
{% endblock %}
{% block body %}
<section class="container pab-80 position-relative zi-9">
<div class="may-50">
{% include "front/menu.html.twig" with {'menu':{
(category.title):(category.isChaine ? "#" : path("front_products", {'catSlug':category.slug})),
(subCategory.title):path("front_products", {'catSlug':category.slug, "subCatSlug":subCategory.slug}),
(product.title):"#",
}} %}
</div>
<div class="row flex-row-reverse">
<div class="col-md-6 mab-0-md mab-10 pal-70-lg text-center text-sm-left">
{% if subCategory.subCategoryFileName %}
<div data-aos="fade-left" data-aos-duration="800" class="d-flex justify-content-center-sm cg-15 mab-30">
<div class="bgc-15683A pa-10">
<img src="{{ asset(vich_uploader_asset(subCategory, 'subCategoryFile')) }}"
alt="{{ subCategory.title }}" class="he-25 white-filter"/>
</div>
<div class="d-flex ">
<img src="{{ asset('assets/img/lafafrflag.svg') }}" alt="Facomia" class="he-45"/>
<div class="pal-10 bgc-F7F6F2 he-45 wi-100 d-flex align-items-center skew position-relative">
<div class="bgc-F7F6F2 h-100 wi-10 position-absolute l-0 t-0 skew-text"></div>
<div class="skew-text okdavn">
{{ "landing.about.fabfr"|trans|raw }}
</div>
</div>
</div>
</div>
{% endif %}
<h1 class="sjrklb mab-25" data-aos="fade-left" data-aos-duration="800">{{ product.title }}</h1>
<div data-aos="fade-left" data-aos-duration="800" data-aos-delay="200" class="content pmb0 mab-30">
{{ product.description|raw }}
</div>
<div data-aos="fade-up" data-aos-duration="800" data-aos-delay="400" class="mab-30">
<a href="{{ path('front_contact', {'slug':product.slug}) }}" class="btn btn1">
<div class="btn-text">
<i class="fa fa-envelope mar-5"></i>
{{ "product.interest_btn"|trans }}
</div>
</a>
</div>
<div class="d-flex justify-content-center-sm cg-15 align-items-center">
<div data-aos="fade-right" data-aos-duration="800" data-aos-delay="600" class="dgdxuy">
{{ "product.share"|trans }}
</div>
<div data-aos="fade-left" data-aos-duration="800" data-aos-delay="600" id="share"
data-facebook="{{ asset('assets/img/fb.svg') }}"
data-linkedin="{{ asset('assets/img/link.svg') }}"
data-twitter="{{ asset('assets/img/twit.svg') }}"
></div>
</div>
</div>
<div class="col-md-6" data-aos="fade-right" data-aos-duration="800">
{% include "front/productMediaBig.html.twig" with {'img':productImg|imagine_filter('large'), "title":product.title, "id":"rlgdwh"} %}
{% for key, productMedia in productMedias %}
{% include "front/productMediaBig.html.twig" with {'img':asset(vich_uploader_asset(productMedia, 'productMediaFile'))|imagine_filter('large'), "title":productMedia.title, "id":productMedia.id} %}
{% endfor %}
<div class="d-flex cg-20 rg-20">
{% include "front/productMediaSmall.html.twig" with {'img':productImg|imagine_filter('small'), "title":product.title, "id":"rlgdwh"} %}
{% for key, productMedia in productMedias %}
{% include "front/productMediaSmall.html.twig" with {'img':asset(vich_uploader_asset(productMedia, 'productMediaFile'))|imagine_filter('small'), "title":productMedia.title, "id":productMedia.id} %}
{% endfor %}
</div>
{% if product.info %}
<div class="may-30 bgc-F7F6F2 pay-15 pax-25 d-flex align-items-center cg-25">
<i class="fa fa-info-circle c-15683A"></i>
<div class="content pmb0">
{{ product.info|raw }}
</div>
</div>
{% endif %}
</div>
</div>
</section>
{% if relatedProducts %}
<section class="bgc-F7F6F2 pat-80 pab-50 position-relative">
<img src="{{ asset('assets/img/visudots.png')|imagine_filter('medium') }}" alt="Facomia"
class="wi-170 position-absolute r-0 t-0 hbhcpk "/>
<img src="{{ asset('assets/img/bgrelpro.png')|imagine_filter('large') }}" alt="Facomia"
class="w-100 b-0 position-absolute"/>
<div class="container container-product position-relative">
<h2 class="mab-15 text-center eyidgv" data-aos="fade-up" data-aos-duration="800" >
{{ "product.related.title"|trans }}
</h2>
<div class="text-center mab-50" data-aos="fade-up" data-aos-duration="800">
<img src="{{ asset('assets/img/line.png')|imagine_filter('small') }}" alt="Facomia" class="wi-150"/>
</div>
<div class="row">
<div class="col-sm-1 align-items-center d-none d-sm-flex justify-content-center">
<i class="fs-40 fal fa-arrow-circle-left c-15683A prev-hgsopl pointer"></i>
</div>
<div class="col-sm-10">
<div class="hgsopl pab-15">
{% for key, relatedProduct in relatedProducts %}
{% set targetProduct = relatedProduct.targetProduct %}
{% include "front/productListDetail.html.twig" with {'product':targetProduct, "categoryActive":category, "isSlider":1} %}
{% endfor %}
</div>
</div>
<div class="col-sm-1 align-items-center d-none d-sm-flex justify-content-center">
<i class="fs-40 fal fa-arrow-circle-right c-15683A next-hgsopl pointer"></i>
</div>
</div>
</div>
</section>
{% endif %}
{% endblock %}