{% extends 'base_front.html.twig' %}
{% block body %}
<section id="products" class="accessories">
<div class="container-right container-video position-relative bg-black-transparent p-5">
<h2 class="black mb-3">{{ productPage.subCategory.name }}</h2>
<div class="row mt-5">
<div class="col-lg-12 col-xl-5">
<div class="description bg-white p-4">
<h3 class="black mb-0">{{ productPage.name }}</h3>
<h4 class="subtitle blue-light">Description</h4>
<div class="detail mt-3">
<p>{{ productPage.description|raw }}</p>
</div>
{% if productPage.document %}
<div class="download-link">
<a href="{{ asset('upload/content/' ~ productPage.document) }}" target="_blank" class="black">Download the data sheet <img class="ml-1" src="{{ asset('img/icons/download.svg') }}"></a>
</div>
{% endif %}
</div>
<h6 class="font-weight-bold mt-5 text-center title-sub-desc">More informations about this product?</h6>
<div class="col-md-6 m-auto pt-4">
<a href="#" class="blue-link"><span>Send us a message</span></a>
</div>
</div>
<div class="col-lg-12 col-xl-4">
<div class="description">
<h4 class="subtitle blue-light">Benefits</h4>
<div class="detail mt-3">
{{ productPage.benefit|raw }}
</div>
</div>
</div>
<div class="col-lg-12 col-xl-3 gallery-accessories">
<h4 class="subtitle blue-light">Gallery</h4>
<div class="flex-column">
{% for image in productPage.images %}
<div class="col-lg-3 col-xl-12 p-0">
<img src="{{ asset('upload/content/' ~ image.name) }}" alt="" class="mt-3">
</div>
{% endfor %}
</div>
</div>
</div>
<div class="col-md-12 row justify-content-between links-return">
<a href="{{ path('front_product_list', {'category_slug' : productPage.subcategory.category.slug, 'subcategory_slug': productPage.subCategory.slug}) }}">All products</a>
{% if nextProductPage %}
<a href="{{ path('front_product_page', {'category_slug' : productPage.subcategory.category.slug, 'subcategory_slug': productPage.subcategory.slug, 'slug_page': nextProductPage.slug}) }}">Next product</a>
{% endif %}
</div>
</div>
</section>
{% endblock %}