<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="{{ asset('asset/image/logo.svg') }}"/>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto me-0 mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="{{ path('app_default_index') }}">Нүүр</a>
</li>
{% if is_granted('ROLE_app_admission_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_admission_index') }}">Бүртгэл</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_publication_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_publication_index') }}">Publication Request</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_publication_fe_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_publication_fe_index') }}">Сэтгүүлүүд</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_reviewer_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_reviewer_index') }}">Reviewer</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_sector_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_sector_index') }}">Сэтгүүлийн чиглэл</a>
</li>
{% endif %}
{% if
is_granted('ROLE_app_degree_index') or
is_granted('ROLE_app_profession_group_index') or
is_granted('ROLE_app_program_kind_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Үндсэн
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_degree_group_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_degree_group_index') }}"
>Хөтөлбөр(group)</a></li>
{% endif %}
{% if is_granted('ROLE_app_degree_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_degree_index') }}"
>Хөтөлбөр(зэрэг)</a></li>
{% endif %}
{% if is_granted('ROLE_app_profession_group_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_profession_group_index') }}"
>Мэргэжил,Чиглэл</a></li>
{% endif %}
{% if is_granted('ROLE_app_program_kind_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_program_kind_index') }}"
>Хөтөлбөрийн төрөл</a></li>
{% endif %}
{% if is_granted('ROLE_app_department_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_department_index') }}"
>Тэнхим</a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% if
is_granted('ROLE_app_post_index') or
is_granted('ROLE_app_intro_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Нийтлэл
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_post_index') or is_granted('ROLE_SUPER_USER') %}
<li>
<a class="dropdown-item" href="{{ path('app_post_index') }}">Мэдээ мэдээлэл</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_intro_index') or is_granted('ROLE_SUPER_USER') %}
<li>
<a class="dropdown-item" href="{{ path('app_intro_index') }}">Танилцуулга</a>
</li>
{% endif %}
</ul>
</li>
{% endif %}
{% if is_granted('ROLE_app_information_index') or is_granted('ROLE_SUPER_USER') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_information_index') }}">Тохиргоо</a>
</li>
{% endif %}
{% if
is_granted('ROLE_app_addressing_index') or
is_granted('ROLE_app_country_index') or
is_granted('ROLE_app_language_index') or
is_granted('ROLE_app_education_organization_index') or
is_granted('ROLE_app_global_constant_index') or
is_granted('ROLE_app_sat_lesson_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Глобал
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_addressing_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_addressing_index') }}">Хот, орон
нутаг</a></li>
{% endif %}
{% if is_granted('ROLE_app_country_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_country_index') }}">Улс</a></li>
{% endif %}
{% if is_granted('ROLE_app_language_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_language_index') }}">Хэл</a></li>
{% endif %}
{% if is_granted('ROLE_app_education_organization_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_education_organization_index') }}">Сургуулиуд</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_global_constant_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item"
href="{{ path('app_global_constant_index') }}">Тогтмолууд</a></li>
{% endif %}
{% if is_granted('ROLE_app_sat_lesson_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_sat_lesson_index') }}">БҮТ хичээлүүд</a>
</li>
{% endif %}
</ul>
</li>
{% endif %}
{% if
is_granted('ROLE_app_payment_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Санхүү
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_payment_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_payment_index') }}">Төлбөр</a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% if
is_granted('ROLE_app_user_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Бүртгэл
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_user_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_user_index') }}">Элсэгч</a></li>
{% endif %}
</ul>
</li>
{% endif %}
{% if
is_granted('ROLE_app_system_route_index') or
is_granted('ROLE_app_user_group_index') or
is_granted('ROLE_app_user_admin_index') or
is_granted('ROLE_SUPER_USER') %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Админ
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_system_route_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_system_route_index') }}">System
Route</a></li>
{% endif %}
{% if is_granted('ROLE_app_user_group_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_user_group_index') }}">Админ эрхүүд</a>
</li>
{% endif %}
{% if is_granted('ROLE_app_user_admin_index') or is_granted('ROLE_SUPER_USER') %}
<li><a class="dropdown-item" href="{{ path('app_user_admin_index') }}">Админ</a></li>
{% endif %}
</ul>
</li>
{% endif %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa fa-user"></i>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{% if is_granted('ROLE_app_password_change') or is_granted('ROLE_SUPER_USER') %}
<li>
<a class="dropdown-item" href="{{ path('app_password_change') }}">
<i class="fa fa-key"></i> Нууц үг солих
</a>
</li>
{% endif %}
<li>
<a class="dropdown-item" href="{{ path('app_logout') }}">
<i class="fa fa-power-off"></i> Гарах
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>