<main>
<div class="row" style="height:100vh;">
<div class="flex-column col-2 p-3 text-white" style="background: linear-gradient(to bottom, #006288, #3A4B92);">
<a href="{{ path('app_home') }}" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
<span class="fs-4">Flex Energie</span>
</a>
<hr>
{% if app.user %}
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<div class="nav-link text-white">Bonjour {{ app.user.username }}</div>
</li>
<li class="nav-item">
<a href="{{ path('app_logout') }}" class="nav-link text-white">Se déconnecter</a>
</li>
</ul>
{% else %}
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a href="{{ url('org_login') }}" class="nav-link text-white" aria-current="page">Se connecter</a>
</li>
<li class="nav-item">
<a href="{{ url('app_register') }}" class="nav-link text-white" aria-current="page">S'inscrire</a>
</li>
</ul>
{% endif %}
<hr>
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a href="{{ path('app_site') }}" class="nav-link text-white" aria-current="page">Accueil</a>
</li>
{% if app.user %}
{% if app.user.hasRole('ROLE_TEAM') or app.user.hasRole('ROLE_ADMIN') %}
<li class="nav-item">
<a href="{{ path('app_entreprise') }}" class="nav-link text-white">Entreprises</a>
</li>
<li class="nav-item">
<a href="{{ path('app_rappel_list') }}" class="nav-link text-white">Rappels</a>
</li>
<li class="nav-item">
<a href="{{ path('app_requetes') }}" class="nav-link text-white">Requêtes</a>
</li>
<li class="nav-item">
<a href="{{ path('app_document') }}" class="nav-link text-white">Générer document</a>
</li>
<li class="nav-item">
<a href="{{ path('app_storage') }}" class="nav-link text-white">Stockage NAS</a>
</li>
<hr>
<li class="nav-item">
<a href="{{ path('app_contrat_particulier_index') }}" class="nav-link text-white">Contrats Particuliers</a>
</li>
{% endif %}
{% if app.user.hasRole('ROLE_COMPTA') or app.user.hasRole('ROLE_ADMIN') %}
<hr>
<li class="nav-item">
<a href="{{ path('app_compta') }}" class="nav-link text-white">Comptabilité</a>
</li>
<li class="nav-item">
<a href="{{ path('app_entreprise_associate_user') }}" class="nav-link text-white">Associer utilisateur</a>
</li>
{% endif %}
{% if app.user.hasRole('ROLE_ADMIN') %}
<hr>
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mb-1 text-white">
<span><u>Administration</u></span>
</h6>
<li class="nav-item">
<a href="{{ path('app_roles') }}" class="nav-link text-white">Gestion des rôles</a>
</li>
<li class="nav-item">
<a href="{{ path('app_roles_attribution') }}" class="nav-link text-white">Gestion des utilisateurs</a>
</li>
{% endif %}
{% endif %}
</ul>
</div>
<div class="col-9">