You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

agency.blade.php 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @extends('layouts.main')
  2. @php
  3. $hasNotification = true;
  4. @endphp
  5. @section('content')
  6. <div class="flex flex-col gap-4 bg-white rounded p-10 min-h-screen">
  7. <div class="flex justify-between items-center">
  8. <p class="flex items-center text-xs">
  9. <i class="fa-solid fa-house text-[#BD8736] mr-1"></i>
  10. <span>Dashboard <i class="fa-solid fa-chevron-right"></i> Senarai Agensi</span>
  11. </p>
  12. <div class="relative cursor-pointer">
  13. @if ($hasNotification)
  14. <div class="absolute top-[2px] left-0 w-2 h-2 bg-[#E50A0A] rounded-full"></div>
  15. @endif
  16. <i class="fa-regular fa-bell text-md hover:text-[#BD8736]"></i>
  17. </div>
  18. </div>
  19. <div class="flex" style="gap:10px">
  20. <div class="relative w-fit">
  21. <input type="text" placeholder="Carian"
  22. class="w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500" />
  23. <div class="pointer-events-none absolute text-gray-500 text-xs" style="top: 50%; transform: translateY(-50%); right:10px">
  24. <i class="fas fa-search"></i>
  25. </div>
  26. </div>
  27. <div class="relative w-fit">
  28. <select
  29. class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
  30. <option value="all" selected>Agensi</option>
  31. <option value="pknp">PKNP</option>
  32. <option value="pkpp">PKPP</option>
  33. </select>
  34. </div>
  35. <div class="relative w-fit">
  36. <select
  37. class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
  38. <option value="all" selected>Status Prestasi</option>
  39. <option value="1">Lemah</option>
  40. <option value="2">Sederhana</option>
  41. <option value="3">Baik</option>
  42. </select>
  43. </div>
  44. </div>
  45. <div class="border rounded">
  46. <h5 class="font-semibold m-5">Senarai Agensi</h5>
  47. <div class="overflow-x-auto overflow-hidden rounded-[10px]">
  48. <table class="w-full text-sm text-left text-gray-700 border-collapse">
  49. <thead>
  50. <tr>
  51. <th class="text-xs px-4 py-2">Bil</th>
  52. <th class="text-xs px-4 py-2">S-GLC to Agensi</th>
  53. <th class="text-xs px-4 py-2 text-center">Jumlah Peojek Aktif</th>
  54. <th class="text-xs px-4 py-2 text-center">Status Prestasi</th>
  55. <th class="text-xs px-4 py-2 text-center">Tindakan</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. @foreach ($agencys as $index => $agency)
  60. <tr>
  61. <td class="px-4 py-2">{{ $index + 1 }}</td>
  62. <td class="px-4 py-2">{{ $agency['name'] }}</td>
  63. <td class="px-4 py-2 text-center">{{ $agency['active_count'] }}
  64. </td>
  65. <td class="px-4 py-2 text-center">
  66. @switch($agency['status'])
  67. @case(1)
  68. <div class="px-3 py-1 text-xs rounded-lg border inline-block"
  69. style="color:#CE4C4A; background-color:#FFF5F4; border-color:#ef4444;width:100%">
  70. Lemah
  71. </div>
  72. @break
  73. @case(2)
  74. <div class="px-3 py-1 text-xs rounded-lg border inline-block"
  75. style="color:#E5A20A; background-color:#FFFBF4; border-color:#E5A20A;width:100%">
  76. Sederhana
  77. </div>
  78. @break
  79. @case(3)
  80. <div class="px-3 py-1 text-xs rounded-lg border inline-block"
  81. style="color:#49B452; background-color:#F7FFF7; border-color:#49B452; width:100%">
  82. Baik
  83. </div>
  84. @break
  85. @default
  86. @endswitch
  87. </td>
  88. <td class="px-4 py-2 text-center">
  89. <a href="#" class="text-blue-800 underline">Lihat Projek</a>
  90. </td>
  91. </tr>
  92. @endforeach
  93. </tbody>
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. @endsection
  99. @section('scripts')
  100. @endsection