templates/_layout/aside/_menu.html.twig line 1

Open in your IDE?
  1. <!--begin::Aside Menu-->
  2. <div class="hover-scroll-overlay-y my-5 my-lg-5" id="kt_aside_menu_wrapper" data-kt-scroll="true"
  3.      data-kt-scroll-activate="{default: false, lg: true}" data-kt-scroll-height="auto"
  4.      data-kt-scroll-dependencies="#kt_aside_logo, #kt_aside_footer" data-kt-scroll-wrappers="#kt_aside_menu"
  5.      data-kt-scroll-offset="0">
  6.     <!--begin::Menu-->
  7.     <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"
  8.          id="#kt_aside_menu" data-kt-menu="true">
  9.         <div class="menu-item">
  10.             <div class="menu-content pb-2">
  11.                 <span class="menu-section text-muted text-uppercase fs-8 ls-1">Dashboard</span>
  12.             </div>
  13.         </div>
  14.         <div class="menu-item">
  15.             <a class="menu-link {{ menu_active('dashboard_index') }}" href="{{ path('dashboard') }}">
  16.                                         <span class="menu-icon">
  17.                                             <i class="bi bi-grid fs-3"></i>
  18.                                         </span>
  19.                 <span class="menu-title">Tableau de bord</span>
  20.             </a>
  21.         </div>
  22.         <div class="menu-item">
  23.             <div class="menu-content pb-2">
  24.                 <span class="menu-section text-muted text-uppercase fs-8 ls-1">Gestion dun Personnel</span>
  25.             </div>
  26.         </div>
  27.         {% if is_granted('employee_index') or is_granted('employee_new') or is_granted('employee_history_index') %}
  28.             <div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
  29.                 'employee_index',
  30.                 'employee_new',
  31.                 'employee_history_index'
  32.             ]) }}">
  33.                                     <span class="menu-link">
  34.                                         {{ menu_icon('users') }}
  35.                                         <span class="menu-title">Employé(e)s</span>
  36.                                         <span class="menu-arrow"></span>
  37.                                     </span>
  38.                 <div class="menu-sub menu-sub-accordion">
  39.                     {% if is_granted('employee_index') %}
  40.                         <div class="menu-item  {{ menu_active_all(['employee_index']) }}">
  41.                             <a class="menu-link" href="{{ path('employee_index') }}">
  42.                                                         <span class="menu-bullet">
  43.                                                             <span class="bullet bullet-dot"></span>
  44.                                                         </span>
  45.                                 <span class="menu-title">Liste des Employé(e)s</span>
  46.                             </a>
  47.                         </div>
  48.                     {% endif %}
  49.                     {% if is_granted('employee_history_index') %}
  50.                         <div class="menu-item  {{ menu_active_all(['employee_history_index']) }}">
  51.                             <a class="menu-link" href="{{ path('employee_history_index') }}">
  52.                                                         <span class="menu-bullet">
  53.                                                             <span class="bullet bullet-dot"></span>
  54.                                                         </span>
  55.                                 <span class="menu-title">Liste des Contrats</span>
  56.                             </a>
  57.                         </div>
  58.                     {% endif %}
  59.                 </div>
  60.             </div>
  61.         {% endif %}
  62.         {% if is_granted('employee_log_hour_index') or is_granted('employee_log_hour_new') or is_granted('employee_log_hour_calendar') %}
  63.             <div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
  64.                 'employee_log_hour_index',
  65.                 'employee_log_hour_new',
  66.                 'employee_log_hour_calendar',
  67.                 'absence_day',
  68.                 'presence_day'
  69.             ]) }}">
  70.                                     <span class="menu-link">
  71.                                         {{ menu_icon('calendar-check') }}
  72.                                         <span class="menu-title">Pointages</span>
  73.                                         <span class="menu-arrow"></span>
  74.                                     </span>
  75.                 <div class="menu-sub menu-sub-accordion">
  76.                     {% if is_granted('employee_log_hour_new') %}
  77.                         <div class="menu-item  {{ menu_active_all(['employee_log_hour_new']) }}">
  78.                             <a class="menu-link" href="{{ path('employee_log_hour_new') }}">
  79.                                                         <span class="menu-bullet">
  80.                                                             <span class="bullet bullet-dot"></span>
  81.                                                         </span>
  82.                                 <span class="menu-title">Ajouter</span>
  83.                             </a>
  84.                         </div>
  85.                     {% endif %}
  86.                     {% if is_granted('employee_log_hour_calendar') %}
  87.                         <div class="menu-item  {{ menu_active_all(['employee_log_hour_calendar']) }}">
  88.                             <a class="menu-link" href="{{ path('employee_log_hour_calendar') }}">
  89.                                                         <span class="menu-bullet">
  90.                                                             <span class="bullet bullet-dot"></span>
  91.                                                         </span>
  92.                                 <span class="menu-title">Calendrier</span>
  93.                             </a>
  94.                         </div>
  95.                         <div class="menu-item  {{ menu_active_all(['absence_day']) }}">
  96.                             <a class="menu-link" href="{{ path('absence_day') }}">
  97.                                                         <span class="menu-bullet">
  98.                                                             <span class="bullet bullet-dot"></span>
  99.                                                         </span>
  100.                                 <span class="menu-title">Absence</span>
  101.                             </a>
  102.                         </div>
  103.                         <div class="menu-item  {{ menu_active_all(['presence_day']) }}">
  104.                             <a class="menu-link" href="{{ path('presence_day') }}">
  105.                                                         <span class="menu-bullet">
  106.                                                             <span class="bullet bullet-dot"></span>
  107.                                                         </span>
  108.                                 <span class="menu-title">Présence</span>
  109.                             </a>
  110.                         </div>
  111.                     {% endif %}
  112.                 </div>
  113.             </div>
  114.         {% endif %}
  115.         <div class="menu-item">
  116.             <div class="menu-content pb-2">
  117.                 <span class="menu-section text-muted text-uppercase fs-8 ls-1">Rapports</span>
  118.             </div>
  119.         </div>
  120.         {% if is_granted('report_daily') or is_granted('report_custom_range') %}
  121.             <div data-kt-menu-trigger="click" class="menu-item menu-accordion mb-1 {{ menu_active_all([
  122.                 'report_daily',
  123.                 'report_custom_range',
  124.             ]) }}">
  125.                                     <span class="menu-link">
  126.                                         {{ menu_icon('chart-area') }}
  127.                                         <span class="menu-title">Rapports</span>
  128.                                         <span class="menu-arrow"></span>
  129.                                     </span>
  130.                 <div class="menu-sub menu-sub-accordion">
  131.                     {% if is_granted('report_daily') %}
  132.                         <div class="menu-item  {{ menu_active_all(['report_daily']) }}">
  133.                             <a class="menu-link" href="{{ path('report_daily') }}">
  134.                                                         <span class="menu-bullet">
  135.                                                             <span class="bullet bullet-dot"></span>
  136.                                                         </span>
  137.                                 <span class="menu-title">Rapport Journalier</span>
  138.                             </a>
  139.                         </div>
  140.                     {% endif %}
  141.                     {% if is_granted('report_custom_range') %}
  142.                         <div class="menu-item  {{ menu_active_all(['report_custom_range']) }}">
  143.                             <a class="menu-link" href="{{ path('report_custom_range') }}">
  144.                                                         <span class="menu-bullet">
  145.                                                             <span class="bullet bullet-dot"></span>
  146.                                                         </span>
  147.                                 <span class="menu-title">Rapport Personnalisé</span>
  148.                             </a>
  149.                         </div>
  150.                     {% endif %}
  151.                     {% if is_granted('report_month') %}
  152.                         <div class="menu-item  {{ menu_active_all(['report_month']) }}">
  153.                             <a class="menu-link" href="{{ path('report_month') }}">
  154.                                                         <span class="menu-bullet">
  155.                                                             <span class="bullet bullet-dot"></span>
  156.                                                         </span>
  157.                                 <span class="menu-title">Mois</span>
  158.                             </a>
  159.                         </div>
  160.                     {% endif %}
  161.                 </div>
  162.             </div>
  163.         {% endif %}
  164.         {# EXTRA MENU HERE - DO NOT DELETE THIS LINE #}
  165.     </div>
  166.     <!--end::Menu-->
  167. </div>
  168. <!--end::Aside Menu-->