<!--begin::Aside Menu-->
<div class="hover-scroll-overlay-y my-5 my-lg-5" id="kt_aside_menu_wrapper" data-kt-scroll="true"
data-kt-scroll-activate="{default: false, lg: true}" data-kt-scroll-height="auto"
data-kt-scroll-dependencies="#kt_aside_logo, #kt_aside_footer" data-kt-scroll-wrappers="#kt_aside_menu"
data-kt-scroll-offset="0">
<!--begin::Menu-->
<div class="menu menu-column menu-title-gray-800 menu-state-title-primary menu-state-icon-primary menu-state-bullet-primary menu-arrow-gray-500"
id="#kt_aside_menu" data-kt-menu="true">
<div class="menu-item">
<div class="menu-content pb-2">
<span class="menu-section text-muted text-uppercase fs-8 ls-1">Dashboard</span>
</div>
</div>
<div class="menu-item">
<a class="menu-link {{ menu_active('dashboard_index') }}" href="{{ path('dashboard') }}">
<span class="menu-icon">
<i class="bi bi-grid fs-3"></i>
</span>
<span class="menu-title">Tableau de bord</span>
</a>
</div>
<div class="menu-item">
<div class="menu-content pb-2">
<span class="menu-section text-muted text-uppercase fs-8 ls-1">Gestion dun Personnel</span>
</div>
</div>
{% if is_granted('employee_index') or is_granted('employee_new') or is_granted('employee_history_index') %}
<div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
'employee_index',
'employee_new',
'employee_history_index'
]) }}">
<span class="menu-link">
{{ menu_icon('users') }}
<span class="menu-title">Employé(e)s</span>
<span class="menu-arrow"></span>
</span>
<div class="menu-sub menu-sub-accordion">
{% if is_granted('employee_index') %}
<div class="menu-item {{ menu_active_all(['employee_index']) }}">
<a class="menu-link" href="{{ path('employee_index') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Liste des Employé(e)s</span>
</a>
</div>
{% endif %}
{% if is_granted('employee_history_index') %}
<div class="menu-item {{ menu_active_all(['employee_history_index']) }}">
<a class="menu-link" href="{{ path('employee_history_index') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Liste des Contrats</span>
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if is_granted('employee_log_hour_index') or is_granted('employee_log_hour_new') or is_granted('employee_log_hour_calendar') %}
<div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
'employee_log_hour_index',
'employee_log_hour_new',
'employee_log_hour_calendar',
'absence_day',
'presence_day'
]) }}">
<span class="menu-link">
{{ menu_icon('calendar-check') }}
<span class="menu-title">Pointages</span>
<span class="menu-arrow"></span>
</span>
<div class="menu-sub menu-sub-accordion">
{% if is_granted('employee_log_hour_new') %}
<div class="menu-item {{ menu_active_all(['employee_log_hour_new']) }}">
<a class="menu-link" href="{{ path('employee_log_hour_new') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Ajouter</span>
</a>
</div>
{% endif %}
{% if is_granted('employee_log_hour_calendar') %}
<div class="menu-item {{ menu_active_all(['employee_log_hour_calendar']) }}">
<a class="menu-link" href="{{ path('employee_log_hour_calendar') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Calendrier</span>
</a>
</div>
<div class="menu-item {{ menu_active_all(['absence_day']) }}">
<a class="menu-link" href="{{ path('absence_day') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Absence</span>
</a>
</div>
<div class="menu-item {{ menu_active_all(['presence_day']) }}">
<a class="menu-link" href="{{ path('presence_day') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Présence</span>
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
<div class="menu-item">
<div class="menu-content pb-2">
<span class="menu-section text-muted text-uppercase fs-8 ls-1">Rapports</span>
</div>
</div>
{% if is_granted('report_daily') or is_granted('report_custom_range') %}
<div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
'report_daily',
'report_custom_range',
]) }}">
<span class="menu-link">
{{ menu_icon('chart-area') }}
<span class="menu-title">Rapports</span>
<span class="menu-arrow"></span>
</span>
<div class="menu-sub menu-sub-accordion">
{% if is_granted('report_daily') %}
<div class="menu-item {{ menu_active_all(['report_daily']) }}">
<a class="menu-link" href="{{ path('report_daily') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Rapport Journalier</span>
</a>
</div>
{% endif %}
{% if is_granted('report_custom_range') %}
<div class="menu-item {{ menu_active_all(['report_custom_range']) }}">
<a class="menu-link" href="{{ path('report_custom_range') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Rapport Personnalisé</span>
</a>
</div>
{% endif %}
{% if is_granted('report_month') %}
<div class="menu-item {{ menu_active_all(['report_month']) }}">
<a class="menu-link" href="{{ path('report_month') }}">
<span class="menu-bullet">
<span class="bullet bullet-dot"></span>
</span>
<span class="menu-title">Mois</span>
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
{# EXTRA MENU HERE - DO NOT DELETE THIS LINE #}
</div>
<!--end::Menu-->
</div>
<!--end::Aside Menu-->