ui: standardize layout, search, filters, guide modal, and navy headers across QMA and PG like HSE employees

This commit is contained in:
Ray1111-aa
2026-10-22 19:40:19 +07:00
parent 70f0ab890f
commit fd9ee9822b
7 changed files with 346 additions and 164 deletions
+28 -30
View File
@@ -5,40 +5,37 @@
@section('content')
<div class="w-full space-y-6">
<!-- Header Judul & Tombol Aksi -->
<!-- Header Judul & Tombol Aksi (Persis Format Standar HSE Employees) -->
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
<div>
<div class="flex items-center space-x-1.5 mb-1">
<span class="text-xs font-bold uppercase tracking-wider text-[#1b5e20]">
MANAJEMEN QMA
MANAJEMEN SISTEM
</span>
<!-- Tombol Info Panduan Halaman -->
<button type="button"
onclick="openGuideModal()"
class="w-4 h-4 rounded-full bg-slate-200/90 hover:bg-slate-300 text-slate-500 hover:text-slate-800 text-[9px] inline-flex items-center justify-center font-bold transition shadow-2xs cursor-pointer focus:outline-none"
title="Panduan Manajemen Unit">
class="w-3.5 h-3.5 rounded-full bg-slate-200/90 hover:bg-slate-300 text-slate-500 hover:text-slate-800 text-[8px] inline-flex items-center justify-center font-bold transition shadow-2xs cursor-pointer focus:outline-none"
title="Panduan Manajemen Posisi Unit">
<i class="fa-solid fa-info"></i>
</button>
</div>
<h2 class="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">
<h2 class="text-3xl sm:text-4xl font-extrabold text-slate-900 tracking-tight">
Posisi Unit
</h2>
<p class="text-xs sm:text-sm text-slate-500 mt-0.5">
Monitoring posisi terkini, tracking pergerakan, dan audit log riwayat lokasi armada LV & Unit Support.
</p>
</div>
<!-- Tombol Aksi Kanan -->
<div class="flex items-center space-x-2.5 w-full sm:w-auto">
<!-- Dropdown Menu Ekspor -->
<div class="relative inline-block" id="exportDropdownContainer">
<div class="flex items-center gap-2.5 sm:gap-3 w-full sm:w-auto">
<!-- Dropdown Menu Ekspor Format it.allrole.web.id -->
<div class="relative inline-block w-full sm:w-auto flex-1 sm:flex-none" id="exportDropdownContainer">
<button type="button"
onclick="toggleExportMenu(event)"
id="btnExportTrigger"
class="w-full sm:w-auto flex items-center justify-center space-x-2 border border-emerald-600/30 text-emerald-900 bg-white hover:bg-emerald-50/50 px-3.5 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer">
<i class="fa-solid fa-file-export text-emerald-700 text-sm"></i>
class="w-full sm:w-auto border border-emerald-600/30 text-emerald-900 bg-white hover:bg-emerald-50/50 px-3 sm:px-4 py-2.5 rounded-xl text-xs font-bold flex items-center justify-center space-x-2 transition shadow-sm cursor-pointer">
<i class="fa-regular fa-file-excel text-emerald-700 text-sm"></i>
<span class="truncate">Ekspor Posisi</span>
<i class="fa-solid fa-chevron-down text-[9px] text-slate-400 ml-1"></i>
<i class="fa-solid fa-chevron-down text-[9px] text-slate-400 ml-0.5 sm:ml-1"></i>
</button>
<div id="exportMenu" style="display: none;" class="absolute right-0 mt-2 w-52 bg-white rounded-xl shadow-[0_8px_30px_rgb(0,0,0,0.12)] border border-slate-100 z-50 overflow-hidden">
<a href="{{ route('qma.unit_management.export_pdf', request()->query()) }}" target="_blank" class="flex items-center px-4 py-3 text-xs text-slate-700 hover:bg-slate-50 hover:text-[#1b5e20] font-bold transition">
@@ -56,7 +53,7 @@
<!-- Tombol Pintas Transfer Alat Berat -->
@canany(['qma.vehicles.create', 'qma.vehicles.edit'])
<a href="{{ route('qma.unit_transfers.create') }}"
class="flex items-center justify-center space-x-2 bg-[#1b5e20] hover:bg-[#144919] text-white px-3.5 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer whitespace-nowrap">
class="flex items-center justify-center space-x-2 bg-[#1b5e20] hover:bg-[#144919] text-white px-3 sm:px-4 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer whitespace-nowrap">
<i class="fa-solid fa-truck-moving text-sm"></i>
<span class="hidden sm:inline">Transfer Alat Berat</span>
<span class="sm:hidden">Transfer</span>
@@ -238,24 +235,25 @@
</div>
@endif
<!-- Tabel Data Monitoring Posisi Unit -->
<div class="bg-white rounded-2xl border border-slate-200/80 shadow-xs overflow-hidden">
<!-- Tabel Data Monitoring Posisi Unit dengan Header Biru Tua Navy (Pada Mobile: Format Kotak Tanpa Border Radius) -->
<div class="bg-white rounded-none sm:rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
<div class="overflow-x-auto">
<table class="w-full text-left border-collapse text-xs">
<thead>
<tr class="bg-slate-50/80 border-b border-slate-200 text-slate-500 uppercase tracking-wider text-[10px] font-bold">
<th class="py-3 px-3.5 text-center w-10">NO</th>
<th class="py-3 px-3 text-center w-14">FOTO</th>
<th class="py-3 px-4">KODE & TIPE UNIT</th>
<th class="py-3 px-4">PLAT / NO SERI</th>
<th class="py-3 px-4 text-center">POSISI SITE</th>
<th class="py-3 px-4">DETAIL LOKASI</th>
<th class="py-3 px-4">UPDATE TERAKHIR</th>
<th class="py-3 px-3.5 text-center">STATUS OPR</th>
<th class="py-3 px-4 text-center w-28">AKSI</th>
<table class="min-w-full text-xs text-left border-collapse">
<!-- Header Tabel Navy Gelap Solid #06213f -->
<thead class="bg-[#06213f] text-white font-bold text-[11px] uppercase tracking-wider">
<tr>
<th class="py-3.5 px-4 text-center w-12">NO</th>
<th class="py-3.5 px-3 text-center w-14">FOTO</th>
<th class="py-3.5 px-4 whitespace-nowrap">KODE & TIPE UNIT</th>
<th class="py-3.5 px-4 whitespace-nowrap">PLAT / NO SERI</th>
<th class="py-3.5 px-4 text-center whitespace-nowrap">POSISI SITE</th>
<th class="py-3.5 px-4 whitespace-nowrap">DETAIL LOKASI</th>
<th class="py-3.5 px-4 whitespace-nowrap">UPDATE TERAKHIR</th>
<th class="py-3.5 px-4 text-center whitespace-nowrap">STATUS OPR</th>
<th class="py-3.5 px-4 text-center whitespace-nowrap w-28">AKSI</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-100 text-slate-700">
<tbody class="divide-y divide-slate-100 text-slate-700 bg-white">
@forelse($units as $idx => $u)
<tr class="hover:bg-slate-50/70 transition">
<!-- No -->