2026-10-12 23:47:41 +07:00
@ extends ( 'layouts.app' )
2026-10-24 14:37:46 +07:00
@ section ( 'title' , 'Heavy Equipment - Admin QMA | PT Kerinci Merangin Hidro' )
2026-10-12 23:47:41 +07:00
@ section ( 'content' )
2026-10-14 01:38:48 +07:00
< div class = "w-full space-y-6" >
2026-10-12 23:47:41 +07:00
<!-- Header Judul & Tombol Aksi -->
< div class = "flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4" >
< div >
2026-10-14 01:38:48 +07:00
< div class = "flex items-center space-x-1.5 mb-1" >
< span class = "text-xs font-bold uppercase tracking-wider text-[#1b5e20]" >
MANAJEMEN SISTEM
2026-10-12 23:47:41 +07:00
</ span >
2026-10-14 01:38:48 +07:00
<!-- Tombol Info Panduan Halaman Sejajar Kicker -->
< button type = "button"
onclick = "openGuideModal()"
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"
2026-10-24 14:37:46 +07:00
title = "Panduan Halaman Heavy Equipment" >
2026-10-14 01:38:48 +07:00
< i class = "fa-solid fa-info" ></ i >
</ button >
2026-10-12 23:47:41 +07:00
</ div >
2026-10-14 01:38:48 +07:00
< h2 class = "text-3xl sm:text-4xl font-extrabold text-slate-900 tracking-tight" >
2026-10-24 14:37:46 +07:00
Heavy Equipment
2026-10-14 01:38:48 +07:00
</ h2 >
2026-10-12 23:47:41 +07:00
</ div >
<!-- Tombol Aksi Kanan -->
2026-10-15 13:53:52 +07:00
< div class = "grid grid-cols-2 gap-2.5 w-full sm:flex sm:items-center sm:gap-3 sm:w-auto" >
2026-10-16 11:02:28 +07:00
<!-- Dropdown Menu Ekspor Format it . allrole . web . id -->
< div class = "relative inline-block w-full sm:w-auto" id = "exportSupportDropdownContainer" >
< button type = "button"
onclick = "toggleSupportExportMenu(event)"
id = "btnSupportExportTrigger"
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 sm:px-4 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer" >
< i class = "fa-regular fa-file-excel text-emerald-700 text-sm" ></ i >
< span class = "truncate" > Ekspor Data </ span >
< i class = "fa-solid fa-chevron-down text-[9px] text-slate-400 ml-1" ></ i >
</ button >
< div id = "exportMenuSupport" 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.vehicles.support.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" >
< i class = "fa-regular fa-file-pdf text-rose-600 text-sm mr-2.5" ></ i >
< span > Format PDF ( Cetak ) </ span >
</ a >
< div class = "h-px bg-slate-100 mx-2" ></ div >
< a href = "{{ route('qma.vehicles.support.export_excel', request()->query()) }}" class = "flex items-center px-4 py-3 text-xs text-emerald-700 hover:bg-emerald-50 font-bold transition" >
< i class = "fa-regular fa-file-excel text-emerald-600 text-sm mr-2.5" ></ i >
< span > Format Excel ( . xlsx ) </ span >
</ a >
</ div >
</ div >
2026-10-12 23:47:41 +07:00
2026-10-15 15:03:24 +07:00
@ can ( 'qma.vehicles.create' )
2026-10-12 23:47:41 +07:00
< button onclick = "openAddModal()"
2026-10-15 13:53:52 +07:00
class = "w-full sm:w-auto 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" >
2026-10-12 23:47:41 +07:00
< i class = "fa-solid fa-plus text-xs" ></ i >
2026-10-15 13:53:52 +07:00
< span class = "truncate" > Tambah Kategori </ span >
2026-10-12 23:47:41 +07:00
</ button >
2026-10-15 15:03:24 +07:00
@ endcan
2026-10-12 23:47:41 +07:00
</ div >
</ div >
2026-11-01 22:28:12 +07:00
<!-- Top Banner jika sedang melihat unit dalam tipe tertentu -->
@ if ( isset ( $selectedType ) && $selectedType )
< div class = "flex flex-col sm:flex-row sm:items-center justify-between gap-3 p-4 bg-emerald-50/80 border border-emerald-200 rounded-2xl shadow-2xs" >
< div class = "flex items-center space-x-3" >
< a href = "{{ route('qma.vehicles.support') }}" class = "px-3.5 py-2 rounded-xl bg-white border border-emerald-300 hover:bg-emerald-100/60 text-[#1b5e20] text-xs font-bold transition flex items-center gap-1.5 shadow-2xs" >
< i class = "fa-solid fa-arrow-left text-[11px]" ></ i >
< span > Semua Tipe Alat </ span >
</ a >
< div >
< h3 class = "text-sm sm:text-base font-extrabold text-slate-900 flex items-center gap-2" >
< span > Tipe : {{ $selectedType }} </ span >
< span class = "px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-600 text-white" > {{ $totalUnitsOfType ?? $typeUnits -> total () }} Unit Fisik </ span >
</ h3 >
< p class = "text-[11px] text-emerald-800 font-medium mt-0.5" >
Daftar unit alat berat spesifik di bawah tipe {{ $selectedType }} .
</ p >
</ div >
</ div >
< div class = "flex flex-wrap items-center gap-1.5 text-[11px]" >
< span class = "px-2.5 py-1 rounded-lg font-bold bg-emerald-100 text-emerald-800 border border-emerald-200" >
{{ $opCount ?? 0 }} Operation
</ span >
< span class = "px-2.5 py-1 rounded-lg font-bold bg-amber-100 text-amber-800 border border-amber-200" >
{{ $stCount ?? 0 }} Standby
</ span >
< span class = "px-2.5 py-1 rounded-lg font-bold bg-rose-100 text-rose-800 border border-rose-200" >
{{ $bdCount ?? 0 }} Breakdown
</ span >
< span class = "px-2.5 py-1 rounded-lg font-bold bg-blue-100 text-blue-800 border border-blue-200" >
{{ $insideCount ?? 0 }} Site / {{ $outsideCount ?? 0 }} Luar
</ span >
</ div >
</ div >
@ endif
<!-- Kotak Pencarian & Filter Alat Berat -->
2026-10-27 13:42:40 +07:00
< form method = "GET" action = "{{ route('qma.vehicles.support') }}" id = "supportFilterForm" class = "flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-3" >
2026-11-01 22:28:12 +07:00
@ if ( isset ( $selectedType ) && $selectedType )
< input type = "hidden" name = "type" value = "{{ $selectedType }}" >
@ endif
2026-10-15 13:53:52 +07:00
< div class = "relative w-full max-w-sm sm:max-w-md" >
2026-10-12 23:47:41 +07:00
< span class = "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none text-slate-400" >
< i class = "fa-solid fa-magnifying-glass text-xs" ></ i >
</ span >
< input type = "text"
2026-10-15 13:53:52 +07:00
id = "supportSearchInput"
2026-10-12 23:47:41 +07:00
name = "search"
value = "{{ request('search') }}"
2026-11-01 22:28:12 +07:00
placeholder = "{{ isset( $selectedType ) && $selectedType ? 'Cari kode unit, seri, model, lokasi di ' . $selectedType . '...' : 'Cari tipe alat berat (Boomlift, Excavator, Dump Truck)...' }}"
2026-10-12 23:47:41 +07:00
class = "w-full text-xs pl-10 pr-4 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-emerald-600 focus:ring-2 focus:ring-emerald-600/10 shadow-sm transition" >
2026-10-15 13:53:52 +07:00
</ div >
2026-10-12 23:47:41 +07:00
< div class = "flex flex-wrap items-center gap-2" >
2026-11-01 22:28:12 +07:00
@ if ( ! isset ( $selectedType ) || ! $selectedType )
2026-10-12 23:47:41 +07:00
<!-- Filter Kategori Alat Berat -->
2026-10-27 13:42:40 +07:00
< select name = "unit_category" onchange = "this.form.submit()" class = "text-xs rounded-xl border border-slate-200 bg-white px-3 py-2 text-slate-700 font-semibold focus:outline-none focus:border-[#1b5e20]" >
2026-11-01 22:28:12 +07:00
< option value = "" > Semua Kategori ( Handling , Support , Hauling ... ) </ option >
2026-10-27 13:42:40 +07:00
@ foreach ( $availableCategories as $cat )
< option value = "{{ $cat }}" {{ request ( 'unit_category' ) === $cat ? 'selected' : '' }} > {{ $cat }} </ option >
@ endforeach
</ select >
2026-11-01 22:28:12 +07:00
@ else
<!-- Filter Status Operasional untuk Drilldown Unit -->
< select name = "status" onchange = "this.form.submit()" class = "text-xs rounded-xl border border-slate-200 bg-white px-3 py-2 text-slate-700 font-semibold focus:outline-none focus:border-[#1b5e20]" >
< option value = "" > Semua Status Operasi </ option >
< option value = "Operation" {{ request ( 'status' ) === 'Operation' ? 'selected' : '' }} > Operation </ option >
< option value = "Standby" {{ request ( 'status' ) === 'Standby' ? 'selected' : '' }} > Standby </ option >
< option value = "Breakdown" {{ request ( 'status' ) === 'Breakdown' ? 'selected' : '' }} > Breakdown </ option >
</ select >
< select name = "site_status" onchange = "this.form.submit()" class = "text-xs rounded-xl border border-slate-200 bg-white px-3 py-2 text-slate-700 font-semibold focus:outline-none focus:border-[#1b5e20]" >
< option value = "" > Semua Area </ option >
< option value = "inside_site" {{ request ( 'site_status' ) === 'inside_site' ? 'selected' : '' }} > Di Dalam Site </ option >
< option value = "outside_site" {{ request ( 'site_status' ) === 'outside_site' ? 'selected' : '' }} > Di Luar Site </ option >
</ select >
@ endif
2026-10-27 13:42:40 +07:00
<!-- Filter Jumlah Per Halaman -->
< select name = "per_page" onchange = "this.form.submit()" class = "text-xs rounded-xl border border-slate-200 bg-white px-3 py-2 text-slate-700 font-semibold focus:outline-none focus:border-[#1b5e20]" >
< option value = "15" {{ request ( 'per_page' , '15' ) == '15' ? 'selected' : '' }} > 15 / Hal </ option >
< option value = "50" {{ request ( 'per_page' , '50' ) == '50' ? 'selected' : '' }} > 50 / Hal </ option >
< option value = "100" {{ request ( 'per_page' , '100' ) == '100' ? 'selected' : '' }} > Semua ( 100 ) </ option >
</ select >
< button type = "submit" class = "px-4 py-2 bg-slate-900 hover:bg-slate-800 text-white text-xs font-bold rounded-xl transition shadow-sm cursor-pointer whitespace-nowrap" >
Cari
</ button >
2026-10-12 23:47:41 +07:00
2026-10-15 13:53:52 +07:00
< div id = "supportResetWrapper" class = "flex items-center" >
2026-11-01 22:28:12 +07:00
@ if ( request () -> anyFilled ([ 'search' , 'unit_category' , 'status' , 'site_status' , 'per_page' ]))
< a id = "supportResetBtn" href = "{{ isset( $selectedType ) && $selectedType ? route('qma.vehicles.support', ['type' => $selectedType ]) : route('qma.vehicles.support') }}" class = "text-xs text-rose-600 hover:text-rose-800 font-semibold flex items-center space-x-1 whitespace-nowrap ml-1" >
2026-10-15 13:53:52 +07:00
< i class = "fa-solid fa-rotate-left" ></ i >
< span > Reset </ span >
</ a >
2026-10-12 23:47:41 +07:00
@ endif
2026-10-15 13:53:52 +07:00
</ div >
2026-10-12 23:47:41 +07:00
</ div >
2026-10-27 13:42:40 +07:00
</ form >
2026-10-12 23:47:41 +07:00
2026-11-01 22:28:12 +07:00
<!-- Tabel Data Heavy Equipment ( Header Navy Solid #06213f) -->
2026-10-15 13:53:52 +07:00
< div class = "bg-white rounded-none sm:rounded-2xl border border-slate-200 shadow-sm overflow-hidden" >
2026-10-12 23:47:41 +07:00
< div class = "overflow-x-auto" >
2026-11-01 22:28:12 +07:00
@ if ( isset ( $selectedType ) && $selectedType )
<!-- TABEL 1 : DAFTAR UNIT FISIK SPESIFIK TIPE INI -->
2026-10-12 23:47:41 +07:00
< table class = "min-w-full text-xs text-left border-collapse" >
< 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 >
2026-11-01 22:28:12 +07:00
< th class = "py-3.5 px-4" > KODE UNIT </ th >
2026-10-15 13:53:52 +07:00
< th class = "py-3.5 px-4" > MEREK & MODEL </ th >
2026-11-01 22:28:12 +07:00
< th class = "py-3.5 px-4" > NO . SERI / RANGKA </ th >
< th class = "py-3.5 px-4 text-center" > TAHUN </ th >
< th class = "py-3.5 px-4" > LOKASI SAAT INI </ th >
< th class = "py-3.5 px-4 text-center" > AREA </ th >
< th class = "py-3.5 px-4 text-center" > STATUS </ th >
< th class = "py-3.5 px-4 text-center" > AKSI </ th >
</ tr >
</ thead >
< tbody class = "divide-y divide-slate-100 text-slate-700 bg-white" >
@ forelse ( $typeUnits as $index => $u )
< tr class = "hover:bg-slate-50/70 transition" >
< td class = "py-3.5 px-4 text-center font-medium text-slate-400" >
{{ $typeUnits -> firstItem () + $index }}
</ td >
< td class = "py-3.5 px-4 font-bold text-slate-900 font-mono text-xs whitespace-nowrap" >
< span class = "bg-blue-50 text-blue-800 px-2.5 py-1 rounded border border-blue-200" >
{{ $u -> code }}
</ span >
</ td >
< td class = "py-3.5 px-4" >
< div class = "font-bold text-slate-900" > {{ $u -> brand_type ?: ( $u -> brand ?: '-' ) }} </ div >
@ if ( $u -> model_number )
< div class = "text-[10px] text-slate-400 font-mono mt-0.5" > Model : {{ $u -> model_number }} </ div >
@ endif
</ td >
< td class = "py-3.5 px-4 font-mono text-slate-600" >
{{ $u -> serial_number ?: '-' }}
</ td >
< td class = "py-3.5 px-4 text-center text-slate-600" >
{{ $u -> production_year ?: '-' }}
</ td >
< td class = "py-3.5 px-4 font-semibold text-slate-800" >
< div class = "flex items-center space-x-1" >
< i class = "fa-solid fa-location-dot text-emerald-600 text-[10px]" ></ i >
< span > {{ $u -> location ?: 'Site Kerinci' }} </ span >
</ div >
</ td >
< td class = "py-3.5 px-4 text-center whitespace-nowrap" >
< span class = "px-2 py-0.5 rounded text-[10px] font-bold {{ $u->isOutsideSite () ? 'bg-amber-50 text-amber-800 border border-amber-200' : 'bg-emerald-50 text-emerald-800 border border-emerald-200' }}" >
{{ $u -> site_status_label }}
</ span >
</ td >
< td class = "py-3.5 px-4 text-center whitespace-nowrap" >
@ if ( $u -> status === 'Operation' )
< span class = "inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-50 text-emerald-700 border border-emerald-200" >
Operation
</ span >
@ elseif ( $u -> status === 'Standby' )
< span class = "inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-bold bg-amber-50 text-amber-700 border border-amber-200" >
Standby
</ span >
@ elseif ( $u -> status === 'Breakdown' )
< span class = "inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-bold bg-rose-50 text-rose-700 border border-rose-200" >
Breakdown
</ span >
@ else
< span class = "inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-slate-100 text-slate-600" >
{{ $u -> status }}
</ span >
@ endif
</ td >
< td class = "py-3.5 px-4 text-center whitespace-nowrap" >
< div class = "flex items-center justify-center space-x-1.5" >
< button onclick = 'openDetailModal(@json($u))'
class = "inline-flex items-center space-x-1 text-slate-600 hover:text-slate-900 hover:bg-slate-100 px-2 py-1 rounded-lg transition"
title = "Lihat Detail Unit" >
< i class = "fa-regular fa-eye text-sm" ></ i >
</ button >
@ can ( 'qma.vehicles.edit' )
< button onclick = 'openEditModal(@json($u))'
class = "inline-flex items-center space-x-1 text-amber-600 hover:text-amber-800 hover:bg-amber-50 px-2 py-1 rounded-lg transition"
title = "Edit Data Unit" >
< i class = "fa-regular fa-pen-to-square text-sm" ></ i >
</ button >
@ endcan
@ can ( 'qma.vehicles.delete' )
< button type = "button"
onclick = "openDeleteModal('{{ $u->id }}', '{{ $u->code }}', '{{ addslashes( $u->brand_type ?? '') }}')"
class = "inline-flex items-center space-x-1 text-rose-600 hover:text-rose-800 hover:bg-rose-50 px-2 py-1 rounded-lg transition"
title = "Hapus Unit" >
< i class = "fa-regular fa-trash-can text-sm" ></ i >
</ button >
@ endcan
</ div >
</ td >
</ tr >
@ empty
< tr >
< td colspan = "9" class = "py-12 text-center text-slate-400" >
< i class = "fa-solid fa-magnifying-glass text-3xl mb-3 block text-slate-300" ></ i >
< p class = "text-sm font-semibold text-slate-700" > Tidak ada unit fisik untuk tipe {{ $selectedType }} </ p >
< p class = "text-xs text-slate-400 mt-1" > Belum ada unit terdaftar atau sesuai kriteria filter .</ p >
</ td >
</ tr >
@ endforelse
</ tbody >
</ table >
@ else
<!-- TABEL 2 : PENGELOMPOKAN BERDASARKAN TIPE HEAVY EQUIPMENT -->
< table class = "min-w-full text-xs text-left border-collapse" >
< 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-4" > TIPE ALAT BERAT </ th >
< th class = "py-3.5 px-4" > KATEGORI </ th >
< th class = "py-3.5 px-4 text-center" > JUMLAH ( QTY ) </ th >
< th class = "py-3.5 px-4" > STATUS OPERASIONAL </ th >
< th class = "py-3.5 px-4" > DISTRIBUSI AREA </ th >
2026-10-12 23:47:41 +07:00
< th class = "py-3.5 px-4 text-center" > AKSI </ th >
</ tr >
</ thead >
2026-10-15 13:53:52 +07:00
< tbody id = "supportTableBody" class = "divide-y divide-slate-100 text-slate-700 bg-white" >
2026-10-12 23:47:41 +07:00
@ forelse ( $vehicles as $index => $v )
2026-10-15 13:53:52 +07:00
< tr class = "support-row hover:bg-slate-50/70 transition" >
2026-10-12 23:47:41 +07:00
< td class = "py-3.5 px-4 text-center font-medium text-slate-400" >
{{ $vehicles -> firstItem () + $index }}
</ td >
2026-11-01 22:28:12 +07:00
< td class = "py-3.5 px-4 font-bold text-slate-900 text-xs whitespace-nowrap" >
< a href = "{{ route('qma.vehicles.support', ['type' => $v->unit_type ]) }}" class = "hover:text-[#1b5e20] transition flex items-center space-x-2.5" >
< div class = "w-8 h-8 rounded-lg bg-emerald-50 text-emerald-800 border border-emerald-200 flex items-center justify-center flex-shrink-0" >
< i class = "fa-solid fa-truck-monster text-xs" ></ i >
</ div >
< div >
< span class = "font-extrabold text-slate-900 block text-xs" > {{ $v -> unit_type }} </ span >
@ if ( isset ( $v -> sample_brand_type ) && $v -> sample_brand_type )
< span class = "text-[10px] text-slate-400 font-normal block" > {{ $v -> sample_brand_type }} </ span >
@ endif
</ div >
</ a >
2026-10-12 23:47:41 +07:00
</ td >
< td class = "py-3.5 px-4 whitespace-nowrap" >
2026-11-01 22:28:12 +07:00
< span class = "px-2.5 py-1 rounded-md text-[10px] font-bold bg-slate-100 text-slate-700 border border-slate-200 uppercase tracking-wider" >
{{ $v -> unit_category ?? 'SUPPORT' }}
</ span >
2026-10-15 13:53:52 +07:00
</ td >
< td class = "py-3.5 px-4 text-center whitespace-nowrap" >
2026-11-01 22:28:12 +07:00
< a href = "{{ route('qma.vehicles.support', ['type' => $v->unit_type ]) }}"
class = "inline-flex items-center space-x-1.5 px-3 py-1.5 rounded-full text-xs font-bold bg-[#e8f8f0] text-[#00897b] border border-[#a7f3d0] hover:bg-[#d1fae5] transition shadow-2xs group cursor-pointer"
title = "Buka daftar {{ $v->units_count ?? 0 }} unit fisik tipe {{ $v->unit_type }}" >
2026-10-15 13:53:52 +07:00
< span > {{ $v -> units_count ?? 0 }} Unit </ span >
< i class = "fa-solid fa-chevron-right text-[10px] ml-1 transition group-hover:translate-x-0.5" ></ i >
</ a >
2026-10-12 23:47:41 +07:00
</ td >
< td class = "py-3.5 px-4" >
2026-11-01 22:28:12 +07:00
< div class = "flex items-center space-x-2 text-[10px] font-bold" >
< span class = "text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded border border-emerald-200" >
{{ $v -> total_operation ?? 0 }} Operasi
</ span >
< span class = "text-amber-700 bg-amber-50 px-2 py-0.5 rounded border border-amber-200" >
{{ $v -> total_standby ?? 0 }} Standby
</ span >
< span class = "text-rose-700 bg-rose-50 px-2 py-0.5 rounded border border-rose-200" >
{{ $v -> total_breakdown ?? 0 }} Breakdown
</ span >
</ div >
2026-10-15 13:53:52 +07:00
</ td >
2026-11-01 22:28:12 +07:00
< td class = "py-3.5 px-4 text-slate-600 text-[11px]" >
< span class = "font-medium text-emerald-800" > {{ $v -> inside_site_count ?? 0 }} Di Dalam Site </ span >
< span class = "text-slate-300 mx-1" >& bull ; </ span >
< span class = "text-slate-500" > {{ $v -> outside_site_count ?? 0 }} Di Luar Site </ span >
2026-10-12 23:47:41 +07:00
</ td >
< td class = "py-3.5 px-4 text-center whitespace-nowrap" >
2026-11-01 22:28:12 +07:00
< a href = "{{ route('qma.vehicles.support', ['type' => $v->unit_type ]) }}"
class = "inline-flex items-center space-x-1.5 px-3 py-1.5 bg-[#1b5e20] hover:bg-[#144919] text-white rounded-xl text-xs font-bold transition shadow-2xs" >
< i class = "fa-regular fa-folder-open text-xs" ></ i >
< span > Buka Unit </ span >
</ a >
2026-10-12 23:47:41 +07:00
</ td >
</ tr >
@ empty
2026-10-15 13:53:52 +07:00
< tr id = "serverSupportEmptyRow" >
2026-11-01 22:28:12 +07:00
< td colspan = "7" class = "py-12 text-center text-slate-400" >
2026-10-15 13:53:52 +07:00
< i class = "fa-solid fa-magnifying-glass text-3xl mb-3 block text-slate-300" ></ i >
@ if ( request ( 'search' ))
< p class = "text-sm font-semibold text-slate-700" >
Data "<span class=" text - rose - 600 font - bold ">{{ request('search') }}</span>" tidak ditemukan di tabel
</ p >
< p class = "text-xs text-slate-400 mt-1" >
Pastikan kata kunci yang dicari sudah benar .
</ p >
< div class = "mt-4" >
< a href = "{{ route('qma.vehicles.support') }}" class = "inline-flex items-center space-x-1.5 px-3.5 py-2 rounded-xl text-xs font-semibold text-rose-600 bg-rose-50 border border-rose-200 hover:bg-rose-100 transition cursor-pointer" >
< i class = "fa-solid fa-rotate-left text-[11px]" ></ i >
< span > Hapus Pencarian </ span >
</ a >
</ div >
@ else
2026-11-01 22:28:12 +07:00
< p class = "text-sm font-semibold text-slate-700" > Belum ada tipe alat berat </ p >
< p class = "text-xs text-slate-400 mt-0.5" > Belum ada tipe alat berat yang sesuai dengan filter .</ p >
2026-10-15 13:53:52 +07:00
@ endif
2026-10-12 23:47:41 +07:00
</ td >
</ tr >
@ endforelse
</ tbody >
</ table >
2026-11-01 22:28:12 +07:00
@ endif
2026-10-12 23:47:41 +07:00
</ div >
2026-10-15 13:53:52 +07:00
< div id = "supportPaginationContainer" class = "p-4 bg-slate-50 border-t border-slate-200" >
2026-11-01 22:28:12 +07:00
@ if ( isset ( $selectedType ) && $selectedType )
{{ $typeUnits -> links () }}
@ else
{{ $vehicles -> links () }}
@ endif
2026-10-12 23:47:41 +07:00
</ div >
</ div >
</ div >
<!-- ========================================================================= -->
2026-10-24 14:37:46 +07:00
<!-- MODAL : TAMBAH HEAVY EQUIPMENT ( KENDARAAN BERAT ) -->
2026-10-12 23:47:41 +07:00
<!-- ========================================================================= -->
2026-10-14 01:38:48 +07:00
< div id = "addVehicleModal"
2026-10-27 20:44:35 +07:00
data - backdrop = "static"
2026-10-14 01:38:48 +07:00
class = "hidden fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto no-scrollbar" >
2026-10-15 13:53:52 +07:00
< div class = "bg-white rounded-3xl shadow-2xl max-w-xl w-full p-6 sm:p-7 border border-slate-100 max-h-[92vh] overflow-y-auto no-scrollbar" >
2026-10-12 23:47:41 +07:00
< div class = "flex items-center justify-between mb-4" >
2026-10-15 13:53:52 +07:00
< div >
< h3 class = "text-xl font-bold text-slate-900 tracking-tight" >
2026-10-24 14:37:46 +07:00
Tambah Kategori Heavy Equipment
2026-10-15 13:53:52 +07:00
</ h3 >
< p class = "text-xs text-slate-500 mt-0.5" > Mendaftarkan kategori / tipe master aset baru ke sistem .</ p >
</ div >
2026-10-12 23:47:41 +07:00
< button type = "button" onclick = "closeAddModal()" class = "text-slate-400 hover:text-slate-600 transition p-1" >
< i class = "fa-solid fa-xmark text-lg" ></ i >
</ button >
</ div >
2026-10-20 16:00:29 +07:00
< form id = "addVehicleForm" action = "{{ route('qma.vehicles.store') }}" method = "POST" enctype = "multipart/form-data" class = "space-y-3.5" >
2026-10-12 23:47:41 +07:00
@ csrf
< input type = "hidden" name = "category" value = "unit_support" >
2026-10-20 16:00:29 +07:00
< div >
2026-10-24 14:37:46 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Foto Kategori Heavy Equipment ( Opsional ) </ label >
2026-10-20 16:00:29 +07:00
< div class = "flex items-center space-x-3.5 p-3 rounded-2xl border border-slate-200 bg-slate-50/50" >
< div id = "addPhotoPreviewContainer" class = "w-14 h-14 rounded-xl border-2 border-dashed border-slate-300 bg-white flex items-center justify-center overflow-hidden flex-shrink-0 shadow-2xs" >
< img id = "addPhotoPreview" src = "" alt = "Pratinjau" class = "w-full h-full object-cover hidden" >
< i id = "addPhotoPlaceholder" class = "fa-solid fa-camera text-slate-400 text-base" ></ i >
</ div >
< div class = "flex-1 min-w-0" >
< input type = "file"
name = "photo"
id = "addPhotoInput"
accept = "image/jpeg,image/png,image/jpg,image/webp"
onchange = "previewVehicleImage(this, 'addPhotoPreview', 'addPhotoPlaceholder')"
class = "block w-full text-xs text-slate-500 file:mr-3 file:py-1.5 file:px-3 file:rounded-xl file:border-0 file:text-xs file:font-bold file:bg-emerald-50 file:text-[#1b5e20] hover:file:bg-emerald-100 cursor-pointer" >
< p class = "text-[10px] text-slate-400 mt-1" > Format : JPG , PNG , WebP ( Maks . 10 MB ) . Resolusi & file dikompresi otomatis .</ p >
</ div >
</ div >
</ div >
2026-10-12 23:47:41 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3" >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Kode Kategori < span class = "text-rose-500" >*</ span ></ label >
< input type = "text" name = "code" id = "addCodeInput" required placeholder = "MISAL: EX01, CR01, BL01" value = "{{ old('code') }}"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border @error('code') border-rose-500 @else border-slate-200 @enderror bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono uppercase font-bold" >
2026-10-12 23:47:41 +07:00
< p id = "codeError" class = "text-xs text-rose-600 font-semibold mt-1 flex items-center space-x-1.5 @if(! $errors->has ('code')) hidden @endif" >
< i class = "fa-solid fa-circle-exclamation text-rose-500 text-xs" ></ i >
< span id = "codeErrorText" > {{ $errors -> first ( 'code' ) ?? 'Kode unit sudah ada, silakan gunakan kode lain.' }} </ span >
</ p >
< p id = "codeHint" class = "text-[11px] text-slate-400 mt-0.5 @if( $errors->has ('code')) hidden @endif" >
2026-10-15 13:53:52 +07:00
* Digunakan sebagai dasar kode unit fisik ( contoh : BL01 - 001 ) .
2026-10-12 23:47:41 +07:00
</ p >
</ div >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1" > Kategori Alat Berat < span class = "text-rose-500" >*</ span ></ label >
2026-10-15 13:53:52 +07:00
< input type = "text" name = "unit_category" required placeholder = "Contoh: Excavator / Mobile Crane / Boomlift"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-medium" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3" >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1" > Merek & Tipe Lengkap < span class = "text-rose-500" >*</ span ></ label >
< input type = "text" name = "brand_type" required placeholder = "Contoh: KOMATSU PC200-8 / KATO SR-250R"
2026-10-15 13:53:52 +07:00
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
2026-10-12 23:47:41 +07:00
</ div >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1" > Tipe / Model Khusus </ label >
< input type = "text" name = "unit_type" placeholder = "Contoh: Hydraulic Excavator / Rough Terrain"
2026-10-15 13:53:52 +07:00
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3" >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Nomor Model </ label >
< input type = "text" name = "model_number" placeholder = "Contoh: PC200-8M0"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono" >
2026-10-12 23:47:41 +07:00
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Estimasi Konsumsi BBM ( Liter / Jam ) </ label >
< input type = "number" step = "0.01" name = "fuel_consumption" placeholder = "Contoh: 18.5"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
2026-10-15 13:53:52 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3" >
2026-10-12 23:47:41 +07:00
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Divisi Penanggung Jawab </ label >
< select name = "division"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-medium" >
< option value = "" >-- Pilih Divisi Penanggung Jawab --</ option >
@ foreach ( $availableDivisions as $div )
< option value = "{{ $div }}" {{ old ( 'division' ) === $div ? 'selected' : '' }} > {{ $div }} </ option >
@ endforeach
2026-10-12 23:47:41 +07:00
</ select >
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1" > Kepemilikan Aset </ label >
< input type = "text" name = "ownership" placeholder = "Contoh: PT Kerinci Merangin Hidro"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
2026-10-15 13:53:52 +07:00
<!-- Footer Tombol -->
2026-10-12 23:47:41 +07:00
< div class = "pt-3 flex items-center justify-end space-x-3" >
< button type = "button" onclick = "closeAddModal()"
class = "px-5 py-2.5 rounded-xl border border-slate-300 bg-white hover:bg-slate-50 text-slate-700 font-bold text-xs transition" >
Batal
</ button >
< button type = "submit"
class = "px-6 py-2.5 rounded-xl bg-[#1b5e20] hover:bg-[#144919] text-white font-bold text-xs transition shadow-sm" >
2026-10-15 13:53:52 +07:00
Simpan Kategori
2026-10-12 23:47:41 +07:00
</ button >
</ div >
</ form >
</ div >
</ div >
<!-- ========================================================================= -->
2026-10-24 14:37:46 +07:00
<!-- MODAL : EDIT KATEGORI HEAVY EQUIPMENT -->
2026-10-12 23:47:41 +07:00
<!-- ========================================================================= -->
2026-10-14 01:38:48 +07:00
< div id = "editVehicleModal"
2026-10-27 20:44:35 +07:00
data - backdrop = "static"
2026-10-14 01:38:48 +07:00
class = "hidden fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto no-scrollbar" >
2026-10-15 13:53:52 +07:00
< div class = "bg-white rounded-3xl shadow-2xl max-w-xl w-full p-6 sm:p-7 border border-slate-100 max-h-[92vh] overflow-y-auto no-scrollbar" >
2026-10-12 23:47:41 +07:00
< div class = "flex items-center justify-between mb-4" >
2026-10-15 13:53:52 +07:00
< div >
< h3 class = "text-xl font-bold text-slate-900 tracking-tight" >
2026-10-24 14:37:46 +07:00
Edit Kategori Heavy Equipment
2026-10-15 13:53:52 +07:00
</ h3 >
< p class = "text-xs text-slate-500 mt-0.5" > Memperbarui informasi master kategori aset .</ p >
</ div >
2026-10-12 23:47:41 +07:00
< button type = "button" onclick = "closeEditModal()" class = "text-slate-400 hover:text-slate-600 transition p-1" >
< i class = "fa-solid fa-xmark text-lg" ></ i >
</ button >
</ div >
2026-10-20 16:00:29 +07:00
< form id = "editVehicleForm" action = "" method = "POST" enctype = "multipart/form-data" class = "space-y-3.5" >
2026-10-12 23:47:41 +07:00
@ csrf
< input type = "hidden" name = "category" value = "unit_support" >
2026-10-20 16:00:29 +07:00
< div >
2026-10-24 14:37:46 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Foto Kategori Heavy Equipment </ label >
2026-10-20 16:00:29 +07:00
< div class = "flex items-center space-x-3.5 p-3 rounded-2xl border border-slate-200 bg-slate-50/50" >
< div id = "editPhotoPreviewContainer" class = "w-14 h-14 rounded-xl border border-slate-200 bg-white flex items-center justify-center overflow-hidden flex-shrink-0 shadow-2xs" >
< img id = "editPhotoPreview" src = "" alt = "Foto Kategori" class = "w-full h-full object-cover hidden" >
< i id = "editPhotoPlaceholder" class = "fa-solid fa-truck-monster text-slate-400 text-base" ></ i >
</ div >
< div class = "flex-1 min-w-0" >
< input type = "file"
name = "photo"
id = "editPhotoInput"
accept = "image/jpeg,image/png,image/jpg,image/webp"
onchange = "previewVehicleImage(this, 'editPhotoPreview', 'editPhotoPlaceholder')"
class = "block w-full text-xs text-slate-500 file:mr-3 file:py-1.5 file:px-3 file:rounded-xl file:border-0 file:text-xs file:font-bold file:bg-emerald-50 file:text-[#1b5e20] hover:file:bg-emerald-100 cursor-pointer" >
< p class = "text-[10px] text-slate-400 mt-1" > Pilih foto baru jika ingin mengganti . Otomatis dikompresi hemat storage .</ p >
</ div >
</ div >
</ div >
2026-10-12 23:47:41 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kode Kategori < span class = "text-rose-500" >*</ span ></ label >
2026-10-12 23:47:41 +07:00
< input type = "text" name = "code" id = "editCode" required
2026-10-15 13:53:52 +07:00
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono uppercase font-bold" >
2026-10-12 23:47:41 +07:00
< p id = "editCodeError" class = "text-xs text-rose-600 font-semibold mt-1.5 hidden flex items-center" >
< i class = "fa-solid fa-circle-exclamation mr-1.5 flex-shrink-0" ></ i >
< span id = "editCodeErrorText" > Kode unit sudah ada , silakan gunakan kode lain .</ span >
</ p >
2026-10-15 13:53:52 +07:00
< p id = "editCodeHint" class = "text-[11px] text-slate-400 mt-1" >* Jika diubah , kode seluruh unit fisik di bawahnya akan otomatis menyesuaikan .</ p >
2026-10-12 23:47:41 +07:00
</ div >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kategori Alat Berat < span class = "text-rose-500" >*</ span ></ label >
< input type = "text" name = "unit_category" id = "editUnitCategory" required
2026-10-15 13:53:52 +07:00
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-medium" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Merek & Tipe Lengkap < span class = "text-rose-500" >*</ span ></ label >
< input type = "text" name = "brand_type" id = "editBrandType" required
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
</ div >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Tipe / Model Khusus </ label >
< input type = "text" name = "unit_type" id = "editUnitType"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
</ div >
</ div >
2026-10-15 13:53:52 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
2026-10-12 23:47:41 +07:00
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Nomor Model </ label >
< input type = "text" name = "model_number" id = "editModelNumber"
2026-10-15 13:53:52 +07:00
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono" >
2026-10-12 23:47:41 +07:00
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Konsumsi BBM Standar ( L / Jam ) </ label >
< input type = "number" step = "0.01" name = "fuel_consumption" id = "editFuelConsumption"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-mono" >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Divisi Penanggung Jawab </ label >
< select name = "division" id = "editDivision"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition font-medium" >
< option value = "" >-- Pilih Divisi Penanggung Jawab --</ option >
@ foreach ( $availableDivisions as $div )
< option value = "{{ $div }}" > {{ $div }} </ option >
@ endforeach
</ select >
2026-10-12 23:47:41 +07:00
</ div >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kepemilikan </ label >
< input type = "text" name = "ownership" id = "editOwnership"
class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 transition" >
</ div >
</ div >
2026-10-15 13:53:52 +07:00
<!-- Footer Tombol -->
2026-10-12 23:47:41 +07:00
< div class = "pt-4 flex items-center justify-end space-x-3" >
< button type = "button" onclick = "closeEditModal()"
class = "px-5 py-2.5 rounded-xl border border-slate-300 bg-white hover:bg-slate-50 text-slate-700 font-bold text-xs transition" >
Batal
</ button >
< button type = "submit"
class = "px-6 py-2.5 rounded-xl bg-[#1b5e20] hover:bg-[#144919] text-white font-bold text-xs transition shadow-sm" >
2026-10-15 13:53:52 +07:00
Perbarui Kategori
2026-10-12 23:47:41 +07:00
</ button >
</ div >
</ form >
</ div >
</ div >
<!-- ========================================================================= -->
2026-10-24 14:37:46 +07:00
<!-- MODAL : DETAIL SPESIFIKASI KATEGORI HEAVY EQUIPMENT -->
2026-10-12 23:47:41 +07:00
<!-- ========================================================================= -->
2026-10-27 20:44:35 +07:00
< div id = "detailVehicleModal" class = "hidden fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto no-scrollbar" >
2026-10-15 13:53:52 +07:00
< div class = "bg-white rounded-3xl shadow-2xl max-w-xl w-full p-6 sm:p-7 border border-slate-100 max-h-[92vh] overflow-y-auto no-scrollbar" >
2026-10-12 23:47:41 +07:00
< div class = "flex items-center justify-between mb-4" >
2026-10-15 13:53:52 +07:00
< div >
< h3 class = "text-xl font-bold text-slate-900 tracking-tight" >
Detail Spesifikasi Kategori
</ h3 >
2026-10-24 14:37:46 +07:00
< p class = "text-xs text-slate-500 mt-0.5" > Informasi master kategori aset Heavy Equipment .</ p >
2026-10-15 13:53:52 +07:00
</ div >
2026-10-12 23:47:41 +07:00
< button type = "button" onclick = "closeDetailModal()" class = "text-slate-400 hover:text-slate-600 transition p-1" >
< i class = "fa-solid fa-xmark text-lg" ></ i >
</ button >
</ div >
< div class = "space-y-4" >
2026-10-20 16:00:29 +07:00
<!-- Foto Kategori di Detail Modal -->
< div id = "detailPhotoContainer" class = "w-full h-48 rounded-2xl bg-slate-100 border border-slate-200 flex items-center justify-center overflow-hidden relative hidden" >
2026-10-24 14:37:46 +07:00
< img id = "detailPhoto" src = "" alt = "Foto Kategori Heavy Equipment" class = "w-full h-full object-cover" >
2026-10-20 16:00:29 +07:00
</ div >
2026-10-12 23:47:41 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kode Kategori </ label >
2026-10-12 23:47:41 +07:00
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-mono font-bold flex items-center" >
2026-10-15 13:53:52 +07:00
< span id = "detailCode" class = "bg-blue-50 text-blue-800 px-2.5 py-0.5 rounded border border-blue-200" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kategori Alat </ label >
2026-10-12 23:47:41 +07:00
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-bold flex items-center" >
2026-10-15 13:53:52 +07:00
< span id = "detailCategory" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
</ div >
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
< div >
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Merek & Tipe Lengkap </ label >
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-bold flex items-center" >
< span id = "detailBrand" >-</ span >
</ div >
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Tipe / Model Khusus </ label >
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-medium flex items-center" >
< span id = "detailUnitType" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
</ div >
2026-10-15 13:53:52 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
2026-10-12 23:47:41 +07:00
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Nomor Model </ label >
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-mono flex items-center" >
< span id = "detailModelNumber" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Konsumsi BBM Standar </ label >
2026-10-12 23:47:41 +07:00
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-medium flex items-center" >
< span id = "detailFuel" >-</ span >
</ div >
</ div >
</ div >
2026-10-15 13:53:52 +07:00
< div class = "grid grid-cols-1 sm:grid-cols-2 gap-3.5" >
2026-10-12 23:47:41 +07:00
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Divisi Penanggung Jawab </ label >
2026-10-12 23:47:41 +07:00
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-medium flex items-center" >
2026-10-15 13:53:52 +07:00
< span id = "detailDivision" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
< div >
2026-10-15 13:53:52 +07:00
< label class = "block text-xs font-bold text-slate-800 mb-1.5" > Kepemilikan Aset </ label >
< div class = "w-full text-xs px-3.5 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-800 font-medium flex items-center" >
< span id = "detailOwnership" >-</ span >
2026-10-12 23:47:41 +07:00
</ div >
</ div >
</ div >
2026-10-15 13:53:52 +07:00
<!-- Card Unit Fisik Terdaftar -->
< div class = "p-4 rounded-2xl bg-emerald-50/70 border border-emerald-200/80 flex items-center justify-between" >
< div >
< span class = "text-xs font-bold text-emerald-950 block" > Unit Fisik Terdaftar </ span >
< span id = "detailUnitCountText" class = "text-xs text-emerald-800 font-medium" > 0 Unit Fisik </ span >
2026-10-12 23:47:41 +07:00
</ div >
2026-10-15 13:53:52 +07:00
< a id = "detailManageUnitsBtn" href = "#" class = "px-4 py-2 rounded-xl bg-[#1b5e20] hover:bg-[#144919] text-white text-xs font-bold transition shadow-sm inline-flex items-center justify-center" >
< span > Kelola Unit Fisik </ span >
</ a >
2026-10-12 23:47:41 +07:00
</ div >
2026-10-15 13:53:52 +07:00
<!-- Footer Tombol Tutup -->
< div class = "pt-2 flex items-center justify-end" >
2026-10-12 23:47:41 +07:00
< button type = "button" onclick = "closeDetailModal()"
2026-10-15 13:53:52 +07:00
class = "px-6 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-900 text-white font-bold text-xs transition shadow-sm cursor-pointer" >
2026-10-12 23:47:41 +07:00
Tutup
</ button >
</ div >
</ div >
</ div >
</ div >
<!-- ========================================================================= -->
2026-10-24 14:37:46 +07:00
<!-- MODAL : KONFIRMASI HAPUS HEAVY EQUIPMENT ( KENDARAAN BERAT ) -->
2026-10-12 23:47:41 +07:00
<!-- ========================================================================= -->
2026-10-27 20:44:35 +07:00
< div id = "deleteVehicleModal" data - backdrop = "static" class = "hidden fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto no-scrollbar" >
2026-10-12 23:47:41 +07:00
< div class = "bg-white rounded-3xl shadow-2xl max-w-sm sm:max-w-md w-full p-6 sm:p-7 border border-slate-100 transform transition-all text-center" >
<!-- Icon Peringatan Elegan -->
< div class = "w-14 h-14 rounded-2xl bg-rose-50 border border-rose-100 text-rose-600 flex items-center justify-center mx-auto mb-4 text-2xl shadow-sm" >
< i class = "fa-solid fa-triangle-exclamation" ></ i >
</ div >
< h3 class = "text-lg font-bold text-slate-900 tracking-tight" >
2026-10-24 14:37:46 +07:00
Konfirmasi Hapus Heavy Equipment
2026-10-12 23:47:41 +07:00
</ h3 >
< p class = "text-xs text-slate-600 mt-2 leading-relaxed" >
2026-10-24 14:37:46 +07:00
Apakah Anda yakin ingin menghapus data Heavy Equipment < span id = "deleteVehicleCode" class = "font-bold font-mono text-slate-900 bg-slate-100 px-2 py-0.5 rounded border border-slate-200" ></ span >?
2026-10-12 23:47:41 +07:00
</ p >
< p class = "text-[11px] text-rose-600 mt-3 bg-rose-50/70 border border-rose-100 py-1.5 px-3 rounded-xl inline-flex items-center" >
< i class = "fa-solid fa-circle-info mr-1.5 flex-shrink-0 text-xs" ></ i >
< span > Data yang dihapus tidak dapat dipulihkan kembali .</ span >
</ p >
<!-- Tombol Aksi -->
< div class = "flex items-center space-x-3 mt-6" >
< button type = "button" onclick = "closeDeleteModal()"
class = "flex-1 py-2.5 px-4 rounded-xl border border-slate-300 bg-white hover:bg-slate-50 text-slate-700 font-bold text-xs transition" >
Batal
</ button >
< form id = "deleteVehicleForm" action = "" method = "POST" class = "flex-1" >
@ csrf
@ method ( 'DELETE' )
< button type = "submit"
class = "w-full py-2.5 px-4 rounded-xl bg-rose-600 hover:bg-rose-700 text-white font-bold text-xs transition shadow-sm flex items-center justify-center space-x-1.5" >
< i class = "fa-regular fa-trash-can text-xs" ></ i >
< span > Ya , Hapus Data </ span >
</ button >
</ form >
</ div >
</ div >
</ div >
< script >
2026-10-15 13:53:52 +07:00
// =========================================================================
// REAL-TIME CLIENT-SIDE SEARCH
// =========================================================================
function escapeHtml ( str ) {
const div = document . createElement ( 'div' );
div . textContent = str ;
return div . innerHTML ;
}
document . addEventListener ( 'DOMContentLoaded' , function () {
const searchInput = document . getElementById ( 'supportSearchInput' );
2026-10-27 13:42:40 +07:00
const filterForm = document . getElementById ( 'supportFilterForm' );
let searchDebounce = null ;
2026-10-15 13:53:52 +07:00
2026-10-27 13:42:40 +07:00
if ( searchInput && searchInput . value ) {
searchInput . focus ();
const len = searchInput . value . length ;
searchInput . setSelectionRange ( len , len );
2026-10-15 13:53:52 +07:00
}
2026-10-27 13:42:40 +07:00
searchInput ?. addEventListener ( 'input' , function () {
clearTimeout ( searchDebounce );
searchDebounce = setTimeout ( function () {
filterForm ?. submit ();
}, 500 );
});
2026-10-15 13:53:52 +07:00
});
2026-10-24 14:37:46 +07:00
// Daftar semua kode kendaraan heavy equipment yang sudah terdaftar di sistem
2026-10-12 23:47:41 +07:00
const existingVehicleCodes = @ json ( $existingCodes ?? \App\Models\Vehicle :: unitSupports () -> pluck ( 'code' ) -> map ( fn ( $c ) => strtoupper ( trim ( $c ))));
const addCodeInput = document . getElementById ( 'addCodeInput' );
const codeError = document . getElementById ( 'codeError' );
const codeErrorText = document . getElementById ( 'codeErrorText' );
const codeHint = document . getElementById ( 'codeHint' );
const addVehicleForm = document . getElementById ( 'addVehicleForm' );
function checkDuplicateCode () {
if ( ! addCodeInput ) return false ;
const val = addCodeInput . value . trim () . toUpperCase ();
if ( ! val ) {
hideCodeError ();
return false ;
}
if ( existingVehicleCodes . includes ( val )) {
showCodeError ( 'Kode unit sudah ada, silakan gunakan kode lain.' );
return true ;
} else {
hideCodeError ();
return false ;
}
}
function showCodeError ( message ) {
if ( codeErrorText ) codeErrorText . innerText = message ;
if ( codeError ) codeError . classList . remove ( 'hidden' );
if ( codeHint ) codeHint . classList . add ( 'hidden' );
if ( addCodeInput ) {
addCodeInput . classList . add ( 'border-rose-500' , 'ring-2' , 'ring-rose-500/10' );
addCodeInput . classList . remove ( 'border-slate-200' );
}
}
function hideCodeError () {
if ( codeError ) codeError . classList . add ( 'hidden' );
if ( codeHint ) codeHint . classList . remove ( 'hidden' );
if ( addCodeInput ) {
addCodeInput . classList . remove ( 'border-rose-500' , 'ring-2' , 'ring-rose-500/10' );
addCodeInput . classList . add ( 'border-slate-200' );
}
}
if ( addCodeInput ) {
addCodeInput . addEventListener ( 'input' , function () {
if ( codeError && ! codeError . classList . contains ( 'hidden' )) {
checkDuplicateCode ();
}
});
addCodeInput . addEventListener ( 'blur' , function () {
checkDuplicateCode ();
});
}
if ( addVehicleForm ) {
addVehicleForm . addEventListener ( 'submit' , function ( e ) {
if ( checkDuplicateCode ()) {
e . preventDefault ();
addCodeInput . focus ();
return false ;
}
});
}
2026-10-24 14:37:46 +07:00
// Elemen modal Edit Heavy Equipment
2026-10-12 23:47:41 +07:00
const editCodeInput = document . getElementById ( 'editCode' );
const editCodeError = document . getElementById ( 'editCodeError' );
const editCodeErrorText = document . getElementById ( 'editCodeErrorText' );
const editCodeHint = document . getElementById ( 'editCodeHint' );
const editVehicleForm = document . getElementById ( 'editVehicleForm' );
let currentEditVehicleCode = '' ;
function checkEditDuplicateCode () {
if ( ! editCodeInput ) return false ;
const val = editCodeInput . value . trim () . toUpperCase ();
if ( ! val ) {
hideEditCodeError ();
return false ;
}
// Jika kode sama dengan kode kendaraan yang sedang diedit, bukan duplikat
if ( val === currentEditVehicleCode ) {
hideEditCodeError ();
return false ;
}
if ( existingVehicleCodes . includes ( val )) {
showEditCodeError ( 'Kode unit sudah ada, silakan gunakan kode lain.' );
return true ;
} else {
hideEditCodeError ();
return false ;
}
}
function showEditCodeError ( message ) {
if ( editCodeErrorText ) editCodeErrorText . innerText = message ;
if ( editCodeError ) editCodeError . classList . remove ( 'hidden' );
if ( editCodeHint ) editCodeHint . classList . add ( 'hidden' );
if ( editCodeInput ) {
editCodeInput . classList . add ( 'border-rose-500' , 'ring-2' , 'ring-rose-500/10' );
editCodeInput . classList . remove ( 'border-slate-200' );
}
}
function hideEditCodeError () {
if ( editCodeError ) editCodeError . classList . add ( 'hidden' );
if ( editCodeHint ) editCodeHint . classList . remove ( 'hidden' );
if ( editCodeInput ) {
editCodeInput . classList . remove ( 'border-rose-500' , 'ring-2' , 'ring-rose-500/10' );
editCodeInput . classList . add ( 'border-slate-200' );
}
}
if ( editCodeInput ) {
editCodeInput . addEventListener ( 'input' , function () {
if ( editCodeError && ! editCodeError . classList . contains ( 'hidden' )) {
checkEditDuplicateCode ();
}
});
editCodeInput . addEventListener ( 'blur' , function () {
checkEditDuplicateCode ();
});
}
if ( editVehicleForm ) {
editVehicleForm . addEventListener ( 'submit' , function ( e ) {
if ( checkEditDuplicateCode ()) {
e . preventDefault ();
editCodeInput . focus ();
return false ;
}
});
}
2026-10-20 16:00:29 +07:00
function previewVehicleImage ( input , imgId , placeholderId ) {
if ( input . files && input . files [ 0 ]) {
const reader = new FileReader ();
reader . onload = function ( e ) {
const img = document . getElementById ( imgId );
const placeholder = document . getElementById ( placeholderId );
if ( img ) {
img . src = e . target . result ;
img . classList . remove ( 'hidden' );
}
if ( placeholder ) {
placeholder . classList . add ( 'hidden' );
}
};
reader . readAsDataURL ( input . files [ 0 ]);
}
}
2026-10-12 23:47:41 +07:00
function openAddModal () {
document . getElementById ( 'addVehicleModal' ) . classList . remove ( 'hidden' );
2026-10-20 16:00:29 +07:00
const addPhotoPreview = document . getElementById ( 'addPhotoPreview' );
const addPhotoPlaceholder = document . getElementById ( 'addPhotoPlaceholder' );
const addPhotoInput = document . getElementById ( 'addPhotoInput' );
if ( addPhotoInput ) addPhotoInput . value = '' ;
if ( addPhotoPreview ) {
addPhotoPreview . src = '' ;
addPhotoPreview . classList . add ( 'hidden' );
}
if ( addPhotoPlaceholder ) {
addPhotoPlaceholder . classList . remove ( 'hidden' );
}
2026-10-12 23:47:41 +07:00
if ( addCodeInput ) addCodeInput . focus ();
}
function closeAddModal () {
document . getElementById ( 'addVehicleModal' ) . classList . add ( 'hidden' );
hideCodeError ();
}
function openEditModal ( v ) {
document . getElementById ( 'editVehicleModal' ) . classList . remove ( 'hidden' );
document . getElementById ( 'editVehicleForm' ) . action = `/qma/vehicles/${v.id}` ;
document . getElementById ( 'editCode' ) . value = v . code || '' ;
currentEditVehicleCode = ( v . code || '' ) . trim () . toUpperCase ();
hideEditCodeError ();
document . getElementById ( 'editUnitCategory' ) . value = v . unit_category || '' ;
document . getElementById ( 'editBrandType' ) . value = v . brand_type || '' ;
document . getElementById ( 'editUnitType' ) . value = v . unit_type || '' ;
document . getElementById ( 'editModelNumber' ) . value = v . model_number || '' ;
2026-10-15 13:53:52 +07:00
const divSelect = document . getElementById ( 'editDivision' );
if ( divSelect ) {
if ( v . division ) {
let found = false ;
for ( let i = 0 ; i < divSelect . options . length ; i ++ ) {
if ( divSelect . options [ i ] . value === v . division ) {
found = true ;
break ;
}
}
if ( ! found ) {
const newOpt = document . createElement ( 'option' );
newOpt . value = v . division ;
newOpt . textContent = v . division ;
divSelect . appendChild ( newOpt );
}
divSelect . value = v . division ;
} else {
divSelect . value = '' ;
}
}
2026-10-12 23:47:41 +07:00
document . getElementById ( 'editOwnership' ) . value = v . ownership || '' ;
document . getElementById ( 'editFuelConsumption' ) . value = v . fuel_consumption || '' ;
2026-10-20 16:00:29 +07:00
const editPhotoPreview = document . getElementById ( 'editPhotoPreview' );
const editPhotoPlaceholder = document . getElementById ( 'editPhotoPlaceholder' );
const editPhotoInput = document . getElementById ( 'editPhotoInput' );
if ( editPhotoInput ) editPhotoInput . value = '' ;
if ( v . photo_url ) {
if ( editPhotoPreview ) {
editPhotoPreview . src = v . photo_url ;
editPhotoPreview . classList . remove ( 'hidden' );
}
if ( editPhotoPlaceholder ) editPhotoPlaceholder . classList . add ( 'hidden' );
} else {
if ( editPhotoPreview ) {
editPhotoPreview . src = '' ;
editPhotoPreview . classList . add ( 'hidden' );
}
if ( editPhotoPlaceholder ) editPhotoPlaceholder . classList . remove ( 'hidden' );
}
2026-10-12 23:47:41 +07:00
}
function closeEditModal () {
document . getElementById ( 'editVehicleModal' ) . classList . add ( 'hidden' );
hideEditCodeError ();
}
function openDetailModal ( v ) {
document . getElementById ( 'detailVehicleModal' ) . classList . remove ( 'hidden' );
document . getElementById ( 'detailCode' ) . innerText = v . code || '-' ;
2026-10-15 13:53:52 +07:00
document . getElementById ( 'detailCategory' ) . innerText = v . unit_category || '-' ;
2026-10-12 23:47:41 +07:00
document . getElementById ( 'detailBrand' ) . innerText = v . brand_type || '-' ;
2026-10-15 13:53:52 +07:00
document . getElementById ( 'detailUnitType' ) . innerText = v . unit_type || '-' ;
document . getElementById ( 'detailModelNumber' ) . innerText = v . model_number || '-' ;
2026-10-12 23:47:41 +07:00
document . getElementById ( 'detailFuel' ) . innerText = v . fuel_consumption ? `${v.fuel_consumption} L/Jam` : '-' ;
2026-10-15 13:53:52 +07:00
document . getElementById ( 'detailDivision' ) . innerText = v . division || '-' ;
document . getElementById ( 'detailOwnership' ) . innerText = v . ownership || 'PT Kerinci Merangin Hidro' ;
2026-10-12 23:47:41 +07:00
2026-10-20 16:00:29 +07:00
const detailPhotoContainer = document . getElementById ( 'detailPhotoContainer' );
const detailPhoto = document . getElementById ( 'detailPhoto' );
if ( v . photo_url ) {
if ( detailPhoto ) detailPhoto . src = v . photo_url ;
if ( detailPhotoContainer ) detailPhotoContainer . classList . remove ( 'hidden' );
} else {
if ( detailPhoto ) detailPhoto . src = '' ;
if ( detailPhotoContainer ) detailPhotoContainer . classList . add ( 'hidden' );
}
2026-10-15 13:53:52 +07:00
const count = v . units_count !== undefined ? v . units_count : 0 ;
document . getElementById ( 'detailUnitCountText' ) . innerText = count + ' Unit Fisik' ;
const manageBtn = document . getElementById ( 'detailManageUnitsBtn' );
if ( manageBtn ) {
manageBtn . href = `/qma/vehicles/unit-support/${v.id}/units` ;
2026-10-12 23:47:41 +07:00
}
}
function closeDetailModal () {
document . getElementById ( 'detailVehicleModal' ) . classList . add ( 'hidden' );
}
function openDeleteModal ( id , code , brand ) {
document . getElementById ( 'deleteVehicleForm' ) . action = `/qma/vehicles/${id}` ;
document . getElementById ( 'deleteVehicleCode' ) . innerText = code + ( brand ? ` (${brand})` : '' );
document . getElementById ( 'deleteVehicleModal' ) . classList . remove ( 'hidden' );
}
function closeDeleteModal () {
document . getElementById ( 'deleteVehicleModal' ) . classList . add ( 'hidden' );
}
@ if ( $errors -> any ())
document . addEventListener ( 'DOMContentLoaded' , function () {
openAddModal ();
});
@ endif
2026-10-14 01:38:48 +07:00
// Buka & Tutup Modal Panduan Halaman
function openGuideModal () {
const modal = document . getElementById ( 'guideModal' );
if ( modal ) {
modal . classList . remove ( 'hidden' );
document . documentElement . classList . add ( 'modal-open' );
document . body . classList . add ( 'modal-open' );
}
}
function closeGuideModal () {
const modal = document . getElementById ( 'guideModal' );
if ( modal ) {
modal . classList . add ( 'hidden' );
document . documentElement . classList . remove ( 'modal-open' );
document . body . classList . remove ( 'modal-open' );
}
}
2026-10-24 14:37:46 +07:00
// Dropdown Menu Ekspor Heavy Equipment
2026-10-16 11:02:28 +07:00
function toggleSupportExportMenu ( event ) {
event . stopPropagation ();
const menu = document . getElementById ( 'exportMenuSupport' );
if ( menu ) {
menu . style . display = menu . style . display === 'block' ? 'none' : 'block' ;
}
}
document . addEventListener ( 'click' , function ( event ) {
const container = document . getElementById ( 'exportSupportDropdownContainer' );
const menu = document . getElementById ( 'exportMenuSupport' );
if ( container && ! container . contains ( event . target )) {
if ( menu ) {
menu . style . display = 'none' ;
}
}
});
2026-10-14 01:38:48 +07:00
document . addEventListener ( 'keydown' , function ( e ) {
if ( e . key === 'Escape' ) {
closeGuideModal ();
2026-10-16 11:02:28 +07:00
const exportMenu = document . getElementById ( 'exportMenuSupport' );
if ( exportMenu ) exportMenu . style . display = 'none' ;
2026-10-14 01:38:48 +07:00
}
});
2026-10-12 23:47:41 +07:00
</ script >
2026-10-14 01:38:48 +07:00
<!-- ========================================================================= -->
2026-10-24 14:37:46 +07:00
<!-- MODAL POPUP : PANDUAN HALAMAN ( HEAVY EQUIPMENT ) -->
2026-10-14 01:38:48 +07:00
<!-- ========================================================================= -->
< div id = "guideModal"
class = "hidden fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto" >
< div class = "bg-white rounded-3xl shadow-2xl max-w-lg w-full p-6 sm:p-7 border border-slate-100 transform transition-all my-8" >
<!-- Header Modal -->
< div class = "flex items-center justify-between pb-4 border-b border-slate-100" >
< div class = "flex items-center space-x-3" >
< div class = "w-9 h-9 rounded-full bg-slate-100 text-slate-700 flex items-center justify-center font-bold text-sm border border-slate-200" >
< i class = "fa-solid fa-info" ></ i >
</ div >
< div >
< h3 class = "text-base font-bold text-slate-900 tracking-tight leading-tight" > Panduan Halaman </ h3 >
2026-10-24 14:37:46 +07:00
< p class = "text-xs text-slate-500" > Master Data Heavy Equipment </ p >
2026-10-14 01:38:48 +07:00
</ div >
</ div >
< button type = "button"
onclick = "closeGuideModal()"
class = "text-slate-400 hover:text-slate-600 transition p-1.5 rounded-lg hover:bg-slate-100 cursor-pointer" >
< i class = "fa-solid fa-xmark text-lg" ></ i >
</ button >
</ div >
< div class = "mt-4 space-y-4" >
< p class = "text-xs text-slate-600 leading-relaxed" >
2026-10-24 14:37:46 +07:00
Selamat datang di menu < strong > Heavy Equipment </ strong >! Halaman ini adalah pusat pengelolaan master armada alat berat dan kendaraan pendukung operasional PT Kerinci Merangin Hidro . Di halaman ini Anda dapat :
2026-10-14 01:38:48 +07:00
</ p >
< div class = "space-y-3" >
<!-- Fitur 1 ( Hijau ) -->
< div class = "bg-slate-50/70 border border-slate-100 rounded-2xl p-3.5 flex items-start space-x-3.5" >
< div class = "w-9 h-9 rounded-xl bg-emerald-100/70 text-emerald-700 flex items-center justify-center flex-shrink-0 mt-0.5 text-sm border border-emerald-200/50" >
< i class = "fa-solid fa-tractor" ></ i >
</ div >
< div class = "min-w-0 flex-1" >
< h4 class = "text-xs font-bold text-slate-900" > Master Data Alat Berat & Support </ h4 >
< p class = "text-[11px] text-slate-500 mt-0.5 leading-relaxed" >
Mendaftarkan armada alat berat , excavator , crane , loader , atau forklift dengan data nomor unit , nomor seri , dan merek .
</ p >
</ div >
</ div >
<!-- Fitur 2 ( Biru ) -->
< div class = "bg-slate-50/70 border border-slate-100 rounded-2xl p-3.5 flex items-start space-x-3.5" >
< div class = "w-9 h-9 rounded-xl bg-blue-100/70 text-blue-700 flex items-center justify-center flex-shrink-0 mt-0.5 text-sm border border-blue-200/50" >
< i class = "fa-solid fa-certificate" ></ i >
</ div >
< div class = "min-w-0 flex-1" >
< h4 class = "text-xs font-bold text-slate-900" > Kepatuhan Izin SILO & KIR </ h4 >
< p class = "text-[11px] text-slate-500 mt-0.5 leading-relaxed" >
Memantau tanggal kedaluwarsa Surat Izin Laik Operasi ( SILO ) dan uji KIR untuk menjamin keselamatan kerja operasional lapangan .
</ p >
</ div >
</ div >
<!-- Fitur 3 ( Amber ) -->
< div class = "bg-slate-50/70 border border-slate-100 rounded-2xl p-3.5 flex items-start space-x-3.5" >
< div class = "w-9 h-9 rounded-xl bg-amber-100/70 text-amber-700 flex items-center justify-center flex-shrink-0 mt-0.5 text-sm border border-amber-200/50" >
< i class = "fa-solid fa-wrench" ></ i >
</ div >
< div class = "min-w-0 flex-1" >
< h4 class = "text-xs font-bold text-slate-900" > Pengawasan Penanggung Jawab & Status </ h4 >
< p class = "text-[11px] text-slate-500 mt-0.5 leading-relaxed" >
Menghubungkan unit dengan PIC pengawas lapangan dan memperbarui status kesiapan ( Operasional / Perbaikan / Standby ) .
</ p >
</ div >
</ div >
</ div >
</ div >
<!-- Footer Tombol -->
< div class = "pt-4 mt-5 border-t border-slate-100 flex items-center justify-end" >
< button type = "button"
onclick = "closeGuideModal()"
class = "px-6 py-2.5 rounded-xl bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs transition cursor-pointer shadow-2xs" >
Saya Mengerti
</ button >
</ div >
</ div >
</ div >
2026-10-12 23:47:41 +07:00
< style >
/* Hilangkan scrollbar default pada modal tapi tetap bisa di-scroll secara halus */
. no - scrollbar {
- ms - overflow - style : none ; /* IE and Edge */
scrollbar - width : none ; /* Firefox */
}
. no - scrollbar ::- webkit - scrollbar {
display : none ; /* Chrome, Safari, Opera */
width : 0 px ;
height : 0 px ;
}
</ style >
@ endsection