<nav id="headerMenu" class="navbar">
{% apply spaceless %}
<ul class="list-unstyled m-0 pt-1 d-flex align-items-center">
{% set currentPath = app.request.pathinfo %}
<li class="d-flex {{ currentPath == path('homepage') ? 'active' }}"><img class="mr-1" width="16" src="/images/icon_category.svg"/><a href="#" role="button" data-toggle="modal" data-target="#offerCategoryMenuPopup">Категории</a></li>
{% include "Slivki/mobile#{regional_template_path}/info_massage_block.html.twig" %}
{# {% if not isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}#}
{# <li class="menu-office-fest">#}
{# <a href="{{ base_url }}/fest/office" class="color-white">Офисный фэст до 31.01</a>#}
{# </li>#}
{# {% endif %}#}
{% if not isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
<li>
<a href="{{ base_url }}/avto/shinomontazh">🛞 Шиномонтаж</a>
</li>
{% endif %}
{# <li>#}
{# <a href="{{ base_url }}/profile/external-codes/index ">МТС-БОНУС</a>#}
{# </li>#}
{% if getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
<li><a href="{{ base_url }}/eda/dostavka-edy?utm_source=main_menu">Доставка еды</a></li>
{% endif %}
{% block meOnMap %}
<li>
<a href="{{ base_url }}/map" target="_blank" class="d-flex pin-maps-header position-relative pr-3 py-1 violet-light-color">
<img height="20" src="/images/pin.svg"/>
<span>Я на карте</span>
</a>
</li>
{% endblock %}
{% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SALES')) %}
<li {{ currentPath == path('sales') ? 'class="active"' }}><a href="{{ base_url }}{{ path('sales') }}">Новости скидок</a></li>
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::GIFTS')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
<li><a href="{{ base_url }}/gift">🎁 Подарки</a></li>
{% endif %}
{% set menuItem = getTestMenuItem(2) %}
{% set landingUrl = '/subscription-landing?utm_source=slivki&utm_medium=button&utm_campaign=slivki-header-mob' %}
{% if subscription is not null and subscription.status == constant('Slivki\\Bundle\\SubscriptionBundle\\Enum\\SubscriptionStatus::CANCELED') %}
{% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
{% endif %}
{% set videoGuideURL = getURL(constant('Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')) %}
{% set flierUrl = path('flierLanding') %}
{% block vacancy %}
<li>
<a class="vakansii" href="{{ app.user ? '/profile/oplata-pay' }}"{{ not app.user ? 'data-target=".modal-auth" data-toggle="modal"' : '' }}>Баланс</a>
</li>
{% endblock %}
{% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::FLIERS')) %}
<li {{ currentPath == flierUrl ? 'class="active"' }}><a href="{{ flierUrl }}">Листовки</a></li>
{% endif %}
<li>
<a href="/skidki-i-rasprodazhi/vakansii/brest">Вакансии</a>
</li>
{% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION')) %}
<li>
<a href="{{ landingUrl }}">⚡️ Подписка</a>
</li>
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) %}
<li>
<a href="/virtual-wallet-pay">SlivkiPay</a>
</li>
{% endif %}
</ul>
{% endapply %}
</nav>