{% extends base_layout() %}
{% block content %}
<section class="mb-5 pb-5">
<div class="container">
{{ include('includes/title.html.twig') }}
{{ pimcore_areablock('content-1') }}
<div class="row">
<div class="col-12">
{% if editmode %}
{% set message = 'Om een ProductCategory toe te voegen: wendt u zich naar "Objects"' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
{% endif %}
</div>
</div>
<div class="row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center">
{% for categorie in productcategories %}
{% set detailLink = app_product_grouplink(categorie) %}
<div class="col">
<div class="text-center catoverview">
<a href="{{ detailLink }}" class="fs-5"
onMouseOver="this.style.color='{{ categorie.bgcolor }}'"
onMouseOut="this.style.color='#595959'" data-toggle="tooltip" data-html="true" title="{{ categorie.infoProductGroup }}" style="cursor: pointer;">
<div class="p-3 position-relative h-100 d-block">
{% if categorie.getImage() is not empty %}
<img src="{{ categorie.getImage().getThumbnail('homepage-icon') }}"
class="img-fluid d-block" style="z-index: 1">
{% endif %}
{% set productimagebg = categorie.imagebg %}
{% if productimagebg %}
<img
src="{{ productimagebg.getThumbnail('homepage-icon') }}"
class="img-fluid position-absolute top-0 start-0 d-block bg-shape"
style="z-index: -1">{% endif %}
</div>
{% if categorie.combinedCategoryName is not empty %}
{{ categorie.combinedCategoryName|capitalize }}
{% else %}
{{ categorie.oms|capitalize }}
{% endif %}
</a>
</div>
</div>
{% endfor %}
</div>
{{ pimcore_areablock('content-2') }}
<div class="row">
<div class="col-12 justify-content-center ">
{% include 'includes/pagination-product.html.twig' %}
</div>
</div>
</div>
</section>
{% endblock %}