{% set contactEmpty = pimcore_block('contacts').isEmpty() %}
{% if sliderClass is defined and sliderClass is not empty() %}
{% set sliderClassName = sliderClass %}
{% else %}
{% set sliderClassName = 'related-products-swiper' %}
{% endif %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set productCategories = productCategories ?? pimcore_relations('productCategories').getElements() %}
<section class="{{ sectionClasses ?? '' }}">
<div class="{{ containerClasses ?? 'container py-10 md:py-20' }} overflow-hidden">
{% if editmode and productCategories is empty %}
{{ info("Nog geen product categorieen geselecteerd.")|raw }}
{% endif %}
{% if showTitle ?? true %}
{% include 'includes/partials/text/_inline-icon-and-title.html.twig' with {
'defaultTitle': defaultTitle ?? ""
} %}
{% endif %}
<div class="{% if not contactEmpty %} flex {% endif %}">
<div class="swiper {{ sliderClassName }} swiper-enable {% if not contactEmpty %} w-1/2 {% endif %}">
<div class="swiper-wrapper pb-10">
{% for productCategory in productCategories %}
<div class="swiper-slide">
{% include 'areas/product-category-cards-brick/partials/category-card.html.twig' %}
</div>
{% endfor %}
</div>
<div class="w-full md:w-auto absolute bottom-0 right-0 z-10">
<div class="grid justify-between md:justify-end grid-cols-2 items-center">
<div class="!w-auto related-product-swiper-pagination"></div>
<div class="flex justify-end">
<div class="gap-4 grid grid-cols-2">
<div
class="related-product-swiper-button-prev">
<svg class="rotate-180" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="23.5857104px"
height="16.8675464px" viewBox="0 0 23.5857104 16.8675464"
version="1.1">
<g id="case-study" stroke="none" stroke-width="1" fill="none"
fill-rule="evenodd">
<g id="coolworld-project-case-study-vd-1504-v02"
transform="translate(-1580.000000, -1967.550069)"
fill="#0072BB">
<g id="media"
transform="translate(0.000000, 1270.000000)">
<g id="Group-2"
transform="translate(426.000000, 449.000000)">
<g id="components/navigation/mobile/carousel"
transform="translate(1014.000000, 245.000000)">
<g id="icons/ui/arrow-line-right"
transform="translate(140.000000, 3.000000)">
<path
d="M22.6587309,7.6425728 L5.09460875,7.6425728 L5.09460875,7.6425728 L9.92142843,2.81683065 C10.4400119,2.29836292 10.4401058,1.4576668 9.92163804,0.939083306 C9.92160311,0.939048366 9.92156818,0.939013428 9.92153324,0.938978492 C9.40298689,0.420432142 8.56225714,0.420432142 8.0437108,0.938978492 C8.04368837,0.939000914 8.04366595,0.939023337 8.04364353,0.939045761 L0.70705612,8.27668449 C0.316700705,8.6672985 0.316700705,9.30038534 0.70705612,9.69099936 L8.04364353,17.0286381 C8.56215273,17.5472216 9.40288247,17.5472818 9.92146597,17.0287726 C9.9214884,17.0287502 9.92151082,17.0287278 9.92153324,17.0287054 C10.4400589,16.5101797 10.4400589,15.6694836 9.92153324,15.150958 C9.9214983,15.1509231 9.92146337,15.1508881 9.92142843,15.1508532 L5.09460875,10.3251111 L5.09460875,10.3251111 L22.6587309,10.3251111 C23.3994934,10.3251111 24,9.72460441 24,8.98384192 C24,8.24307944 23.3994934,7.6425728 22.6587309,7.6425728 Z"
id="arrow-line-right"
transform="translate(12.000000, 8.983842) scale(-1, 1) translate(-12.000000, -8.983842) "/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
</div>
<div class="related-product-swiper-button-next">
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="23.5857104px"
height="16.8675464px" viewBox="0 0 23.5857104 16.8675464"
version="1.1">
<g id="case-study" stroke="none" stroke-width="1" fill="none"
fill-rule="evenodd">
<g id="coolworld-project-case-study-vd-1504-v02"
transform="translate(-1580.000000, -1967.550069)"
fill="#0072BB">
<g id="media"
transform="translate(0.000000, 1270.000000)">
<g id="Group-2"
transform="translate(426.000000, 449.000000)">
<g id="components/navigation/mobile/carousel"
transform="translate(1014.000000, 245.000000)">
<g id="icons/ui/arrow-line-right"
transform="translate(140.000000, 3.000000)">
<path
d="M22.6587309,7.6425728 L5.09460875,7.6425728 L5.09460875,7.6425728 L9.92142843,2.81683065 C10.4400119,2.29836292 10.4401058,1.4576668 9.92163804,0.939083306 C9.92160311,0.939048366 9.92156818,0.939013428 9.92153324,0.938978492 C9.40298689,0.420432142 8.56225714,0.420432142 8.0437108,0.938978492 C8.04368837,0.939000914 8.04366595,0.939023337 8.04364353,0.939045761 L0.70705612,8.27668449 C0.316700705,8.6672985 0.316700705,9.30038534 0.70705612,9.69099936 L8.04364353,17.0286381 C8.56215273,17.5472216 9.40288247,17.5472818 9.92146597,17.0287726 C9.9214884,17.0287502 9.92151082,17.0287278 9.92153324,17.0287054 C10.4400589,16.5101797 10.4400589,15.6694836 9.92153324,15.150958 C9.9214983,15.1509231 9.92146337,15.1508881 9.92142843,15.1508532 L5.09460875,10.3251111 L5.09460875,10.3251111 L22.6587309,10.3251111 C23.3994934,10.3251111 24,9.72460441 24,8.98384192 C24,8.24307944 23.3994934,7.6425728 22.6587309,7.6425728 Z"
id="arrow-line-right"
transform="translate(12.000000, 8.983842) scale(-1, 1) translate(-12.000000, -8.983842) "/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
{% if editmode or not contactEmpty %}
{# contact #}
<div class="md:ml-20 bg-blue-300 rounded text-white p-8 h-max w-1/2">
<b class="text-[24px] mb-4">{{ pimcore_input('contact-title') }}</b>
<div class="flex flex-col gap-6 mt-4">
{% for i in pimcore_block('contacts').iterator %}
{% if editmode %}
{{ pimcore_image('contact-image') }}
{{ pimcore_input('contact-name') }}
{{ pimcore_input('contact-function') }}
{{ pimcore_link('contact-number') }}
{{ pimcore_link('contact-mail') }}
{% else %}
<div
class="flex flex-col gap-4 md:gap-0 md:flex-row md:items-center justify-between">
<div class="flex flex-row gap-4 items-center">
{% if not pimcore_image('contact-image').isEmpty() %}
{{ pimcore_image('contact-image').thumbnail('contact-icon').html({
imgAttributes: {width: '52', height: '52', class: 'w-full h-full'},
pictureAttributes: {class: 'rounded-full overflow-hidden w-[52px] h-[52px]'}
}) | raw }}
{% endif %}
<div class="flex flex-col">
<b class="text-[20px]">{{ pimcore_input('contact-name').getData() | default('') }}</b>
{{ pimcore_input('contact-function').getData() | default('') }}
</div>
</div>
<div class="flex flex-row gap-4">
{% if pimcore_link('contact-mail').getHref() | default() %}
<a href="{{ pimcore_link('contact-mail').getHref() }}"
target="_blank"
class="flex font-bold text-blue hover:underline">
<span
class="flex items-center justify-center w-6 h-6 bg-white rounded-full shadow-md">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12"><path
fill="currentColor" fill-rule="evenodd"
d="M1.4 9.8V3.877l5.316 2.362a.7.7 0 0 0 .568 0L12.6 3.877V9.8H1.4Zm11.2-8.4v.945L7 4.834 1.4 2.345V1.4h11.2ZM14 2.786V.7a.7.7 0 0 0-.7-.7H.7a.7.7 0 0 0-.7.7v9.8a.7.7 0 0 0 .7.7h12.6a.7.7 0 0 0 .7-.7V2.786Z"></path></svg>
</span>
</a>
{% endif %}
{% if pimcore_link('contact-number').getHref() | default() %}
<a href="{{ pimcore_link('contact-number').getHref() }}"
class="flex font-bold text-blue hover:underline">
<span
class="flex items-center justify-center w-6 h-6 bg-white rounded-full shadow-md">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path
fill="currentColor" fill-rule="evenodd"
d="m13.47 9.12-2.8-.7a.703.703 0 0 0-.752.292L8.126 11.4A11.959 11.959 0 0 1 2.6 5.874l2.688-1.792a.7.7 0 0 0 .291-.752l-.7-2.8A.7.7 0 0 0 4.2 0H.7a.7.7 0 0 0-.7.7C.01 8.042 5.958 13.99 13.3 14a.7.7 0 0 0 .7-.7V9.8a.7.7 0 0 0-.53-.68Z"></path></svg>
</span>
</a>
{% endif %}
</div>
</div>
{% endif %}
{% if loop.index == pimcore_block('contacts').getCount() - 1 %}
<hr class="bg-blue-200 opacity-50">
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</section>
{% endblock %}
{% endembed %}