| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <!-- ========== MAIN CONTENT ========== -->
- <!-- Breadcrumb -->
- <div class="sticky top-0 inset-x-0 z-20 bg-white border-y border-gray-200 px-4 sm:px-6 lg:px-8 lg:hidden dark:bg-gray-900 dark:border-neutral-700">
- <div class="flex items-center py-2">
- <!-- Navigation Toggle -->
- <button type="button" class="size-8 flex justify-center items-center gap-x-2 border border-gray-200 text-gray-800 hover:text-gray-500 rounded-lg focus:outline-hidden focus:text-gray-500 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-200 dark:hover:text-neutral-500 dark:focus:text-neutral-500" aria-haspopup="dialog" aria-expanded="false" aria-controls="hs-application-sidebar" aria-label="Toggle navigation" data-hs-overlay="#hs-application-sidebar">
- <span class="sr-only">Toggle Navigation</span>
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M15 3v18"/><path d="m8 9 3 3-3 3"/></svg>
- </button>
- <!-- End Navigation Toggle -->
- <!-- Breadcrumb -->
- <ol class="ms-3 flex items-center whitespace-nowrap">
- <li class="flex items-center text-sm text-gray-800 dark:text-neutral-400">
- SIPA Automobiles
- <svg class="shrink-0 mx-3 overflow-visible size-2.5 text-gray-400 dark:text-neutral-500" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
- </svg>
- </li>
- <li class="text-sm font-semibold text-gray-800 truncate dark:text-neutral-400" aria-current="page">
- SIPA - Dashboard
- </li>
- </ol>
- <!-- End Breadcrumb -->
- </div>
- </div>
- <!-- End Breadcrumb -->
- <!-- Sidebar -->
- <div id="hs-application-sidebar" class="hs-overlay [--auto-close:lg]
- hs-overlay-open:translate-x-0
- -translate-x-full transition-all duration-300 transform
- w-64 h-full
- hidden
- fixed inset-y-0 start-0 z-60
- bg-gray-900
- lg:block lg:translate-x-0 lg:end-auto lg:bottom-0
- dark:bg-neutral-800 dark:border-neutral-700" role="dialog" tabindex="-1" aria-label="Sidebar">
- <div class="relative flex flex-col h-full max-h-full">
- <div class="px-8 pt-4">
- <!-- Logo -->
- <a class="flex-none rounded-xl text-xl inline-block font-semibold focus:outline-hidden focus:opacity-80" href="index.php" aria-label="SIPA Automobiles">
- <img src="assets/images/logo.webp" alt="Logo SIPA Automobiles" class="h-12 w-auto" onerror="this.style.display='none'; this.nextElementSibling.style.display='block';">
- <span class="text-xl font-bold text-white" style="display:none;">SIPA</span>
- </a>
- <!-- End Logo -->
- </div>
- <!-- Content -->
- <div class="flex-1 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500">
- <nav class="hs-accordion-group p-3 w-full flex flex-col flex-wrap" data-hs-accordion-always-open>
- <ul class="flex flex-col space-y-1">
- <li>
- <a class="flex items-center gap-x-3.5 py-2 px-2.5 bg-white/10 text-sm text-white rounded-lg hover:bg-white/10 focus:outline-hidden focus:bg-white/10 dark:bg-neutral-700 dark:text-white" href="#dashboard">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
- Accueil
- </a>
- </li>
- <li class="hs-accordion" id="dashboards-accordion">
- <button type="button" class="hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 focus:outline-hidden focus:bg-white/10" aria-expanded="true" aria-controls="dashboards-accordion-child">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/></svg>
- Mes dashboards
- <svg class="hs-accordion-active:block ms-auto hidden size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
- <svg class="hs-accordion-active:hidden ms-auto block size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
- </button>
- <div id="dashboards-accordion-child" class="hs-accordion-content w-full overflow-hidden transition-[height] duration-300 hidden" role="region">
- <ul class="pt-1 space-y-1">
- <li>
- <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 focus:outline-hidden focus:bg-white/10 dark:bg-neutral-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300" href="directeur.php" target="_parent">
- Dashboard Directeur
- </a>
- </li>
- <li>
- <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 focus:outline-hidden focus:bg-white/10 dark:bg-neutral-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300" href="it.php" target="_parent">
- Dashboard IT
- </a>
- </li>
- <li>
- <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 focus:outline-hidden focus:bg-white/10 dark:bg-neutral-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300" href="rh.php" target="_parent">
- Dashboard RH
- </a>
- </li>
- </ul>
- </div>
- </li>
- <li>
- <a class="w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 dark:hover:bg-neutral-700 dark:text-white" href="#nouvelle-demande">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
- Nouvelle demande
- </a>
- </li>
- <li>
- <a class="w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 dark:hover:bg-neutral-700 dark:text-white" href="#nouvelle-demande-avenant">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16"/><path d="M6 16l6-6 6 6"/><path d="M12 4v12"/></svg>
- Nouvelle demande d'avenant
- </a>
- </li>
- <li>
- <a class="w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 dark:hover:bg-neutral-700 dark:text-white" href="#nouveau-recrutement">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
- Nouveau recrutement
- </a>
- </li>
- <li>
- <a class="w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 dark:hover:bg-neutral-700 dark:text-white" href="#mes-demandes">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/></svg>
- Mes demandes
- </a>
- </li>
- <li>
- <a class="w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-white rounded-lg hover:bg-white/10 dark:hover:bg-neutral-700 dark:text-white" href="#demandes-archivees">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="5" x="2" y="4" rx="2"/><path d="M4 9v9.5A2.5 2.5 0 0 0 6.5 21h11a2.5 2.5 0 0 0 2.5-2.5V9"/><path d="M4 9h16"/><path d="M10 13h4"/></svg>
- Demandes archivées
- </a>
- </li>
- </ul>
- </nav>
- </div>
- <!-- End Content -->
- <!-- Menu Label -->
- <div class="px-3 py-3 mt-auto border-t border-white/20 dark:border-neutral-700">
- <button type="button" onclick="toggleMenu(1)" class="w-full text-left">
- <span class="text-xs text-white/50 dark:text-neutral-500 font-mono hover:text-white/70 dark:hover:text-neutral-400 transition-colors">menu</span>
- </button>
- <button type="button" onclick="toggleMenu(2)" class="w-full text-left mt-1">
- <span class="text-xs text-white font-mono font-semibold">menu2</span>
- </button>
- </div>
- <!-- End Menu Label -->
- </div>
- </div>
- <!-- End Sidebar -->
- <script>
- function toggleMenu(menuNum) {
- window.location.href = '?menu=' + menuNum;
- }
- // Script pour s'assurer que l'accordéon fonctionne
- (function() {
- function initAccordions() {
- const accordionButtons = document.querySelectorAll('.hs-accordion-toggle');
-
- accordionButtons.forEach(function(button) {
- const accordion = button.closest('.hs-accordion');
- const content = accordion ? accordion.querySelector('.hs-accordion-content') : null;
-
- if (!content) return;
-
- // Vérifier si un gestionnaire d'événements existe déjà
- if (button.dataset.accordionInitialized) return;
- button.dataset.accordionInitialized = 'true';
-
- button.addEventListener('click', function(e) {
- e.preventDefault();
- e.stopPropagation();
-
- const isExpanded = button.getAttribute('aria-expanded') === 'true';
- const newExpanded = !isExpanded;
-
- // Toggle l'état aria
- button.setAttribute('aria-expanded', newExpanded);
-
- // Toggle la classe active sur l'accordéon et le bouton pour les styles Preline UI
- accordion.classList.toggle('active', newExpanded);
- button.classList.toggle('hs-accordion-active', newExpanded);
-
- // Gérer l'affichage du contenu avec animation
- if (newExpanded) {
- // Ouvrir l'accordéon
- content.classList.remove('hidden');
- // Calculer la hauteur réelle
- const height = content.scrollHeight;
- // Définir la hauteur initiale à 0
- content.style.height = '0px';
- // Forcer le reflow
- content.offsetHeight;
- // Animer vers la hauteur réelle
- content.style.height = height + 'px';
- // Nettoyer après l'animation
- setTimeout(function() {
- content.style.height = '';
- }, 300);
- } else {
- // Fermer l'accordéon
- const height = content.scrollHeight;
- content.style.height = height + 'px';
- // Forcer le reflow
- content.offsetHeight;
- // Animer vers 0
- content.style.height = '0px';
- // Cacher après l'animation
- setTimeout(function() {
- content.classList.add('hidden');
- content.style.height = '';
- }, 300);
- }
- });
- });
- }
-
- // Essayer plusieurs fois pour s'assurer que le DOM est prêt
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', function() {
- setTimeout(initAccordions, 100);
- });
- } else {
- setTimeout(initAccordions, 100);
- }
-
- // Réinitialiser après un délai pour capturer les éléments chargés dynamiquement
- setTimeout(initAccordions, 500);
- })();
- </script>
- <!-- Content -->
- <div class="w-full pt-10 px-4 sm:px-6 md:px-8 lg:ps-64">
- <!-- your content goes here ... -->
-
- <table>
- <tbody>
- <tr>
- <td class="size-px whitespace-nowrap">
- <button type="button" class="block" aria-haspopup="dialog" aria-expanded="false" aria-controls="hs-ai-invoice-modal" data-hs-overlay="#hs-ai-invoice-modal">
- <span class="px-6 py-1.5">
- <span class="py-1 px-2 inline-flex justify-center items-center gap-2 rounded-lg border border-gray-200 font-medium bg-white text-gray-700 shadow-2xs align-middle hover:bg-gray-50 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-white dark:focus:ring-offset-gray-800">
- <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
- <path d="M1.92.506a.5.5 0 0 1 .434.14L3 1.293l.646-.647a.5.5 0 0 1 .708 0L5 1.293l.646-.647a.5.5 0 0 1 .708 0L7 1.293l.646-.647a.5.5 0 0 1 .708 0L9 1.293l.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .801.13l.5 1A.5.5 0 0 1 15 2v12a.5.5 0 0 1-.053.224l-.5 1a.5.5 0 0 1-.8.13L13 14.707l-.646.647a.5.5 0 0 1-.708 0L11 14.707l-.646.647a.5.5 0 0 1-.708 0L9 14.707l-.646.647a.5.5 0 0 1-.708 0L7 14.707l-.646.647a.5.5 0 0 1-.708 0L5 14.707l-.646.647a.5.5 0 0 1-.708 0L3 14.707l-.646.647a.5.5 0 0 1-.801-.13l-.5-1A.5.5 0 0 1 1 14V2a.5.5 0 0 1 .053-.224l.5-1a.5.5 0 0 1 .367-.27zm.217 1.338L2 2.118v11.764l.137.274.51-.51a.5.5 0 0 1 .707 0l.646.647.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.509.509.137-.274V2.118l-.137-.274-.51.51a.5.5 0 0 1-.707 0L12 1.707l-.646.647a.5.5 0 0 1-.708 0L10 1.707l-.646.647a.5.5 0 0 1-.708 0L8 1.707l-.646.647a.5.5 0 0 1-.708 0L6 1.707l-.646.647a.5.5 0 0 1-.708 0L4 1.707l-.646.647a.5.5 0 0 1-.708 0l-.509-.51z"/>
- <path d="M3 4.5a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm8-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5z"/>
- </svg>
- View
- </span>
- </span>
- </button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- End Content -->
- <!-- ========== END MAIN CONTENT ========== -->
|