<div class="app-sidebar__overlay" data-bs-toggle="sidebar"></div>
<aside class="app-sidebar doc-sidebar">
<a class="header-brand sidemenu-header-brand" href="{{ path('home') }}">
<img src="{{ asset('assets/images/custom/logo/logo-top.png') }}" class="header-brand-img desktop-logo" alt="logo">
<img src="{{ asset('assets/images/custom/logo/logo-footer.png') }}" class="header-brand-img mobile-logo" alt="logo">
</a>
<div class="app-sidebar__user clearfix">
<div class="dropdown user-pro-body">
<div>
<img src="{{ asset('assets/images/users/user.png') }}" alt="user-img" class="avatar avatar-lg brround">
<span class="avatar-status {% if app.user %}profile-status bg-green{% endif %}"></span>
</div>
{% if app.user %}
<div class="user-info">
<h2>{{ app.user.firstName }} {{ app.user.lastName }}</h2>
<span>
{% if 'ROLE_SUPER_ADMIN' in app.user.roles %}
Super Admin
{% elseif 'ROLE_ADMIN' in app.user.roles %}
Admin
{% elseif 'ROLE_COMMERCIAL' in app.user.roles %}
Commercial
{% endif %}
</span>
</div>
{% else %}
<div class="user-info">
<h2>Non connecté</h2>
</div>
{% endif %}
</div>
</div>
<ul class="side-menu">
{% if is_granted("ROLE_SUPER_ADMIN") or is_granted("ROLE_ADMIN") %}
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'trainings_edit' == app.request.get('_route') or 'trainings_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-file-word-o"></i>
<span class="side-menu__label">Fiches formations</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a href="{{ path('trainings_index') }}" class="slide-item">Liste des fiches</a>
</li>
<li>
<a href="{{ path('trainings_new') }}" class="slide-item">Ajouter une fiche</a>
</li>
</ul>
</li>
{% endif %}
{% if is_granted("ROLE_SUPER_ADMIN")%}
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'user_edit' == app.request.get('_route') or 'user_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-user-o"></i>
<span class="side-menu__label">Utilisateurs</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu">
<li>
<a href="{{ path('user_index') }}" class="slide-item">Liste des utilisateurs</a>
</li>
<li>
<a href="{{ path('user_new') }}" class="slide-item">Ajouter un utilisateur</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'domain_edit' == app.request.get('_route') or 'domain_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-file"></i>
<span class="side-menu__label">Domaines</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('domain_index') }}">Liste des domaines</a>
</li>
<li>
<a class="slide-item" href="{{ path('domain_new') }}">Ajouter un domaine</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'certification_type_edit' == app.request.get('_route') or 'certification_type_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-certificate"></i>
<span class="side-menu__label">Types de certifications</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('certification_type_index') }}">Liste des types de certificiations</a>
</li>
<li>
<a class="slide-item" href="{{ path('certification_type_new') }}">Ajouter un type de certificiation</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'education_level_edit' == app.request.get('_route') or 'education_level_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-level-up"></i>
<span class="side-menu__label">Niveaux de formation</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('education_level_index') }}">Liste des niveaux de formation</a>
</li>
<li>
<a class="slide-item" href="{{ path('education_level_new') }}">Ajouter un niveau de formation</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'public_type_edit' == app.request.get('_route') or 'public_type_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-users"></i>
<span class="side-menu__label">Types de public</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('public_type_index') }}">Liste des types de public</a>
</li>
<li>
<a class="slide-item" href="{{ path('public_type_new') }}">Ajouter un type de public</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'sub_domain_edit' == app.request.get('_route') or 'sub_domain_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-file-o"></i>
<span class="side-menu__label">Sous-domaines</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a href="{{ path('sub_domain_index') }}" class="slide-item">Listes des sous-domaines</a>
</li>
<li>
<a href="{{ path('sub_domain_new') }}" class="slide-item">Ajouter un sous-domaine</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'keywords_edit' == app.request.get('_route') or 'keywords_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon icon-key"></i>
<span class="side-menu__label">Mots-clés</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu">
<li>
<a href="{{ path('keywords_index') }}" class="slide-item">Liste des mots-clés</a>
</li>
<li>
<a href="{{ path('keywords_new') }}" class="slide-item">Ajouter un mot-clé</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'training_place_edit' == app.request.get('_route') or 'training_place_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-building-o"></i>
<span class="side-menu__label">Lieux de formation</span>
<i class="angle fa fa-angle-right"></i></a>
<ul class="slide-menu">
<li>
<a href="{{ path('training_place_index') }}" class="slide-item">Liste des lieux</a>
</li>
<li>
<a href="{{ path('training_place_new') }}" class="slide-item">Ajouter un lieu</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show" href="javascript:void(0)">
<i class="side-menu__icon fa fa-quote-left"></i>
<span class="side-menu__label">Types de formation</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('type_index') }}">Liste des types de formation</a>
</li>
<li>
<a class="slide-item" href="{{ path('type_new') }}">Ajouter un type de formation</a>
</li>
</ul>
</li>
<li class="slide mb-3">
<a class="side-menu__item slide-show {% if 'device_and_training_edit' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-comment-o"></i>
<span class="side-menu__label">Dispositifs de formation</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu">
<li>
<a class="slide-item" href="{{ path('device_training_index') }}">Liste des dispositifs de formation</a>
</li>
<li>
<a class="slide-item" href="{{ path('device_training_new') }}">Ajouter un dispositif de formation</a>
</li>
</ul>
</li>
{% endif %}
{% if is_granted("ROLE_COMMERCIAL") or is_granted("ROLE_ADMIN") or is_granted ("ROLE_SUPER_ADMIN") %}
<li class="slide {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}is-expanded{% endif %} mb-3">
<a class="side-menu__item slide-show {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
<i class="side-menu__icon fa fa-euro"></i>
<span class="side-menu__label">Outil Commercial</span>
<i class="angle fa fa-angle-right"></i>
</a>
<ul class="slide-menu {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}open{% endif %}">
<li>
<a class="slide-item" href="{{ path('fiches_index') }}">Mes propositions</a>
</li>
<li>
<a class="slide-item" href="{{ path('other_fiches_index') }}">Propositions d'autres commerciaux</a>
</li>
<li>
<a class="slide-item" href="{{ path('all_fiches_index') }}">Toutes les propositions</a>
</li>
<li>
<a class="slide-item {% if 'select_training' == app.request.get('_route') or 'fiches_new' == app.request.get('_route') %}active{% endif %}" href="{{ path('select_training') }}">Ajouter une proposition</a>
</li>
</ul>
</li>
{% endif %}
</ul>
</aside>