menu.php 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  1. <!-- ========== MAIN CONTENT ========== -->
  2. <!-- Breadcrumb -->
  3. <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-neutral-800 dark:border-neutral-700">
  4. <div class="flex items-center py-2">
  5. <!-- Navigation Toggle -->
  6. <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">
  7. <span class="sr-only">Toggle Navigation</span>
  8. <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>
  9. </button>
  10. <!-- End Navigation Toggle -->
  11. <!-- Breadcrumb -->
  12. <ol class="ms-3 flex items-center whitespace-nowrap">
  13. <li class="flex items-center text-sm text-gray-800 dark:text-neutral-400">
  14. SIPA Automobiles
  15. <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">
  16. <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"/>
  17. </svg>
  18. </li>
  19. <li class="text-sm font-semibold text-gray-800 truncate dark:text-neutral-400" aria-current="page">
  20. SIPA - Dashboard
  21. </li>
  22. </ol>
  23. <!-- End Breadcrumb -->
  24. </div>
  25. </div>
  26. <!-- End Breadcrumb -->
  27. <!-- Sidebar -->
  28. <div id="hs-application-sidebar" class="hs-overlay [--auto-close:lg]
  29. hs-overlay-open:translate-x-0
  30. -translate-x-full transition-all duration-300 transform
  31. w-64 h-full
  32. hidden
  33. fixed inset-y-0 start-0 z-60
  34. bg-white border-e border-gray-200
  35. lg:block lg:translate-x-0 lg:end-auto lg:bottom-0
  36. dark:bg-neutral-800 dark:border-neutral-700" role="dialog" tabindex="-1" aria-label="Sidebar">
  37. <div class="relative flex flex-col h-full max-h-full">
  38. <div class="px-6 pt-4">
  39. <!-- Logo SIPA -->
  40. <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">
  41. <img src="assets/images/logo-sipa-horizontal-2018-01.png" alt="Logo SIPA Automobiles" class="h-12 w-auto" onerror="this.style.display='none'; this.nextElementSibling.style.display='block';">
  42. <span class="text-xl font-bold text-gray-800 dark:text-white" style="display:none;">SIPA</span>
  43. </a>
  44. <!-- End Logo -->
  45. </div>
  46. <!-- Content -->
  47. <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">
  48. <nav class="hs-accordion-group p-3 w-full flex flex-col flex-wrap" data-hs-accordion-always-open>
  49. <ul class="flex flex-col space-y-1" data-hs-scrollspy="#scrollspy">
  50. <!-- Accueil / Dashboard -->
  51. <li>
  52. <a class="flex flex-col gap-y-1 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200 hs-scrollspy-active:bg-gray-100 dark:hs-scrollspy-active:bg-neutral-700 active" href="#dashboard">
  53. <div class="flex items-center gap-x-3.5">
  54. <svg class="shrink-0 size-5" 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">
  55. <path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
  56. <polyline points="9 22 9 12 15 12 15 22"/>
  57. </svg>
  58. <span>Accueil</span>
  59. </div>
  60. <span class="text-xs text-gray-600 dark:text-neutral-400 ml-9">Dashboard</span>
  61. </a>
  62. </li>
  63. <!-- Mes dashboards (Accordion) -->
  64. <li class="hs-accordion" id="dashboards-accordion">
  65. <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-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" aria-expanded="false" aria-controls="dashboards-accordion-child">
  66. <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">
  67. <rect width="18" height="18" x="3" y="3" rx="2" ry="2"/>
  68. <line x1="3" y1="9" x2="21" y2="9"/>
  69. <line x1="9" y1="21" x2="9" y2="9"/>
  70. </svg>
  71. Mes dashboards
  72. <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">
  73. <path d="m18 15-6-6-6 6"/>
  74. </svg>
  75. <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">
  76. <path d="m6 9 6 6 6-6"/>
  77. </svg>
  78. </button>
  79. <div id="dashboards-accordion-child" class="hs-accordion-content w-full overflow-hidden transition-[height] duration-300 hidden" role="region">
  80. <ul class="pt-1 space-y-1">
  81. <li>
  82. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" href="directeur.php" target="_parent">
  83. <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">
  84. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  85. <circle cx="9" cy="7" r="4"/>
  86. <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>
  87. <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
  88. </svg>
  89. Dashboard Directeur
  90. </a>
  91. </li>
  92. <li>
  93. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" href="it.php" target="_parent">
  94. <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">
  95. <rect width="18" height="18" x="3" y="3" rx="2"/>
  96. <path d="M12 8v8"/>
  97. <path d="m8 12 4-4 4 4"/>
  98. </svg>
  99. Dashboard IT
  100. </a>
  101. </li>
  102. <li>
  103. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" href="rh.php" target="_parent">
  104. <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">
  105. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  106. <circle cx="9" cy="7" r="4"/>
  107. <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>
  108. <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
  109. </svg>
  110. Dashboard RH
  111. </a>
  112. </li>
  113. </ul>
  114. </div>
  115. </li>
  116. <!-- Suivi IT (Accordion) -->
  117. <li class="hs-accordion" id="suivi-it-accordion">
  118. <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-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" aria-expanded="false" aria-controls="suivi-it-accordion-child">
  119. <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">
  120. <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
  121. <path d="M14 2v6h6"/>
  122. <path d="M16 13H8"/>
  123. <path d="M16 17H8"/>
  124. <path d="M10 9H8"/>
  125. </svg>
  126. Suivi Demande
  127. <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">
  128. <path d="m18 15-6-6-6 6"/>
  129. </svg>
  130. <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">
  131. <path d="m6 9 6 6 6-6"/>
  132. </svg>
  133. </button>
  134. <div id="suivi-it-accordion-child" class="hs-accordion-content w-full overflow-hidden transition-[height] duration-300 hidden" role="region">
  135. <ul class="pt-1 space-y-1">
  136. <li>
  137. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" href="demande-rh.php" target="_parent">
  138. <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">
  139. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  140. <circle cx="9" cy="7" r="4"/>
  141. <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>
  142. <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
  143. </svg>
  144. Détail demande RH
  145. </a>
  146. </li>
  147. <li>
  148. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200" href="demande-it.php" target="_parent">
  149. <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">
  150. <rect width="18" height="18" x="3" y="3" rx="2"/>
  151. <path d="M12 8v8"/>
  152. <path d="m8 12 4-4 4 4"/>
  153. </svg>
  154. Détail demande IT
  155. </a>
  156. </li>
  157. </ul>
  158. </div>
  159. </li>
  160. <!-- Demande d'Intégration -->
  161. <li>
  162. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200 hs-scrollspy-active:bg-gray-100 dark:hs-scrollspy-active:bg-neutral-700" href="demande-integration.php" target="_parent">
  163. <svg class="shrink-0 size-5" 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">
  164. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  165. <circle cx="9" cy="7" r="4"/>
  166. <line x1="19" x2="19" y1="8" y2="14"/>
  167. <line x1="22" x2="16" y1="11" y2="11"/>
  168. </svg>
  169. Demande d'Intégration
  170. </a>
  171. </li>
  172. <!-- Nouvelle demande d'avenant -->
  173. <li>
  174. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200 hs-scrollspy-active:bg-gray-100 dark:hs-scrollspy-active:bg-neutral-700" href="#nouvelle-demande-avenant">
  175. <svg class="shrink-0 size-5" 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">
  176. <path d="M4 20h16"/>
  177. <path d="M6 16l6-6 6 6"/>
  178. <path d="M12 4v12"/>
  179. </svg>
  180. Nouvelle demande d'avenant
  181. </a>
  182. </li>
  183. <!-- Mes demandes -->
  184. <li>
  185. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200 hs-scrollspy-active:bg-gray-100 dark:hs-scrollspy-active:bg-neutral-700" href="#mes-demandes">
  186. <svg class="shrink-0 size-5" 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">
  187. <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
  188. <path d="M14 2v6h6"/>
  189. <path d="M16 13H8"/>
  190. <path d="M16 17H8"/>
  191. <path d="M10 9H8"/>
  192. </svg>
  193. Mes demandes
  194. </a>
  195. </li>
  196. <!-- Demandes archivées -->
  197. <li>
  198. <a class="flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:bg-neutral-800 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:text-neutral-200 hs-scrollspy-active:bg-gray-100 dark:hs-scrollspy-active:bg-neutral-700" href="#demandes-archivees">
  199. <svg class="shrink-0 size-5" 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">
  200. <rect width="20" height="5" x="2" y="4" rx="2"/>
  201. <path d="M4 9v9.5A2.5 2.5 0 0 0 6.5 21h11a2.5 2.5 0 0 0 2.5-2.5V9"/>
  202. <path d="M4 9h16"/>
  203. <path d="M10 13h4"/>
  204. </svg>
  205. Demandes archivées
  206. </a>
  207. </li>
  208. </ul>
  209. </nav>
  210. </div>
  211. <!-- End Content -->
  212. <!-- User Email -->
  213. <div class="px-3 py-3 mt-auto border-t border-gray-200 dark:border-neutral-700">
  214. <p class="text-xs text-gray-600 dark:text-neutral-400 truncate px-2 py-1">
  215. email@example.com
  216. </p>
  217. </div>
  218. <!-- End User Email -->
  219. </div>
  220. </div>
  221. <!-- End Sidebar -->
  222. <script>
  223. // Script pour gérer le dropdown de notifications
  224. document.addEventListener('DOMContentLoaded', function() {
  225. const notificationButton = document.getElementById('hs-notification-dropdown');
  226. const notificationMenu = document.getElementById('notification-dropdown-menu');
  227. if (notificationButton && notificationMenu) {
  228. // Calculer la position du dropdown par rapport à la cloche
  229. function updateDropdownPosition() {
  230. const buttonRect = notificationButton.getBoundingClientRect();
  231. const menuWidth = 400; // Largeur du menu
  232. const menuHeight = notificationMenu.offsetHeight;
  233. // Positionner le dropdown à droite de la cloche
  234. notificationMenu.style.top = (buttonRect.bottom + 8) + 'px';
  235. notificationMenu.style.right = (window.innerWidth - buttonRect.right) + 'px';
  236. notificationMenu.style.maxWidth = '400px';
  237. }
  238. notificationButton.addEventListener('click', function(e) {
  239. e.stopPropagation();
  240. const isExpanded = notificationButton.getAttribute('aria-expanded') === 'true';
  241. const newExpanded = !isExpanded;
  242. notificationButton.setAttribute('aria-expanded', newExpanded);
  243. if (newExpanded) {
  244. updateDropdownPosition();
  245. notificationMenu.classList.remove('opacity-0', 'invisible', 'translate-y-2');
  246. notificationMenu.classList.add('opacity-100', 'visible', 'translate-y-0');
  247. } else {
  248. notificationMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
  249. notificationMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
  250. }
  251. });
  252. // Fermer le dropdown en cliquant en dehors
  253. document.addEventListener('click', function(e) {
  254. if (!notificationButton.contains(e.target) && !notificationMenu.contains(e.target)) {
  255. notificationMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
  256. notificationMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
  257. notificationButton.setAttribute('aria-expanded', 'false');
  258. }
  259. });
  260. // Mettre à jour la position lors du redimensionnement
  261. window.addEventListener('resize', function() {
  262. if (notificationButton.getAttribute('aria-expanded') === 'true') {
  263. updateDropdownPosition();
  264. }
  265. });
  266. }
  267. });
  268. // Script pour gérer le dropdown utilisateur
  269. document.addEventListener('DOMContentLoaded', function() {
  270. const userButton = document.getElementById('hs-user-dropdown');
  271. const userMenu = document.getElementById('user-dropdown-menu');
  272. if (userButton && userMenu) {
  273. // Calculer la position du dropdown par rapport au bouton utilisateur
  274. function updateUserDropdownPosition() {
  275. const buttonRect = userButton.getBoundingClientRect();
  276. const menuWidth = 280; // Largeur du menu
  277. // Positionner le dropdown à droite du bouton utilisateur
  278. userMenu.style.top = (buttonRect.bottom + 8) + 'px';
  279. userMenu.style.right = (window.innerWidth - buttonRect.right) + 'px';
  280. userMenu.style.maxWidth = '280px';
  281. }
  282. userButton.addEventListener('click', function(e) {
  283. e.stopPropagation();
  284. const isExpanded = userButton.getAttribute('aria-expanded') === 'true';
  285. const newExpanded = !isExpanded;
  286. userButton.setAttribute('aria-expanded', newExpanded);
  287. if (newExpanded) {
  288. updateUserDropdownPosition();
  289. userMenu.classList.remove('opacity-0', 'invisible', 'translate-y-2');
  290. userMenu.classList.add('opacity-100', 'visible', 'translate-y-0');
  291. } else {
  292. userMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
  293. userMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
  294. }
  295. });
  296. // Fermer le dropdown en cliquant en dehors
  297. document.addEventListener('click', function(e) {
  298. if (!userButton.contains(e.target) && !userMenu.contains(e.target)) {
  299. userMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
  300. userMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
  301. userButton.setAttribute('aria-expanded', 'false');
  302. }
  303. });
  304. // Mettre à jour la position lors du redimensionnement
  305. window.addEventListener('resize', function() {
  306. if (userButton.getAttribute('aria-expanded') === 'true') {
  307. updateUserDropdownPosition();
  308. }
  309. });
  310. }
  311. });
  312. // Script pour s'assurer que l'accordéon fonctionne
  313. (function() {
  314. function initAccordions() {
  315. const accordionButtons = document.querySelectorAll('.hs-accordion-toggle');
  316. accordionButtons.forEach(function(button) {
  317. const accordion = button.closest('.hs-accordion');
  318. const content = accordion ? accordion.querySelector('.hs-accordion-content') : null;
  319. if (!content) return;
  320. // Vérifier si un gestionnaire d'événements existe déjà
  321. if (button.dataset.accordionInitialized) return;
  322. button.dataset.accordionInitialized = 'true';
  323. button.addEventListener('click', function(e) {
  324. e.preventDefault();
  325. e.stopPropagation();
  326. const isExpanded = button.getAttribute('aria-expanded') === 'true';
  327. const newExpanded = !isExpanded;
  328. // Toggle l'état aria
  329. button.setAttribute('aria-expanded', newExpanded);
  330. // Toggle la classe active sur l'accordéon et le bouton pour les styles Preline UI
  331. accordion.classList.toggle('active', newExpanded);
  332. button.classList.toggle('hs-accordion-active', newExpanded);
  333. // Gérer l'affichage du contenu avec animation
  334. if (newExpanded) {
  335. // Ouvrir l'accordéon
  336. content.classList.remove('hidden');
  337. // Calculer la hauteur réelle
  338. const height = content.scrollHeight;
  339. // Définir la hauteur initiale à 0
  340. content.style.height = '0px';
  341. // Forcer le reflow
  342. content.offsetHeight;
  343. // Animer vers la hauteur réelle
  344. content.style.height = height + 'px';
  345. // Nettoyer après l'animation
  346. setTimeout(function() {
  347. content.style.height = '';
  348. }, 300);
  349. } else {
  350. // Fermer l'accordéon
  351. const height = content.scrollHeight;
  352. content.style.height = height + 'px';
  353. // Forcer le reflow
  354. content.offsetHeight;
  355. // Animer vers 0
  356. content.style.height = '0px';
  357. // Cacher après l'animation
  358. setTimeout(function() {
  359. content.classList.add('hidden');
  360. content.style.height = '';
  361. }, 300);
  362. }
  363. });
  364. });
  365. }
  366. // Essayer plusieurs fois pour s'assurer que le DOM est prêt
  367. if (document.readyState === 'loading') {
  368. document.addEventListener('DOMContentLoaded', function() {
  369. setTimeout(initAccordions, 100);
  370. });
  371. } else {
  372. setTimeout(initAccordions, 100);
  373. }
  374. // Réinitialiser après un délai pour capturer les éléments chargés dynamiquement
  375. setTimeout(initAccordions, 500);
  376. })();
  377. </script>
  378. <!-- Top Header -->
  379. <header class="fixed top-0 left-0 right-0 lg:left-64 z-50 bg-white border-b border-gray-200 dark:bg-neutral-800 dark:border-neutral-700">
  380. <div class="flex items-center justify-between w-full px-4 sm:px-6 lg:px-8 py-2">
  381. <!-- Boutons d'action -->
  382. <div class="flex items-center gap-2">
  383. <!-- Gérer les utilisateurs -->
  384. <a href="gestion-utilisateurs.php" class="inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 hover:text-gray-900 focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:bg-neutral-800 dark:text-neutral-200 dark:border-neutral-700 dark:hover:bg-neutral-700 dark:focus:ring-neutral-600 transition-colors">
  385. <svg class="w-4 h-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">
  386. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  387. <circle cx="9" cy="7" r="4"/>
  388. <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>
  389. <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
  390. </svg>
  391. Gérer les utilisateurs
  392. </a>
  393. </div>
  394. <!-- Icônes de droite -->
  395. <div class="flex items-center gap-2">
  396. <!-- Notifications Dropdown -->
  397. <div class="hs-dropdown relative inline-flex">
  398. <button id="hs-notification-dropdown" type="button" class="hs-dropdown-toggle relative inline-flex items-center justify-center w-9 h-9 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:ring-neutral-600 transition-colors" aria-expanded="false" aria-label="Notifications">
  399. <svg class="w-5 h-5 transition-transform hover:scale-110" 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">
  400. <path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"></path>
  401. <path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"></path>
  402. </svg>
  403. <!-- Notification Badge -->
  404. <span class="absolute -top-0.5 -right-0.5 flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-red-500 rounded-full border-2 border-white dark:border-neutral-800">
  405. <span class="relative z-10">2</span>
  406. </span>
  407. <!-- End Notification Badge -->
  408. </button>
  409. <div id="notification-dropdown-menu" class="fixed transition-all duration-200 opacity-0 invisible min-w-[400px] max-w-[400px] bg-white border border-gray-200 rounded-lg shadow-xl dark:bg-neutral-800 dark:border-neutral-700 z-[60] transform translate-y-2" role="menu" aria-labelledby="hs-notification-dropdown">
  410. <!-- Header -->
  411. <div class="flex items-center justify-between px-4 py-3 border-b border-gray-200 dark:border-neutral-700">
  412. <h3 class="text-sm font-semibold text-gray-800 dark:text-white">Notifications</h3>
  413. <button type="button" class="inline-flex items-center p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-colors dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-700" aria-label="Paramètres notifications">
  414. <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">
  415. <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path>
  416. <circle cx="12" cy="12" r="3"></circle>
  417. </svg>
  418. </button>
  419. </div>
  420. <!-- End Header -->
  421. <!-- Notifications List -->
  422. <div class="max-h-[500px] overflow-y-auto">
  423. <ul class="divide-y divide-gray-200 dark:divide-neutral-700">
  424. <!-- Notification Item 1 - Unread -->
  425. <li class="relative group">
  426. <div class="flex items-start p-4 hover:bg-gray-50 dark:hover:bg-neutral-700/50 bg-blue-50/30 dark:bg-blue-900/10">
  427. <!-- Content -->
  428. <div class="flex-1 min-w-0 pr-2">
  429. <p class="text-xs text-gray-500 dark:text-neutral-400 mb-1.5">
  430. 2 heures
  431. </p>
  432. <p class="text-sm font-semibold text-gray-800 dark:text-white mb-1">
  433. Eilis Warner
  434. </p>
  435. <p class="text-sm text-gray-600 dark:text-neutral-400 leading-relaxed">
  436. a changé un problème de 'En cours' à 'Révision'
  437. </p>
  438. </div>
  439. <!-- End Content -->
  440. <!-- Checkbox -->
  441. <div class="shrink-0 pt-1">
  442. <input type="checkbox" class="shrink-0 size-4 border-gray-300 rounded text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 dark:bg-neutral-700 dark:border-neutral-600 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-blue-500 cursor-pointer" id="notification-1">
  443. </div>
  444. <!-- End Checkbox -->
  445. </div>
  446. </li>
  447. <!-- End Notification Item 1 -->
  448. <!-- Notification Item 2 -->
  449. <li class="relative group">
  450. <div class="flex items-start p-4 hover:bg-gray-50 dark:hover:bg-neutral-700/50">
  451. <!-- Content -->
  452. <div class="flex-1 min-w-0 pr-2">
  453. <p class="text-xs text-gray-500 dark:text-neutral-400 mb-1.5">
  454. 3 jours
  455. </p>
  456. <p class="text-sm font-semibold text-gray-800 dark:text-white mb-1">
  457. Clara Becker
  458. </p>
  459. <p class="text-sm text-gray-600 dark:text-neutral-400 leading-relaxed">
  460. vous a mentionné dans un commentaire
  461. </p>
  462. </div>
  463. <!-- End Content -->
  464. <!-- Checkbox -->
  465. <div class="shrink-0 pt-1">
  466. <input type="checkbox" class="shrink-0 size-4 border-gray-300 rounded text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 dark:bg-neutral-700 dark:border-neutral-600 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-blue-500 cursor-pointer" id="notification-2" checked>
  467. </div>
  468. <!-- End Checkbox -->
  469. </div>
  470. </li>
  471. <!-- End Notification Item 2 -->
  472. <!-- Notification Item 3 -->
  473. <li class="relative group">
  474. <div class="flex items-start p-4 hover:bg-gray-50 dark:hover:bg-neutral-700/50">
  475. <!-- Content -->
  476. <div class="flex-1 min-w-0 pr-2">
  477. <p class="text-xs text-gray-500 dark:text-neutral-400 mb-1.5">
  478. 5 Jan 2023
  479. </p>
  480. <p class="text-sm font-semibold text-gray-800 dark:text-white mb-1">
  481. Nouvelle mise à jour Preline
  482. </p>
  483. <p class="text-sm text-gray-600 dark:text-neutral-400 leading-relaxed">
  484. Ajoutez-vous à notre nouvelle page "Emploi". Faites savoir aux visiteurs que vous êtes ouvert au travail en freelance ou à temps plein.
  485. </p>
  486. </div>
  487. <!-- End Content -->
  488. <!-- Checkbox -->
  489. <div class="shrink-0 pt-1">
  490. <input type="checkbox" class="shrink-0 size-4 border-gray-300 rounded text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 dark:bg-neutral-700 dark:border-neutral-600 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-blue-500 cursor-pointer" id="notification-3" checked>
  491. </div>
  492. <!-- End Checkbox -->
  493. </div>
  494. </li>
  495. <!-- End Notification Item 3 -->
  496. </ul>
  497. </div>
  498. <!-- End Notifications List -->
  499. <!-- Footer -->
  500. <div class="px-4 py-3 border-t border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900/50">
  501. <button type="button" class="w-full inline-flex items-center justify-center gap-2 text-sm font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100 rounded-lg py-2 px-3 transition-colors focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600">
  502. <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">
  503. <path d="M18 6 7 17l-5-5"></path>
  504. <path d="m22 10-7.5 7.5L13 16"></path>
  505. </svg>
  506. Tout marquer comme lu
  507. </button>
  508. </div>
  509. <!-- End Footer -->
  510. </div>
  511. </div>
  512. <!-- End Notifications Dropdown -->
  513. <!-- User Profile Dropdown -->
  514. <div class="relative ml-2">
  515. <button id="hs-user-dropdown" type="button" class="relative flex items-center focus:outline-hidden focus:ring-2 focus:ring-gray-200 rounded-lg dark:focus:ring-neutral-600 transition-colors hover:bg-gray-100 dark:hover:bg-neutral-700 p-1" aria-label="Menu utilisateur" aria-haspopup="true" aria-expanded="false">
  516. <div class="relative">
  517. <img class="w-9 h-9 rounded-full object-cover ring-2 ring-gray-200 dark:ring-neutral-700" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80" alt="Photo de profil" onerror="this.src='data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%222%22%3E%3Cpath d=%22M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%2212%22 cy=%227%22 r=%224%22/%3E%3C/svg%3E'; this.className='w-9 h-9 rounded-full bg-gray-200 dark:bg-neutral-700 p-1.5'">
  518. <!-- Indicateur de connexion discret -->
  519. <span class="absolute bottom-0 right-0 flex items-center justify-center w-3 h-3 bg-green-500 border-2 border-white rounded-full dark:border-neutral-800">
  520. <span class="relative z-10"></span>
  521. </span>
  522. </div>
  523. </button>
  524. <div id="user-dropdown-menu" class="fixed transition-all duration-200 opacity-0 invisible min-w-[280px] max-w-[280px] bg-white border border-gray-200 rounded-lg shadow-xl dark:bg-neutral-800 dark:border-neutral-700 z-[60] transform translate-y-2" role="menu" aria-labelledby="hs-user-dropdown">
  525. <!-- Header -->
  526. <div class="flex items-center gap-3 px-4 py-3 border-b border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900/50">
  527. <div class="relative shrink-0">
  528. <img class="w-12 h-12 rounded-full object-cover ring-2 ring-gray-200 dark:ring-neutral-700" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80" alt="Photo de profil" onerror="this.src='data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%222%22%3E%3Cpath d=%22M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%2212%22 cy=%227%22 r=%224%22/%3E%3C/svg%3E'; this.className='w-12 h-12 rounded-full bg-gray-200 dark:bg-neutral-700 p-1.5'">
  529. <span class="absolute bottom-0 right-0 flex items-center justify-center w-3.5 h-3.5 bg-green-500 border-2 border-white rounded-full dark:border-neutral-800">
  530. <span class="relative z-10"></span>
  531. </span>
  532. </div>
  533. <div class="flex-1 min-w-0">
  534. <p class="text-sm font-semibold text-gray-800 dark:text-white truncate">
  535. Prénom Nom
  536. </p>
  537. <p class="text-xs text-gray-500 dark:text-neutral-400 truncate mt-0.5">
  538. email@example.com
  539. </p>
  540. </div>
  541. </div>
  542. <!-- End Header -->
  543. <!-- User Info List -->
  544. <div class="py-2">
  545. <ul class="divide-y divide-gray-200 dark:divide-neutral-700">
  546. <!-- Email -->
  547. <li class="px-4 py-2.5 hover:bg-gray-50 dark:hover:bg-neutral-700/50">
  548. <div class="flex items-center gap-3">
  549. <svg class="shrink-0 size-4 text-gray-400 dark:text-neutral-500" 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">
  550. <rect width="20" height="16" x="2" y="4" rx="2"></rect>
  551. <path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path>
  552. </svg>
  553. <div class="flex-1 min-w-0">
  554. <p class="text-xs text-gray-500 dark:text-neutral-400">Email</p>
  555. <p class="text-sm font-medium text-gray-800 dark:text-white truncate">email@example.com</p>
  556. </div>
  557. </div>
  558. </li>
  559. </ul>
  560. </div>
  561. <!-- End User Info List -->
  562. </div>
  563. </div>
  564. <!-- End User Profile Dropdown -->
  565. </div>
  566. </div>
  567. </header>
  568. <!-- End Top Header -->
  569. <?php if (!isset($skip_default_content)): ?>
  570. <!-- Content -->
  571. <div class="pt-14 lg:pt-20 lg:ps-64">
  572. <div class="min-h-300 p-4 md:p-8">
  573. <!-- your content goes here ... -->
  574. <!-- Content -->
  575. <div id="scrollspy" class="space-y-10 md:space-y-16">
  576. <div id="dashboard" class="min-h-100 scroll-mt-24">
  577. <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Dashboard</h2>
  578. </div>
  579. <div id="nouvelle-demande-avenant" class="min-h-100 scroll-mt-24">
  580. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">Nouvelle demande d'avenant</h2>
  581. <p class="text-sm text-gray-600 dark:text-neutral-400 mb-8">Sélectionnez le type de demande d'avenant que vous souhaitez créer</p>
  582. <!-- Grid des liens avenant -->
  583. <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4 md:gap-6">
  584. <!-- Card: Demande d'avenant principale -->
  585. <a class="group flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl hover:shadow-md focus:outline-hidden focus:shadow-md transition dark:bg-neutral-900 dark:border-neutral-800" href="demande-avenant.php">
  586. <div class="p-6 md:p-7">
  587. <div class="flex gap-x-5">
  588. <svg class="mt-1 shrink-0 size-6 text-[#21B6BA] dark:text-[#21B6BA]" 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">
  589. <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
  590. <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
  591. </svg>
  592. <div class="grow">
  593. <h3 class="group-hover:text-[#21B6BA] font-semibold text-gray-800 dark:group-hover:text-[#21B6BA] dark:text-neutral-200">
  594. Demande d'avenant
  595. </h3>
  596. <p class="text-sm text-gray-500 dark:text-neutral-500 mt-1">
  597. Créer une nouvelle demande d'avenant au contrat
  598. </p>
  599. </div>
  600. </div>
  601. </div>
  602. </a>
  603. <!-- End Card -->
  604. <!-- Card: Demande d'avenant 2 -->
  605. <a class="group flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl hover:shadow-md focus:outline-hidden focus:shadow-md transition dark:bg-neutral-900 dark:border-neutral-800" href="demande-avenant2.php">
  606. <div class="p-6 md:p-7">
  607. <div class="flex gap-x-5">
  608. <svg class="mt-1 shrink-0 size-6 text-[#21B6BA] dark:text-[#21B6BA]" 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">
  609. <path d="M4 20h16"/>
  610. <path d="M6 16l6-6 6 6"/>
  611. <path d="M12 4v12"/>
  612. </svg>
  613. <div class="grow">
  614. <h3 class="group-hover:text-[#21B6BA] font-semibold text-gray-800 dark:group-hover:text-[#21B6BA] dark:text-neutral-200">
  615. Demande d'avenant (Formulaire 2)
  616. </h3>
  617. <p class="text-sm text-gray-500 dark:text-neutral-500 mt-1">
  618. Formulaire alternatif pour créer une demande d'avenant
  619. </p>
  620. </div>
  621. </div>
  622. </div>
  623. </a>
  624. <!-- End Card -->
  625. <!-- Card: Demande RH Avenant -->
  626. <a class="group flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl hover:shadow-md focus:outline-hidden focus:shadow-md transition dark:bg-neutral-900 dark:border-neutral-800" href="demande-rh-avenant.php">
  627. <div class="p-6 md:p-7">
  628. <div class="flex gap-x-5">
  629. <svg class="mt-1 shrink-0 size-6 text-[#21B6BA] dark:text-[#21B6BA]" 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">
  630. <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
  631. <circle cx="9" cy="7" r="4"/>
  632. <line x1="19" x2="19" y1="8" y2="14"/>
  633. <line x1="22" x2="16" y1="11" y2="11"/>
  634. </svg>
  635. <div class="grow">
  636. <h3 class="group-hover:text-[#21B6BA] font-semibold text-gray-800 dark:group-hover:text-[#21B6BA] dark:text-neutral-200">
  637. Demande RH Avenant
  638. </h3>
  639. <p class="text-sm text-gray-500 dark:text-neutral-500 mt-1">
  640. Créer une demande d'avenant pour les ressources humaines
  641. </p>
  642. </div>
  643. </div>
  644. </div>
  645. </a>
  646. <!-- End Card -->
  647. <!-- Card: Demande IT Avenant -->
  648. <a class="group flex flex-col bg-white border border-gray-200 shadow-2xs rounded-xl hover:shadow-md focus:outline-hidden focus:shadow-md transition dark:bg-neutral-900 dark:border-neutral-800" href="demande-it-avenant.php">
  649. <div class="p-6 md:p-7">
  650. <div class="flex gap-x-5">
  651. <svg class="mt-1 shrink-0 size-6 text-[#21B6BA] dark:text-[#21B6BA]" 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">
  652. <rect x="2" y="3" width="20" height="14" rx="2" ry="2"/>
  653. <line x1="8" y1="21" x2="16" y2="21"/>
  654. <line x1="12" y1="17" x2="12" y2="21"/>
  655. </svg>
  656. <div class="grow">
  657. <h3 class="group-hover:text-[#21B6BA] font-semibold text-gray-800 dark:group-hover:text-[#21B6BA] dark:text-neutral-200">
  658. Demande IT Avenant
  659. </h3>
  660. <p class="text-sm text-gray-500 dark:text-neutral-500 mt-1">
  661. Créer une demande d'avenant pour les ressources informatiques
  662. </p>
  663. </div>
  664. </div>
  665. </div>
  666. </a>
  667. <!-- End Card -->
  668. </div>
  669. <!-- End Grid -->
  670. </div>
  671. <div id="mes-demandes" class="min-h-100 scroll-mt-24">
  672. <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Mes demandes</h2>
  673. </div>
  674. <div id="demandes-archivees" class="min-h-100 scroll-mt-24">
  675. <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Demandes archivées</h2>
  676. </div>
  677. </div>
  678. <!-- End Content -->
  679. </div>
  680. </div>
  681. <!-- End Content -->
  682. <?php endif; ?>
  683. <!-- ========== END MAIN CONTENT ========== -->