{% extends 'base.html.twig' %}{% block title %}{{ title }}{% endblock %}{% block stylesheets %} <style> </style>{% endblock %}{% block body %} <!--begin::Toolbar--> <div class="d-flex flex-wrap flex-stack pb-7"> <!--begin::Title--> <div class="d-flex flex-wrap align-items-center my-1"> <h3 class="fw-bold me-5 my-1">Employé(e)s ({{ count }})</h3> <!--begin::Search--> <div class="d-flex align-items-center position-relative my-1"> <!--begin::Svg Icon | path: icons/duotune/general/gen021.svg--> <span class="svg-icon svg-icon-3 position-absolute ms-3"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect opacity="0.5" x="17.0365" y="15.1223" width="8.15546" height="2" rx="1" transform="rotate(45 17.0365 15.1223)" fill="currentColor"/> <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" fill="currentColor"/> </svg> </span> <!--end::Svg Icon--> <input type="text" id="kt_filter_search" class="form-control form-control-sm border-body bg-body w-150px ps-10" placeholder="Search"/> </div> <!--end::Search--> </div> <!--end::Title--> <!--begin::Controls--> <div class="d-flex flex-wrap my-1"> <!--begin::Tab nav--> <ul class="nav nav-pills me-6 mb-2 mb-sm-0"> <li class="nav-item m-0"> <a class="btn btn-sm btn-icon btn-light btn-color-muted btn-active-primary me-3 active" data-bs-toggle="tab" href="#kt_project_users_card_pane"> <!--begin::Svg Icon | path: icons/duotune/general/gen024.svg--> <span class="svg-icon svg-icon-2"> <svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <rect x="5" y="5" width="5" height="5" rx="1" fill="currentColor"/> <rect x="14" y="5" width="5" height="5" rx="1" fill="currentColor" opacity="0.3"/> <rect x="5" y="14" width="5" height="5" rx="1" fill="currentColor" opacity="0.3"/> <rect x="14" y="14" width="5" height="5" rx="1" fill="currentColor" opacity="0.3"/> </g> </svg> </span> <!--end::Svg Icon--> </a> </li> <li class="nav-item m-0"> <a class="btn btn-sm btn-icon btn-light btn-color-muted btn-active-primary" data-bs-toggle="tab" href="#kt_project_users_table_pane"> <!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg--> <span class="svg-icon svg-icon-2"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <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" fill="currentColor"/> <path opacity="0.3" 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" fill="currentColor"/> </svg> </span> <!--end::Svg Icon--> </a> </li> </ul> <!--end::Tab nav--> </div> <!--end::Controls--> </div> <!--end::Toolbar--> <!--begin::Tab Content--> <div class="tab-content"> <!--begin::Tab pane--> <div id="kt_project_users_card_pane" class="tab-pane fade show active"> <!--begin::Row--> <div class="row g-6 g-xl-9"> {% for absenceDepartment in absenceListByDepartment %} <h1>{{ absenceDepartment.department.name }} ( {{ absenceDepartment.absenceList | length }} )</h1> {% for employee in absenceDepartment.absenceList %} <!--begin::Col--> <div class="col-md-6 col-xxl-4"> <!--begin::Card--> <div class="card"> <div class="card-header ribbon ribbon-end"> <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> <div class="card-title"><a href="{{ path('employee_show', {'id': employee.id}) }}" class="fs-4 text-gray-800 text-hover-primary fw-bold mb-0">{{ employee.fullName }}</a> </div> </div> <!--begin::Card body--> <div class="card-body d-flex flex-center flex-column pt-12 p-9"> <!--begin::Avatar--> <div class="symbol symbol-175px symbol-circle mb-5"> <img src="{{ employee | avatar }}" data-image-zoom="{{ employee | avatar }}" alt="image" class="zoom-image"/> <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> </div> <!--end::Avatar--> <!--begin::Name--> <!--end::Name--> <!--begin::Position--> <div class="fw-semibold text-gray-400 mb-6">{{ employee.lastHistory.department.name }} - {{ employee.lastHistory.position.name }}</div> <div class="fw-semibold text-gray-400 mb-6">{{ employee.phoneNumber }}</div> <!--end::Position--> </div> <!--end::Card body--> </div> <!--end::Card--> </div> <!--end::Col--> {% endfor %} {% endfor %} </div> <!--end::Row--> {# <!--begin::Pagination--> #} {# <div class="d-flex flex-stack flex-wrap pt-10"> #} {# <div class="fs-6 fw-semibold text-gray-700">Showing 1 to 10 of 50 entries</div> #} {# <!--begin::Pages--> #} {# <ul class="pagination"> #} {# <li class="page-item previous"> #} {# <a href="#" class="page-link"> #} {# <i class="previous"></i> #} {# </a> #} {# </li> #} {# <li class="page-item active"> #} {# <a href="#" class="page-link">1</a> #} {# </li> #} {# <li class="page-item"> #} {# <a href="#" class="page-link">2</a> #} {# </li> #} {# <li class="page-item"> #} {# <a href="#" class="page-link">3</a> #} {# </li> #} {# <li class="page-item"> #} {# <a href="#" class="page-link">4</a> #} {# </li> #} {# <li class="page-item"> #} {# <a href="#" class="page-link">5</a> #} {# </li> #} {# <li class="page-item"> #} {# <a href="#" class="page-link">6</a> #} {# </li> #} {# <li class="page-item next"> #} {# <a href="#" class="page-link"> #} {# <i class="next"></i> #} {# </a> #} {# </li> #} {# </ul> #} {# <!--end::Pages--> #} {# </div> #} {# <!--end::Pagination--> #} </div> <!--end::Tab pane--> <!--begin::Tab pane--> <div id="kt_project_users_table_pane" class="tab-pane fade"> <!--begin::Card--> <div class="card card-flush"> <!--begin::Card body--> <div class="card-body pt-0"> <!--begin::Table container--> <div class="table-responsive"> <!--begin::Table--> <table id="kt_project_users_table" class="table table-row-bordered table-row-dashed gy-4 align-middle fw-bold"> <!--begin::Head--> <thead class="fs-7 text-gray-400 text-uppercase"> <tr> <th class="min-w-250px">Manager</th> <th class="min-w-150px">Date</th> <th class="min-w-90px">Amount</th> <th class="min-w-90px">Status</th> <th class="min-w-50px text-end">Details</th> </tr> </thead> <!--end::Head--> <!--begin::Body--> <tbody class="fs-6"> {% for absenceDepartment in absenceListByDepartment %} {% for employee in absenceDepartment.absenceList %} <tr> <td> <!--begin::User--> <div class="d-flex align-items-center"> <!--begin::Wrapper--> <div class="me-5 position-relative"> <!--begin::Avatar--> <div class="symbol symbol-35px symbol-circle"> <img alt="Pic" src="{{ employee | avatar }}"/> </div> <!--end::Avatar--> </div> <!--end::Wrapper--> <!--begin::Info--> <div class="d-flex flex-column justify-content-center"> <a href="" class="mb-1 text-gray-800 text-hover-primary">Emma Smith</a> <div class="fw-semibold fs-6 text-gray-400">smith@kpmg.com</div> </div> <!--end::Info--> </div> <!--end::User--> </td> <td>Apr 15, 2022</td> <td>$672.00</td> <td> <span class="badge badge-light-info fw-bold px-4 py-3">In progress</span> </td> <td class="text-end"> <a href="#" class="btn btn-light btn-sm">View</a> </td> </tr> {% endfor %} {% endfor %} </tbody> <!--end::Body--> </table> <!--end::Table--> </div> <!--end::Table container--> </div> <!--end::Card body--> </div> <!--end::Card--> </div> <!--end::Tab pane--> </div> <!--end::Tab Content-->{% endblock %}{% block javascripts %}{% endblock %}