templates/employee_log_hour/absence.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ title }}{% endblock %}
  3. {% block stylesheets %}
  4.     <style>
  5.     </style>
  6. {% endblock %}
  7. {% block body %}
  8.     <!--begin::Toolbar-->
  9.     <div class="d-flex flex-wrap flex-stack pb-7">
  10.         <!--begin::Title-->
  11.         <div class="d-flex flex-wrap align-items-center my-1">
  12.             <h3 class="fw-bold me-5 my-1">Employé(e)s ({{ count }})</h3>
  13.             <!--begin::Search-->
  14.             <div class="d-flex align-items-center position-relative my-1">
  15.                 <!--begin::Svg Icon | path: icons/duotune/general/gen021.svg-->
  16.                 <span class="svg-icon svg-icon-3 position-absolute ms-3">
  17.                                                     <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
  18.                                                          xmlns="http://www.w3.org/2000/svg">
  19.                                                         <rect opacity="0.5" x="17.0365" y="15.1223" width="8.15546"
  20.                                                               height="2" rx="1" transform="rotate(45 17.0365 15.1223)"
  21.                                                               fill="currentColor"/>
  22.                                                         <path d="M11 19C6.55556 19 3 15.4444 3 11C3 6.55556 6.55556 3 11 3C15.4444 3 19 6.55556 19 11C19 15.4444 15.4444 19 11 19ZM11 5C7.53333 5 5 7.53333 5 11C5 14.4667 7.53333 17 11 17C14.4667 17 17 14.4667 17 11C17 7.53333 14.4667 5 11 5Z"
  23.                                                               fill="currentColor"/>
  24.                                                     </svg>
  25.                                                 </span>
  26.                 <!--end::Svg Icon-->
  27.                 <input type="text" id="kt_filter_search"
  28.                        class="form-control form-control-sm border-body bg-body w-150px ps-10" placeholder="Search"/>
  29.             </div>
  30.             <!--end::Search-->
  31.         </div>
  32.         <!--end::Title-->
  33.         <!--begin::Controls-->
  34.         <div class="d-flex flex-wrap my-1">
  35.             <!--begin::Tab nav-->
  36.             <ul class="nav nav-pills me-6 mb-2 mb-sm-0">
  37.                 <li class="nav-item m-0">
  38.                     <a class="btn btn-sm btn-icon btn-light btn-color-muted btn-active-primary me-3 active"
  39.                        data-bs-toggle="tab" href="#kt_project_users_card_pane">
  40.                         <!--begin::Svg Icon | path: icons/duotune/general/gen024.svg-->
  41.                         <span class="svg-icon svg-icon-2">
  42.                                                             <svg xmlns="http://www.w3.org/2000/svg" width="24px"
  43.                                                                  height="24px" viewBox="0 0 24 24">
  44.                                                                 <g stroke="none" stroke-width="1" fill="none"
  45.                                                                    fill-rule="evenodd">
  46.                                                                     <rect x="5" y="5" width="5" height="5" rx="1"
  47.                                                                           fill="currentColor"/>
  48.                                                                     <rect x="14" y="5" width="5" height="5" rx="1"
  49.                                                                           fill="currentColor" opacity="0.3"/>
  50.                                                                     <rect x="5" y="14" width="5" height="5" rx="1"
  51.                                                                           fill="currentColor" opacity="0.3"/>
  52.                                                                     <rect x="14" y="14" width="5" height="5" rx="1"
  53.                                                                           fill="currentColor" opacity="0.3"/>
  54.                                                                 </g>
  55.                                                             </svg>
  56.                                                         </span>
  57.                         <!--end::Svg Icon-->
  58.                     </a>
  59.                 </li>
  60.                 <li class="nav-item m-0">
  61.                     <a class="btn btn-sm btn-icon btn-light btn-color-muted btn-active-primary" data-bs-toggle="tab"
  62.                        href="#kt_project_users_table_pane">
  63.                         <!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
  64.                         <span class="svg-icon svg-icon-2">
  65.                                                             <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
  66.                                                                  xmlns="http://www.w3.org/2000/svg">
  67.                                                                 <path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z"
  68.                                                                       fill="currentColor"/>
  69.                                                                 <path opacity="0.3"
  70.                                                                       d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z"
  71.                                                                       fill="currentColor"/>
  72.                                                             </svg>
  73.                                                         </span>
  74.                         <!--end::Svg Icon-->
  75.                     </a>
  76.                 </li>
  77.             </ul>
  78.             <!--end::Tab nav-->
  79.         </div>
  80.         <!--end::Controls-->
  81.     </div>
  82.     <!--end::Toolbar-->
  83.     <!--begin::Tab Content-->
  84.     <div class="tab-content">
  85.         <!--begin::Tab pane-->
  86.         <div id="kt_project_users_card_pane" class="tab-pane fade show active">
  87.             <!--begin::Row-->
  88.             <div class="row g-6 g-xl-9">
  89.                 {% for absenceDepartment in absenceListByDepartment %}
  90.                     <h1>{{ absenceDepartment.department.name }} ( {{ absenceDepartment.absenceList | length }} )</h1>
  91.                     {% for employee in absenceDepartment.absenceList %}
  92.                         <!--begin::Col-->
  93.                         <div class="col-md-6 col-xxl-4">
  94.                             <!--begin::Card-->
  95.                             <div class="card">
  96.                                 <div class="card-header ribbon ribbon-end">
  97.                                     <div class="ribbon-label bg-primary fw-bolder">{% if employee.employeeHourLogs.last.date is defined %} Depuis: {{ employee.employeeHourLogs.last.date | format_datetime('full', 'none', locale='fr') }}{% endif %}</div>
  98.                                     <div class="card-title"><a href="{{ path('employee_show', {'id': employee.id}) }}"
  99.                                                                class="fs-4 text-gray-800 text-hover-primary fw-bold mb-0">{{ employee.fullName }}</a>
  100.                                     </div>
  101.                                 </div>
  102.                                 <!--begin::Card body-->
  103.                                 <div class="card-body d-flex flex-center flex-column pt-12 p-9">
  104.                                     <!--begin::Avatar-->
  105.                                     <div class="symbol symbol-175px symbol-circle mb-5">
  106.                                         <img src="{{ employee | avatar }}" data-image-zoom="{{ employee | avatar }}"
  107.                                              alt="image" class="zoom-image"/>
  108.                                         <div class="bg-{% if employee.activeEmployee %}success{% else %}danger{% endif %} position-absolute border border-4 border-body h-15px w-15px rounded-circle translate-middle start-100 top-100 ms-n3 mt-n3"></div>
  109.                                     </div>
  110.                                     <!--end::Avatar-->
  111.                                     <!--begin::Name-->
  112.                                     <!--end::Name-->
  113.                                     <!--begin::Position-->
  114.                                     <div class="fw-semibold text-gray-400 mb-6">{{ employee.lastHistory.department.name }}
  115.                                         - {{ employee.lastHistory.position.name }}</div>
  116.                                     <div class="fw-semibold text-gray-400 mb-6">{{ employee.phoneNumber }}</div>
  117.                                     <!--end::Position-->
  118.                                 </div>
  119.                                 <!--end::Card body-->
  120.                             </div>
  121.                             <!--end::Card-->
  122.                         </div>
  123.                         <!--end::Col-->
  124.                     {% endfor %}
  125.                 {% endfor %}
  126.             </div>
  127.             <!--end::Row-->
  128.             {#            <!--begin::Pagination--> #}
  129.             {#            <div class="d-flex flex-stack flex-wrap pt-10"> #}
  130.             {#                <div class="fs-6 fw-semibold text-gray-700">Showing 1 to 10 of 50 entries</div> #}
  131.             {#                <!--begin::Pages--> #}
  132.             {#                <ul class="pagination"> #}
  133.             {#                    <li class="page-item previous"> #}
  134.             {#                        <a href="#" class="page-link"> #}
  135.             {#                            <i class="previous"></i> #}
  136.             {#                        </a> #}
  137.             {#                    </li> #}
  138.             {#                    <li class="page-item active"> #}
  139.             {#                        <a href="#" class="page-link">1</a> #}
  140.             {#                    </li> #}
  141.             {#                    <li class="page-item"> #}
  142.             {#                        <a href="#" class="page-link">2</a> #}
  143.             {#                    </li> #}
  144.             {#                    <li class="page-item"> #}
  145.             {#                        <a href="#" class="page-link">3</a> #}
  146.             {#                    </li> #}
  147.             {#                    <li class="page-item"> #}
  148.             {#                        <a href="#" class="page-link">4</a> #}
  149.             {#                    </li> #}
  150.             {#                    <li class="page-item"> #}
  151.             {#                        <a href="#" class="page-link">5</a> #}
  152.             {#                    </li> #}
  153.             {#                    <li class="page-item"> #}
  154.             {#                        <a href="#" class="page-link">6</a> #}
  155.             {#                    </li> #}
  156.             {#                    <li class="page-item next"> #}
  157.             {#                        <a href="#" class="page-link"> #}
  158.             {#                            <i class="next"></i> #}
  159.             {#                        </a> #}
  160.             {#                    </li> #}
  161.             {#                </ul> #}
  162.             {#                <!--end::Pages--> #}
  163.             {#            </div> #}
  164.             {#            <!--end::Pagination--> #}
  165.         </div>
  166.         <!--end::Tab pane-->
  167.         <!--begin::Tab pane-->
  168.         <div id="kt_project_users_table_pane" class="tab-pane fade">
  169.             <!--begin::Card-->
  170.             <div class="card card-flush">
  171.                 <!--begin::Card body-->
  172.                 <div class="card-body pt-0">
  173.                     <!--begin::Table container-->
  174.                     <div class="table-responsive">
  175.                         <!--begin::Table-->
  176.                         <table id="kt_project_users_table"
  177.                                class="table table-row-bordered table-row-dashed gy-4 align-middle fw-bold">
  178.                             <!--begin::Head-->
  179.                             <thead class="fs-7 text-gray-400 text-uppercase">
  180.                             <tr>
  181.                                 <th class="min-w-250px">Manager</th>
  182.                                 <th class="min-w-150px">Date</th>
  183.                                 <th class="min-w-90px">Amount</th>
  184.                                 <th class="min-w-90px">Status</th>
  185.                                 <th class="min-w-50px text-end">Details</th>
  186.                             </tr>
  187.                             </thead>
  188.                             <!--end::Head-->
  189.                             <!--begin::Body-->
  190.                             <tbody class="fs-6">
  191.                             {% for absenceDepartment in absenceListByDepartment %}
  192.                                 {% for employee in absenceDepartment.absenceList %}
  193.                                     <tr>
  194.                                         <td>
  195.                                             <!--begin::User-->
  196.                                             <div class="d-flex align-items-center">
  197.                                                 <!--begin::Wrapper-->
  198.                                                 <div class="me-5 position-relative">
  199.                                                     <!--begin::Avatar-->
  200.                                                     <div class="symbol symbol-35px symbol-circle">
  201.                                                         <img alt="Pic" src="{{ employee | avatar }}"/>
  202.                                                     </div>
  203.                                                     <!--end::Avatar-->
  204.                                                 </div>
  205.                                                 <!--end::Wrapper-->
  206.                                                 <!--begin::Info-->
  207.                                                 <div class="d-flex flex-column justify-content-center">
  208.                                                     <a href="" class="mb-1 text-gray-800 text-hover-primary">Emma
  209.                                                         Smith</a>
  210.                                                     <div class="fw-semibold fs-6 text-gray-400">smith@kpmg.com</div>
  211.                                                 </div>
  212.                                                 <!--end::Info-->
  213.                                             </div>
  214.                                             <!--end::User-->
  215.                                         </td>
  216.                                         <td>Apr 15, 2022</td>
  217.                                         <td>$672.00</td>
  218.                                         <td>
  219.                                             <span class="badge badge-light-info fw-bold px-4 py-3">In progress</span>
  220.                                         </td>
  221.                                         <td class="text-end">
  222.                                             <a href="#" class="btn btn-light btn-sm">View</a>
  223.                                         </td>
  224.                                     </tr>
  225.                                 {% endfor %}
  226.                             {% endfor %}
  227.                             </tbody>
  228.                             <!--end::Body-->
  229.                         </table>
  230.                         <!--end::Table-->
  231.                     </div>
  232.                     <!--end::Table container-->
  233.                 </div>
  234.                 <!--end::Card body-->
  235.             </div>
  236.             <!--end::Card-->
  237.         </div>
  238.         <!--end::Tab pane-->
  239.     </div>
  240.     <!--end::Tab Content-->
  241. {% endblock %}
  242. {% block javascripts %}
  243. {% endblock %}