{% trans_default_domain 'frontend' %}
{% set currentPath = app.request.pathInfo %}
{% set currentRoute = app.request.attributes.get('_route') %}
<ul class="main-menu-mobile d-lg-none">
<li class="mb-lg-0">
<a href="{{ path('deal_list')}}" class="{% if currentPath matches '*/deal*' %} active{% endif %}" data-original-title="" title="">
<span>{{ 'menu.deal'|trans }}</span>
</a>
</li>
<li class="mb-lg-0">
<a href="{{ path('feed') }}" class="{% if currentPath matches '*/feed*' %} active{% endif %}" data-original-title="" title="">
<span>{{ 'menu.feed'|trans }}</span>
</a>
</li>
<li class="mb-lg-0">
<a href="{{ path('shop_video_list') }}" class="{% if currentPath matches '*/video*' %} active{% endif %}" data-original-title="" title="">
<span>{{ 'menu.video'|trans }}</span>
</a>
</li>
<li class="mb-lg-0 d-flex align-items-baseline">
<a href="{{ path('message', {filter: 'all'}) }}" class="{% if currentPath matches '*/mails*' %} active{% endif %}" data-original-title="" title="">
<span>{{ 'menu.mails'|trans }}</span>
</a>
{% if is_granted('ROLE_USER') %}
{% set messageCount = get_crud_action('App\\Controller\\Message\\MessageCountController').params.count %}
<span class="message-count{% if messageCount == 0 %} d-none{%- endif %}">{{ messageCount }}</span>
{% endif %}
</li>
<li class="mb-lg-0">
<div class="dropdown about-menu">
<a href="#" class="dropdown-toggle {% if currentPath matches '*/about*' %}active{% endif %}" data-toggle="dropdown" aria-expanded="false">
<span>{{ 'menu.about'|trans }}</span>
</a>
<div class="dropdown-menu dropdown-menu-md dropdown-menu-right dropdown-menu-s1">
<div class="dropdown-inner">
<ul class="link-list">
<li>
<a href="{{ path('products') }}" class="{% if currentRoute == 'products' %}active{% endif %}">
<i class="icon dp-icon-product_services"></i>
<span>{{ 'about.menu.product'|trans }}</span>
</a>
</li>
<li>
<a href="{{ path('club_rules') }}" class="{% if currentRoute == 'club_rules' %}active{% endif %}">
<i class="icon dp-icon-club_rules"></i>
<span>{{ 'about.menu.rules'|trans }}</span>
</a>
</li>
<li>
<a href="{{ path('faq') }}" class="{% if currentRoute == 'faq' %}active{% endif %}">
<i class="icon dp-icon-questions"></i>
<span>{{ 'about.menu.faq'|trans }}</span>
</a>
</li>
<li>
<a href="{{ path('contact') }}" class="{% if currentRoute == 'contact' %}active{% endif %}">
<i class="icon dp-icon-online-support"></i>
<span>{{ 'about.menu.contact'|trans }}</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>