<div class="eshopColumnLeft">
<!--
-- left column --
-->
<?php
if (!empty($routeName) && $routeName == 'eshop') {
?>
<div class="eshopHomeColumn">
</div>
<?php
}
?>
<div class="categoryMenu">
<div class="panelTitle">{{ 'eshop.categories'|trans }}</div>
{{ categoryTreeMenu|raw }}
</div>
{% if topProducts is defined %}
<div class="topProductsColumn">
{% set productCount = 0 %}
{% for orderItem in topProducts %}
{% set productCount = productCount + 1 %}
{% if productCount == 1 %}
<div class="panelTitle">{{ 'module.report_top_products'|trans }}</div>
{% endif %}
{% if orderItem['displayPrice'] is defined %}
{% set displayPrice = orderItem['displayPrice'] %}
{% else %}
{% set displayPrice = '' %}
{% endif %}
{% if orderItem['currencyKey'] is defined %}
{% set currencyKey = orderItem['currencyKey'] %}
{% else %}
{% set currencyKey = '' %}
{% endif %}
<div class="topProductColumnRow">
<span class="topProductColumnCol"><span class="topProductColumnNumber">{{ productCount }}</span></span>
<span class="topProductColumnTitle">
<a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/product/{{ orderItem['productId'] }}" class="topProductColumnLink">{{ orderItem['orderItemTitle'] }}</a>
<br><span class="topProductColumnPrice">{{ displayPrice }} {{ currencyKey }}</span>
</span>
</div>
{% endfor %}
</div>
{% endif %}
{% if manufacturers is defined and manufacturers|length > 0 %}
<div class="brandsColumn">
<div class="panelTitle">{{ 'eshop.brands'|trans }}</div>
{% set manufacturerCount = 0 %}
{% for manufacturer in manufacturers %}
{% set manufacturerCount = manufacturerCount + 1 %}
<div class="brandsColumnRow">
<span class="topProductColumnTitle">
<input type="checkbox" id="manufacturer{{ manufacturerCount }}" name="categoryBrandFilter" value="{{ manufacturer['manufacturer'] }}" onclick="categoryBrandFilter({{ eshop.eshopId }}, {{ category.categoryId }},'{{ manufacturer['manufacturer'] }}' , 'manufacturer{{ manufacturerCount }}')">
<label for="manufacturer{{ manufacturerCount }}" class="brandsColumnLabel">{{ manufacturer['manufacturer'] }}</label><br>
</span>
</div>
{% endfor %}
</div>
{% endif %}
</div>