<nav class="navbar navbar-expand-lg bg-white shadow-sm">
<div class="container-fluid">
<a class="navbar-brand" href="{{ path('app_home') }}">Jimi & the wolf</a>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header justify-content-end">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Peter & the wolf</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-center flex-grow-1 pe-3 gap-3">
<li class="nav-item">
<a class="nav-link {{ activeClass(['InstrumentController', 'index']) }}"
href="{{ path('app_instrument_index') }}">
Catalogue
</a>
</li>
<li class="nav-item">
<a class="nav-link {{ activeClass(['SoundController', 'index']) }}"
href="{{ path('app_sound_index') }}">
Titres
</a>
</li>
{{ component('companies_navigation') }}
</ul>
<ul class="navbar-nav navbar-nav-utils justify-content-end pe-3">
{{ component('search') }}
{% if app.user %}
<li class="nav-item dropdown">
<a class="btn btn-primary dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
{{ app.user.nickname }}
</a>
<ul class="dropdown-menu dropdown-menu-end border-0">
{% if is_granted('ROLE_ADMIN') %}
<li><a class="dropdown-item" data-turbo="false" href="{{ path('app_admin') }}">Admin</a></li>
<li>
<hr class="dropdown-divider">
</li>
{% endif %}
<li><a class="dropdown-item" href="#">Account</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" data-turbo="false" href="{{ path('app_logout') }}">Logout</a></li>
</ul>
</li>
{% else %}
<li class="nav-item">
<a class="btn btn-primary" href="{{ path('app_login') }}">Connexion</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
</nav>