<nav class="navbar navbar-expand-lg text-white shadow">
<div class="container-fluid">
<a class="navbar-brand text-warning" href="#">GRETA-CFA | AMA64</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">
<i class="bi bi-list text-white"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active text-white" aria-current="page" href="{{ path('home') }}"><i class="bi bi-kanban"></i> Tableau de bord</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('stagiaires') }}"><i class="bi bi-person-workspace"></i> Stagiaires</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('formations') }}">
<i class="bi bi-easel2"></i> Formations
</a>
<ul class="dropdown-menu" aria-labelledby="navbarFormations">
<li><a class="dropdown-item" href="{{ path('formations') }}">Formations</a></li>
<li><a class="dropdown-item" href="{{ path('convocations') }}">Convocations</a></li>
<li><a class="dropdown-item" href="#">Présences</a></li>
<li><a class="dropdown-item" href="#">Attestations</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{{ path('statistiques_stagiaires') }}"><i class="bi bi-bar-chart-line"></i> Statistiques</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarFormations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-aspect-ratio"></i> Outils CD64
</a>
<ul class="dropdown-menu" aria-labelledby="navbarFormations">
<li><a class="dropdown-item" href="{{ path('contentieux_a_traiter') }}">Traiter les contentieux</a></li>
<li><a class="dropdown-item" href="{{ path('exports_listing') }}">Exports</a></li>
</ul>
</li>
{% if app.user.roles[0] == 'ROLE_ADMIN' or app.user.roles[0] == 'ROLE_COORDO' %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarAdministrations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-gear"></i> Administrations
</a>
<ul class="dropdown-menu" aria-labelledby="navbarAdministrations">
<li><a class="dropdown-item" href="{{ path('utilisateurs') }}">Utilisateurs</a></li>
<li><a class="dropdown-item" href="{{ path('agences') }}">Agences & sites de formation</a></li>
<li><a class="dropdown-item" href="{{ path('blocs_types') }}">Blocs & plannings types</a></li>
<li><a class="dropdown-item" href="{{ path('formateurs') }}">Formateurs</a></li>
<li><a class="dropdown-item" href="{{ path('cfc') }}">CFC</a></li>
<li><a class="dropdown-item" href="{{ path('assistants') }}">Assitants(es) de formation</a></li>
<li><a class="dropdown-item" href="{{ path('sauvegardes_restaurations_listing') }}">Sauvegardes | Restaurations</a></li>
<li><a class="dropdown-item" href="#">Anonymisation</a></li>
</ul>
</li>
{% endif %}
{% if app.user.roles[0] == 'ROLE_ADMIN' %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarAdministrations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-gear"></i> Assistances
</a>
<ul class="dropdown-menu" aria-labelledby="navbarAdministrations">
<li><a class="dropdown-item" href="{{ path('assistances_versioning') }}">Versioning</a></li>
</ul>
</li>
{% endif %}
</ul>
<form class="d-flex">
<!-- <input class="form-control me-2" type="search" placeholder="Mots clés" aria-label="Search">
<button class="btn btn-warning" type="submit"><i class="bi bi-search"></i></button> -->
<button class="btn btn-primary ms-5" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight"><i class="bi bi-person-circle"></i></button>
</form>
</div>
</div>
</nav>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
<div class="offcanvas-header">
<h5 id="offcanvasRightLabel" class=" text-uppercase fw-bold">MENU UTILISATEUR</h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="fw-bold mb-1"><i class="bi bi-person-circle"></i> {{ app.user.prenom }} {{ app.user.nom }}</div>
<div class="mb-1"><i class="bi bi-envelope"></i> {{ app.user.email }}</div>
{% set organisations = {2 : 'GRETA-CFA - Pau', 1 : 'GRETA-CFA - Bayonne', 3 : 'Conseil Départemental'} %}
<div class="mb-1"><i class="bi bi-building"></i> {{ organisations[app.user.organisation] }}</div>
<div class="mt-5 float-end">
<a href="{{ path('app_logout') }}">
<button class="btn btn-success btn-sm"><i class="bi bi-box-arrow-in-right"></i> Déconnexion</button>
</a>
</div>
</div>
</div>