{% if (app.user is not null ) %}
{% if hideAside is not defined or hideAside == false %}
<nav id="sidebar" class="sidebar js-sidebar">
<div class="sidebar-content js-simplebar" data-simplebar="init">
<div class="simplebar-wrapper">
<div class="simplebar-height-auto-observer-wrapper">
<div class="simplebar-height-auto-observer"></div>
</div>
<div class="simplebar-mask">
<div class="simplebar-offset">
<div class="simplebar-content-wrapper" tabindex="0" role="region" aria-label="scrollable content">
<div class="simplebar-content pb-5">
<a class="sidebar-brand" href="{{ path('app_homepage') }}">
<img src="{{ asset('build/backend/images/ffcb_logo.jpg', 'backend') }}" class="avatar img-fluid rounded me-1" alt="Logo FFCB">
<span class="align-middle">{{ app_name }}</span>
</a>
<ul class="sidebar-nav mb-5">
<li class="sidebar-header">CRM</li>
<li class="sidebar-item {{ menu is defined and menu == 'home' ? 'active' }}">
<a class="sidebar-link" href="{{ path('app_homepage') }}">
<span class="menu-icon">
<i class="fa-regular fa-chart-bar fs-3"></i>
</span>
<span class="align-middle">Accueil</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'entreprise' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'entreprise'}) }}">
<span class="menu-icon">
<i class="fas fa-building fs-3"></i>
</span>
<span class="align-middle">Entreprises</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'contact' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'contact' }) }}">
<span class="menu-icon">
<i class="fa-regular fa-address-card fs-3"></i>
</span>
<span class="align-middle">Contacts</span>
</a>
</li>
{% if
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<li class="sidebar-item {{ menu is defined and menu == 'syndicat' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'syndicat' }) }}">
<span class="menu-icon">
<i class="fa-solid fa-users-rectangle fs-3"></i>
</span>
<span class="align-middle">Syndicats</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_COMPTABLE') %}
<li class="sidebar-item {{ menu is defined and menu == 'cotisation' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'cotisation' }) }}">
<span class="menu-icon">
<i class="fa-solid fa-euro-sign fs-3"></i>
</span>
<span class="align-middle">Cotisations</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN_EXT') %}
<li class="sidebar-header">Extranet & Boutique</li>
<li class="sidebar-item {{ menu is defined and menu == 'user_member' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_member'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-users fs-3"></i>
</span>
<span class="align-middle">Utilisateurs extranet</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'order' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'order'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-cart-shopping fs-3"></i>
</span>
<span class="align-middle">Commandes</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'product' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'product'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-boxes-stacked fs-3"></i>
</span>
<span class="align-middle">Produits</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'event' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'event'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-calendar-days fs-3"></i>
</span>
<span class="align-middle">Evènement FFCB</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'user_question' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_question'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-question-circle fs-3"></i>
</span>
<span class="align-middle">
Questions adhérent {{ component('question_counter') }}
</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'faq' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'faq'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-comments fs-3"></i>
</span>
<span class="align-middle">Faq</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'ext-form' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'form_template'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-clipboard-question fs-3"></i>
</span>
<span class="align-middle">Questionnaires</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'document' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'document'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-file fs-3"></i>
</span>
<span class="align-middle">Documents</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<li class="sidebar-header">Administration CRM</li>
<li class="sidebar-item {{ menu is defined and menu == 'user_crm' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_crm'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-users fs-3"></i>
</span>
<span class="align-middle">Utilisateurs CRM</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'firm-group' ? 'active' }}">
<a class="sidebar-link" href="{{ path('list_firm_group') }}">
<span class="menu-icon">
<i class="fa-solid fa-city fs-3"></i>
</span>
<span class="align-middle">Gestion Groupes entr.</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'sms' ? 'active' }}">
<a class="sidebar-link" href="{{ path('sms_parameters') }}">
<span class="menu-icon">
<i class="fa-solid fa-sms fs-3"></i>
</span>
<span class="align-middle">Paramètres SMS</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'adm-log-event' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'log_entry'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-file-lines fs-3"></i>
</span>
<span class="align-middle">Journal des actions</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'adm-param-app' ? 'active' }}">
<a class="sidebar-link" href="{{ path('parameter_list') }}">
<span class="menu-icon">
<i class="fa-solid fa-cogs fs-3"></i>
</span>
<span class="align-middle">Paramètres app</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'adm-message-sended' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'message_sended'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-paper-plane fs-3"></i>
</span>
<span class="align-middle">Messages envoyés</span>
</a>
</li>
<li class="sidebar-item {{ menu is defined and menu == 'adm-message-template' ? 'active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'message_template'}) }}">
<span class="menu-icon">
<i class="fa-solid fa-file-lines fs-3"></i>
</span>
<span class="align-middle">Modèles message</span>
</a>
</li>
<li class="sidebar-item">
<a data-bs-target="#cotisations" data-bs-toggle="collapse" class="sidebar-link" aria-expanded="{{
menu is defined and menu == 'adm-cotisation' ? 'true' : 'false'
}}">
<span class="menu-icon">
<i class="fas fa-list fs-3"></i>
</span>
<span class="align-middle">Paramétrage cotisations</span>
</a>
<ul
id="cotisations"
class="sidebar-dropdown list-unstyled collapse{{
menu is defined and menu == 'adm-cotisation' ? ' show'
}}"
data-bs-parent="#sidebar"
>
<li class="sidebar-item{{ submenu is defined and submenu == 'param_cotisation' ? ' active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'param_cotisation'}) }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Cotisation</span>
</a>
</li>
{% if is_granted('ROLE_PROGRAMMER') %}
<li class="sidebar-item{{ submenu is defined and submenu == 'cotisation_type' ? ' active' }}">
<a class="sidebar-link" href="{{ path('admin_cotisation_parameter_type') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Types</span>
</a>
</li>
{% endif %}
<li class="sidebar-item{{ submenu is defined and submenu == 'param_cotisation_slice' ? ' active' }}">
<a class="sidebar-link" href="{{ path('advanced_search', {entity: 'param_cotisation_slice'}) }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Tranches</span>
</a>
</li>
</ul>
</li>
<li class="sidebar-item">
<a data-bs-target="#lists" data-bs-toggle="collapse" class="sidebar-link" aria-expanded="{{
menu is defined and menu == 'adm-list' ? 'true' : 'false'
}}">
<span class="menu-icon">
<i class="fas fa-list fs-3"></i>
</span>
<span class="align-middle">Gestion des listes</span>
</a>
<ul
id="lists"
class="sidebar-dropdown list-unstyled collapse{{
menu is defined and menu == 'adm-list' ? ' show'
}}"
data-bs-parent="#sidebar"
>
<li class="sidebar-item{{ submenu is defined and submenu == 'region' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_region') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Régions</span>
</a>
</li>
<li class="sidebar-item{{ submenu is defined and submenu == 'departement' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_departement') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Départements</span>
</a>
</li>
<li class="sidebar-item{{ submenu is defined and submenu == 'commissions' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_commission') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Commissions</span>
</a>
</li>
<li class="sidebar-item{{ submenu is defined and submenu == 'commission-roles' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_commission_role') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Commission rôles</span>
</a>
</li>
{#
<li class="sidebar-item{{ submenu is defined and submenu == 'offer-type' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_offer_type') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Types d'offre</span>
</a>
</li>
#}
<li class="sidebar-item{{ submenu is defined and submenu == 'conseil-admin' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_role_conseil_admin') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Conseil d'administration</span>
</a>
</li>
<li class="sidebar-item{{ submenu is defined and submenu == 'tags' ? ' active' }}">
<a class="sidebar-link" href="{{ path('list_tag') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Repères</span>
</a>
</li>
<li class="sidebar-item{{ submenu is defined and submenu == 'firm-link-reason' ? ' active' }}">
<a class="sidebar-link" href="{{ path('firm_link_reason') }}">
<span class="menu-icon">
<i class="fas fa-circle"></i>
</span>
<span class="align-middle">Raison liaison entreprise</span>
</a>
</li>
</ul>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
<div class="simplebar-placeholder"></div>
</div>
<div class="simplebar-track simplebar-horizontal">
<div class="simplebar-scrollbar"></div>
</div>
<div class="simplebar-track simplebar-vertical">
<div class="simplebar-scrollbar"></div>
</div>
</div>
</nav>
{% endif %}
{% endif %}