{% extends 'product.html.twig' %}
{% block content %}
<style>
.category-color{
z-index: 999999 !important;
position: absolute !important;
margin-top: 3em !important;
margin-left: -3em !important;
color: white !important;
background-color: #000 !important;
}
</style>
<main id="main" role="main">
{% include 'Shop/includes/productTopMenu.html.twig' with {'document': document, 'locale' : locale} %}
<div class="brands-block">
<div class="container">
<ul class="alphabet-list">
{% set num = false %}
{% for i in 1..9 %}
{% if i in filter %}
{% set num = true %}
{% endif %}
{% endfor %}
<li class="{{ num ? 'active' : '' }}"><a href="#scroll-1-9" class="smooth-scroll">1-9</a></li>
{% set alphas = range('A', 'Z') %}
{% for alpha in alphas%}
<li><a class="{{ alpha in filter ? '' : 'disabled ' }}smooth-scroll" href="#scroll-{{ alpha|lower }}">{{ alpha }}</a></li>
{% endfor %}
</ul>
{% set num = false %}
{% for key,brands in brandsSorted %}
<div class="brand-list-block" id="scroll-{{ key|lower }}">
<h2>{{ key }}</h2>
<ul class="brand-list">
{% for brand in brands %}
{% set url = "/" ~ locale ~ "/product/list?category=" ~ brand.getId() %}
<li class="brand-wrap">
<div class="logo" title="{{ brand.getAlcoholType() }}">
<div class="logo-wrap">
<a class="brand-link" href="{{ url }}" title="{{ brand.getAlcoholType() }}">
{% if brand.getTypeImage() %}
{{ brand.getTypeImage().getThumbnail('brand').html|raw }}
<h2 class="category-color">{{ brand.getAlcoholType() }}</h2>
{% else %}
<h2>{{ brand.getAlcoholType() }}</h2>
{% endif %}
</a>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
</main>
{% endblock %}