refactor: rename Unit Support to Heavy Equipment across views, controllers, reports, and tests
This commit is contained in:
@@ -228,18 +228,18 @@
|
||||
<div>
|
||||
<div class="flex items-center justify-end mb-4">
|
||||
<span class="px-2.5 py-1 rounded-lg text-[11px] font-bold bg-amber-50 text-amber-800 border border-amber-200">
|
||||
Unit Support / Alat Berat
|
||||
Heavy Equipment
|
||||
</span>
|
||||
</div>
|
||||
<h2 class="text-lg sm:text-xl font-black text-slate-900 tracking-tight mb-1">
|
||||
Pemeriksaan Pra-Harian (P2H)
|
||||
</h2>
|
||||
<p class="text-xs sm:text-sm text-slate-500 leading-relaxed mb-4">
|
||||
Pengisian formulir checklist kelaikan operasi harian sebelum mengoperasikan alat berat support unit (Excavator, Crane, Bulldozer, dan unit support lainnya).
|
||||
Pengisian formulir checklist kelaikan operasi harian sebelum mengoperasikan alat berat Heavy Equipment (Excavator, Crane, Bulldozer, dan unit lainnya).
|
||||
</p>
|
||||
<div class="text-xs text-slate-600 bg-slate-50 p-3 rounded-xl border border-slate-100 flex items-center justify-between">
|
||||
<span class="text-slate-400">Total Unit Terdaftar:</span>
|
||||
<span class="font-extrabold text-[#1b5e20]">{{ $totalSupport }} Unit Support</span>
|
||||
<span class="font-extrabold text-[#1b5e20]">{{ $totalSupport }} Heavy Equipment</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -395,12 +395,12 @@
|
||||
<span class="text-[11px] font-bold text-blue-700 uppercase tracking-wider block mb-1">Modul 2: QMA</span>
|
||||
<h3 class="text-lg font-bold text-slate-900 mb-3">Master Kendaraan & Log Aktivitas</h3>
|
||||
<p class="text-slate-600 text-xs sm:text-sm leading-relaxed mb-4">
|
||||
Dikelola oleh Quality Management Asset untuk memantau armada Kendaraan Ringan (LV) dan Unit Support proyek.
|
||||
Dikelola oleh Quality Management Asset untuk memantau armada Kendaraan Ringan (LV) dan Heavy Equipment proyek.
|
||||
</p>
|
||||
<ul class="space-y-2 text-xs text-slate-600">
|
||||
<li class="flex items-center space-x-2">
|
||||
<i class="fa-solid fa-check text-blue-600 text-[11px]"></i>
|
||||
<span>Master Light Vehicle (LV) & Unit Support</span>
|
||||
<span>Master Light Vehicle (LV) & Heavy Equipment</span>
|
||||
</li>
|
||||
<li class="flex items-center space-x-2">
|
||||
<i class="fa-solid fa-check text-blue-600 text-[11px]"></i>
|
||||
|
||||
@@ -299,7 +299,7 @@
|
||||
|
||||
<a href="{{ route('qma.vehicles.support') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.vehicles.support') || request()->routeIs('qma.vehicles.support.units*') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Unit Support</span>
|
||||
<span>Heavy Equipment</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('qma.unit_management.index') }}"
|
||||
@@ -339,7 +339,7 @@
|
||||
|
||||
<a href="{{ route('qma.support_timesheet.index') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.support_timesheet.*') || request()->routeIs('qma.activity.support_timesheet') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Timesheet Unit Support</span>
|
||||
<span>Timesheet Heavy Equipment</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -365,7 +365,7 @@
|
||||
@can('qma.p2h.view')
|
||||
<a href="{{ route('qma.p2h.index') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.p2h.index') || request()->routeIs('qma.p2h.show') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>P2H Unit Support</span>
|
||||
<span>P2H Heavy Equipment</span>
|
||||
</a>
|
||||
@endcan
|
||||
|
||||
@@ -406,7 +406,7 @@
|
||||
@if(auth()->user()->canAny(['qma.p2h.view', 'qma.vehicles.view']))
|
||||
<a href="{{ route('qma.p2h.summary') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.p2h.summary') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Summary P2H Unit Support</span>
|
||||
<span>Summary P2H Heavy Equipment</span>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@@ -671,7 +671,7 @@
|
||||
|
||||
<a href="{{ route('qma.vehicles.support') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.vehicles.support') || request()->routeIs('qma.vehicles.support.units*') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Unit Support</span>
|
||||
<span>Heavy Equipment</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('qma.unit_management.index') }}"
|
||||
@@ -711,7 +711,7 @@
|
||||
|
||||
<a href="{{ route('qma.support_timesheet.index') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.support_timesheet.*') || request()->routeIs('qma.activity.support_timesheet') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Timesheet Unit Support</span>
|
||||
<span>Timesheet Heavy Equipment</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -737,7 +737,7 @@
|
||||
@can('qma.p2h.view')
|
||||
<a href="{{ route('qma.p2h.index') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.p2h.index') || request()->routeIs('qma.p2h.show') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>P2H Unit Support</span>
|
||||
<span>P2H Heavy Equipment</span>
|
||||
</a>
|
||||
@endcan
|
||||
|
||||
@@ -778,7 +778,7 @@
|
||||
@if(auth()->user()->canAny(['qma.p2h.view', 'qma.vehicles.view']))
|
||||
<a href="{{ route('qma.p2h.summary') }}"
|
||||
class="block px-3.5 py-2 text-xs rounded-xl transition {{ request()->routeIs('qma.p2h.summary') ? 'bg-[#1b5e20] text-white font-bold shadow-sm' : 'text-slate-600 hover:text-slate-900 hover:bg-slate-100 font-medium' }}">
|
||||
<span>Summary P2H Unit Support</span>
|
||||
<span>Summary P2H Heavy Equipment</span>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@@ -905,9 +905,9 @@
|
||||
@elseif(request()->routeIs('qma.vehicles.lv'))
|
||||
Light Vehicle
|
||||
@elseif(request()->routeIs('qma.vehicles.support.units*'))
|
||||
Daftar Unit Fisik Support
|
||||
Daftar Unit Fisik Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.vehicles.support'))
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.vehicles.*'))
|
||||
Data Kendaraan
|
||||
@elseif(request()->routeIs('qma.unit_transfers.create'))
|
||||
@@ -921,15 +921,15 @@
|
||||
@elseif(request()->routeIs('qma.activity.log'))
|
||||
Timesheet LV
|
||||
@elseif(request()->routeIs('qma.activity.support_timesheet'))
|
||||
History Timesheet Unit Support
|
||||
History Timesheet Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.support_timesheet.*'))
|
||||
Timesheet Unit Support
|
||||
Timesheet Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.p2h.summary'))
|
||||
Summary P2H Unit Support
|
||||
Summary P2H Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.p2h.templates*'))
|
||||
Master Template P2H
|
||||
@elseif(request()->routeIs('qma.p2h.*'))
|
||||
P2H Unit Support
|
||||
P2H Heavy Equipment
|
||||
@elseif(request()->routeIs('qma.activity.summary'))
|
||||
Summary Timesheet LV
|
||||
@elseif(request()->routeIs('profile.*'))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Form P2H Unit Support - ' . $vehicle->code)
|
||||
@section('title', 'Form P2H Heavy Equipment - ' . $vehicle->code)
|
||||
|
||||
@section('content')
|
||||
<div class="max-w-3xl mx-auto space-y-4">
|
||||
@@ -13,11 +13,11 @@
|
||||
<img src="{{ asset('images/logo-kerinci.png') }}" alt="Kerinci Hydropower" class="h-7 w-auto object-contain">
|
||||
</div>
|
||||
|
||||
<!-- Header Info Unit Support (Readonly Card - Selaras dengan Form LV) -->
|
||||
<!-- Header Info Heavy Equipment (Readonly Card - Selaras dengan Form LV) -->
|
||||
<div class="bg-gradient-to-r from-slate-800 to-slate-900 text-white p-5 rounded-2xl shadow-sm border border-slate-700">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-amber-500/20 text-amber-300 border border-amber-500/30">
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
</span>
|
||||
<span class="text-xs text-slate-400 flex items-center">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse mr-1.5"></span>
|
||||
@@ -25,7 +25,7 @@
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<h2 class="text-xl font-bold tracking-tight text-white mb-3">Pemeriksaan Pra-Harian (P2H) Unit Support</h2>
|
||||
<h2 class="text-xl font-bold tracking-tight text-white mb-3">Pemeriksaan Pra-Harian (P2H) Heavy Equipment</h2>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2 text-xs text-slate-300 bg-slate-800/80 p-3 rounded-xl border border-slate-700/80">
|
||||
<div><span class="text-slate-400 font-medium">Kode Unit:</span> <span class="font-black text-white text-sm ml-1">{{ $vehicle->code }}</span></div>
|
||||
@@ -128,7 +128,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Utama P2H Unit Support -->
|
||||
<!-- Form Utama P2H Heavy Equipment -->
|
||||
<form action="{{ route('p2h.store', ['code' => $vehicle->code]) }}" method="POST" id="p2hForm" class="space-y-4">
|
||||
@csrf
|
||||
<input type="hidden" name="template_id" value="{{ $template->id }}">
|
||||
@@ -351,7 +351,7 @@
|
||||
<label for="general_notes" class="block text-xs font-bold uppercase tracking-wider text-slate-700">
|
||||
Catatan Umum / Keterangan Tambahan Operator
|
||||
</label>
|
||||
<textarea name="general_notes" id="general_notes" rows="3" placeholder="Tuliskan temuan atau catatan umum lainnya mengenai kondisi unit support hari ini..." class="w-full rounded-xl border border-slate-300 bg-white px-3.5 py-2.5 text-xs text-slate-800 focus:border-emerald-500 focus:ring-4 focus:ring-emerald-500/10 transition resize-none">{{ old('general_notes') }}</textarea>
|
||||
<textarea name="general_notes" id="general_notes" rows="3" placeholder="Tuliskan temuan atau catatan umum lainnya mengenai kondisi Heavy Equipment hari ini..." class="w-full rounded-xl border border-slate-300 bg-white px-3.5 py-2.5 text-xs text-slate-800 focus:border-emerald-500 focus:ring-4 focus:ring-emerald-500/10 transition resize-none">{{ old('general_notes') }}</textarea>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Aksi Submit -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Pemeriksaan Pra-Harian (P2H) Unit Support')
|
||||
@section('title', 'Pemeriksaan Pra-Harian (P2H) Heavy Equipment')
|
||||
|
||||
@section('content')
|
||||
<div class="w-full space-y-6">
|
||||
@@ -12,7 +12,7 @@
|
||||
Katalog Pemeriksaan Pra-Harian (P2H)
|
||||
</h1>
|
||||
<span class="px-2.5 py-1 rounded-lg text-xs font-black bg-amber-50 text-amber-800 border border-amber-200">
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
</span>
|
||||
</div>
|
||||
<div class="text-sm sm:text-base text-slate-600 font-medium truncate mt-1 flex items-center flex-wrap gap-1.5">
|
||||
@@ -76,7 +76,7 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- Grid Kartu Unit Support -->
|
||||
<!-- Grid Kartu Heavy Equipment -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" id="p2hCardsContainer">
|
||||
@forelse($vehicles as $v)
|
||||
<div class="p2h-card bg-white rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition p-5 flex flex-col justify-between">
|
||||
@@ -84,7 +84,7 @@
|
||||
<!-- Badge Kategori & Status -->
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<span class="inline-flex items-center px-2.5 py-1 rounded-lg text-[11px] font-bold bg-amber-50 text-amber-800 border border-amber-200">
|
||||
{{ $v->unit_category ?? 'Unit Support' }}
|
||||
{{ $v->unit_category ?? 'Heavy Equipment' }}
|
||||
</span>
|
||||
|
||||
@php
|
||||
@@ -147,7 +147,7 @@
|
||||
</a>
|
||||
</div>
|
||||
@else
|
||||
<h3 class="text-base font-bold text-slate-800">Unit Support Tidak Ditemukan</h3>
|
||||
<h3 class="text-base font-bold text-slate-800">Heavy Equipment Tidak Ditemukan</h3>
|
||||
<p class="text-xs text-slate-500 mt-1">Coba sesuaikan kata kunci pencarian atau filter kategori alat berat Anda.</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
<select name="type" onchange="this.form.submit()" class="w-full text-xs rounded-xl border border-slate-200 bg-slate-50/50 hover:bg-white focus:bg-white px-3.5 py-2.5 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
|
||||
<option value="">Semua Kategori</option>
|
||||
<option value="lv" {{ request('type') === 'lv' ? 'selected' : '' }}>Light Vehicle (LV)</option>
|
||||
<option value="support" {{ request('type') === 'support' ? 'selected' : '' }}>Unit Support</option>
|
||||
<option value="support" {{ request('type') === 'support' ? 'selected' : '' }}>Heavy Equipment</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -297,7 +297,7 @@
|
||||
</span>
|
||||
@else
|
||||
<span class="inline-flex items-center px-2 py-0.5 rounded text-[10px] font-bold bg-amber-50 text-amber-800">
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
<p class="mt-2.5 text-center text-[11px] font-bold text-slate-500 uppercase tracking-wider">ARMADA LIGHT VEHICLE</p>
|
||||
</div>
|
||||
|
||||
<!-- 2. Unit Support & Alat Berat (Pastel Biru Muda) -->
|
||||
<!-- 2. Heavy Equipment (Pastel Biru Muda) -->
|
||||
<div>
|
||||
<div class="bg-[#edf5fd] border border-[#d2e4fb] rounded-3xl h-28 flex items-center justify-center shadow-xs">
|
||||
<span class="text-4xl sm:text-5xl font-black text-[#1976d2]">{{ $totalSupport }}</span>
|
||||
</div>
|
||||
<p class="mt-2.5 text-center text-[11px] font-bold text-slate-500 uppercase tracking-wider">UNIT SUPPORT</p>
|
||||
<p class="mt-2.5 text-center text-[11px] font-bold text-slate-500 uppercase tracking-wider">HEAVY EQUIPMENT</p>
|
||||
</div>
|
||||
|
||||
<!-- 3. Log Timesheet Hari Ini (Pastel Soft Blue) -->
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Layout 2 Kolom Bawah: Log Pergerakan & Status Unit Support (Persis Layout 2 Kolom HSE) -->
|
||||
<!-- Layout 2 Kolom Bawah: Log Pergerakan & Status Heavy Equipment (Persis Layout 2 Kolom HSE) -->
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 items-start">
|
||||
|
||||
<!-- Kolom Kiri: Log Aktivitas Kendaraan Terkini (Gerbang Pos) -->
|
||||
@@ -147,7 +147,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Kolom Kanan: 2 Kartu Stacked (Monitoring Kelayakan P2H & Status Unit Support) -->
|
||||
<!-- Kolom Kanan: 2 Kartu Stacked (Monitoring Kelayakan P2H & Status Heavy Equipment) -->
|
||||
<div class="space-y-6">
|
||||
|
||||
<!-- Kartu Atas: Monitoring Kelayakan P2H Terkini -->
|
||||
@@ -155,7 +155,7 @@
|
||||
<div class="flex items-center justify-between mb-5 pb-3 border-b border-slate-100">
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-slate-900">Monitoring Kelayakan P2H</h3>
|
||||
<p class="text-[11px] text-slate-500">Prioritas kondisi lembar periksa pra-harian unit support</p>
|
||||
<p class="text-[11px] text-slate-500">Prioritas kondisi lembar periksa pra-harian Heavy Equipment</p>
|
||||
</div>
|
||||
@can('qma.p2h.view')
|
||||
<a href="{{ route('qma.p2h.index') }}" class="text-xs font-bold text-[#1b5e20] hover:underline flex items-center gap-1">
|
||||
@@ -188,7 +188,7 @@
|
||||
{{ $p2h->vehicle->code ?? 'Unit' }}
|
||||
</span>
|
||||
<span class="inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-bold bg-amber-50 text-amber-800 border border-amber-200">
|
||||
{{ $p2h->vehicle->unit_category ?? ($p2h->template->name ?? 'Unit Support') }}
|
||||
{{ $p2h->vehicle->unit_category ?? ($p2h->template->name ?? 'Heavy Equipment') }}
|
||||
</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-slate-600 mt-0.5">
|
||||
@@ -222,16 +222,16 @@
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-slate-400 text-center py-4">Belum ada data riwayat inspeksi P2H unit support.</p>
|
||||
<p class="text-xs text-slate-400 text-center py-4">Belum ada data riwayat inspeksi P2H Heavy Equipment.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Kartu Bawah: Status Kesiapan Unit Support (Format Rapi Persis HSE) -->
|
||||
<!-- Kartu Bawah: Status Kesiapan Heavy Equipment (Format Rapi Persis HSE) -->
|
||||
<div class="bg-white rounded-2xl border border-slate-200 p-6 shadow-sm">
|
||||
<div class="flex items-center justify-between mb-4 pb-3 border-b border-slate-100">
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-slate-900">Kesiapan Unit Support</h3>
|
||||
<h3 class="text-sm font-bold text-slate-900">Kesiapan Heavy Equipment</h3>
|
||||
<p class="text-[11px] text-slate-500">Kesiapan operasional armada alat berat & unit bantu</p>
|
||||
</div>
|
||||
<a href="{{ route('qma.vehicles.support') }}" class="text-xs font-bold text-[#1b5e20] hover:underline flex items-center gap-1">
|
||||
@@ -295,7 +295,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-slate-400 text-center py-4">Belum ada data unit support terdaftar.</p>
|
||||
<p class="text-xs text-slate-400 text-center py-4">Belum ada data Heavy Equipment terdaftar.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
@@ -354,7 +354,7 @@
|
||||
<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 Unit Support</h4>
|
||||
<h4 class="text-xs font-bold text-slate-900">Master Data Heavy Equipment</h4>
|
||||
<p class="text-[11px] text-slate-500 mt-0.5 leading-relaxed">
|
||||
Memantau armada alat berat, spesifikasi teknis, serta masa berlaku izin kelaikan operasional SILO dan KIR.
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'P2H Unit Support - Admin QMA')
|
||||
@section('title', 'P2H Heavy Equipment - Admin QMA')
|
||||
|
||||
@section('content')
|
||||
<div class="w-full space-y-6">
|
||||
@@ -15,12 +15,12 @@
|
||||
<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"
|
||||
title="Panduan Halaman P2H Unit Support">
|
||||
title="Panduan Halaman P2H Heavy Equipment">
|
||||
<i class="fa-solid fa-info"></i>
|
||||
</button>
|
||||
</div>
|
||||
<h2 class="text-3xl sm:text-4xl font-extrabold text-slate-900 tracking-tight">
|
||||
P2H Unit Support
|
||||
P2H Heavy Equipment
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
<th class="py-3.5 px-4 text-center w-12">No</th>
|
||||
<th class="py-3.5 px-4">Waktu Inspeksi</th>
|
||||
<th class="py-3.5 px-4">No. Transaksi</th>
|
||||
<th class="py-3.5 px-4">Unit Support</th>
|
||||
<th class="py-3.5 px-4">Heavy Equipment</th>
|
||||
<th class="py-3.5 px-4">Operator (SIMPER)</th>
|
||||
<th class="py-3.5 px-4 text-center">Shift</th>
|
||||
<th class="py-3.5 px-4 text-right">HM Operasi</th>
|
||||
@@ -215,7 +215,7 @@
|
||||
</div>
|
||||
@else
|
||||
<i class="fa-solid fa-clipboard-question text-3xl mb-2 text-slate-300 block"></i>
|
||||
<span class="font-bold text-slate-600">Belum ada catatan riwayat P2H Unit Support</span>
|
||||
<span class="font-bold text-slate-600">Belum ada catatan riwayat P2H Heavy Equipment</span>
|
||||
<p class="text-[11px] text-slate-400 mt-0.5">Form P2H yang dikirim oleh operator alat berat akan muncul pada daftar ini.</p>
|
||||
@endif
|
||||
</td>
|
||||
@@ -356,7 +356,7 @@ function closeGuideModal() {
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown Menu Ekspor P2H Unit Support
|
||||
// Dropdown Menu Ekspor P2H Heavy Equipment
|
||||
function toggleP2hExportMenu(event) {
|
||||
event.stopPropagation();
|
||||
const menu = document.getElementById('exportMenuP2h');
|
||||
@@ -385,7 +385,7 @@ function closeGuideModal() {
|
||||
</script>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (LOG P2H UNIT SUPPORT) -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (LOG P2H HEAVY EQUIPMENT) -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="guideModal"
|
||||
onclick="if(event.target === this) closeGuideModal()"
|
||||
@@ -399,7 +399,7 @@ function closeGuideModal() {
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-base font-bold text-slate-900 tracking-tight leading-tight">Panduan Halaman</h3>
|
||||
<p class="text-xs text-slate-500">P2H Unit Support</p>
|
||||
<p class="text-xs text-slate-500">P2H Heavy Equipment</p>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button"
|
||||
@@ -411,7 +411,7 @@ function closeGuideModal() {
|
||||
|
||||
<div class="mt-4 space-y-4">
|
||||
<p class="text-xs text-slate-600 leading-relaxed">
|
||||
Halaman <strong>P2H Unit Support</strong> digunakan untuk memantau, memeriksa, dan memvalidasi riwayat pemeriksaan kelayakan operasi harian alat berat proyek yang diajukan oleh operator.
|
||||
Halaman <strong>P2H Heavy Equipment</strong> digunakan untuk memantau, memeriksa, dan memvalidasi riwayat pemeriksaan kelayakan operasi harian alat berat proyek yang diajukan oleh operator.
|
||||
</p>
|
||||
|
||||
<div class="space-y-3">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-1 no-print">
|
||||
<a href="{{ route('qma.p2h.index') }}" class="inline-flex items-center space-x-1.5 text-xs font-bold text-slate-600 hover:text-[#1b5e20] transition bg-white px-3 py-1.5 rounded-xl border border-slate-200 shadow-sm w-fit">
|
||||
<i class="fa-solid fa-arrow-left text-[11px]"></i>
|
||||
<span>Kembali ke P2H Unit Support</span>
|
||||
<span>Kembali ke P2H Heavy Equipment</span>
|
||||
</a>
|
||||
|
||||
<!-- Action Buttons: Ekspor Data & Status Validasi -->
|
||||
@@ -60,9 +60,9 @@
|
||||
|
||||
<!-- 3 Kolom Info: Unit, Operator, Ringkasan HM -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 text-xs">
|
||||
<!-- Kolom 1: Unit Support -->
|
||||
<!-- Kolom 1: Heavy Equipment -->
|
||||
<div class="bg-slate-800/80 p-3.5 rounded-xl border border-slate-700/80 space-y-1.5">
|
||||
<span class="text-[10px] font-bold text-amber-400 uppercase tracking-wider block">UNIT SUPPORT</span>
|
||||
<span class="text-[10px] font-bold text-amber-400 uppercase tracking-wider block">HEAVY EQUIPMENT</span>
|
||||
<p class="text-base font-black text-white leading-tight">{{ $record->vehicle->code }}</p>
|
||||
<p class="text-slate-300 font-medium">{{ $record->vehicle->brand_type }}</p>
|
||||
<div class="pt-1 text-[11px] text-slate-400 border-t border-slate-700/60 flex items-center justify-between">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Summary P2H Unit Support - Admin QMA')
|
||||
@section('title', 'Summary P2H Heavy Equipment - Admin QMA')
|
||||
|
||||
@section('content')
|
||||
<div class="w-full space-y-6">
|
||||
@@ -20,7 +20,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<h2 class="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">
|
||||
Summary P2H Unit Support
|
||||
Summary P2H Heavy Equipment
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
@@ -150,11 +150,11 @@
|
||||
class="w-full text-xs rounded-xl border border-slate-200 bg-slate-50/50 hover:bg-white focus:bg-white px-3.5 py-2.5 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
|
||||
</div>
|
||||
|
||||
<!-- Unit Support -->
|
||||
<!-- Heavy Equipment -->
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5">Unit Support</label>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5">Heavy Equipment</label>
|
||||
<select name="vehicle_id" onchange="this.form.submit()" class="w-full text-xs rounded-xl border border-slate-200 bg-slate-50/50 hover:bg-white focus:bg-white px-3.5 py-2.5 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
|
||||
<option value="">Semua Unit Support</option>
|
||||
<option value="">Semua Heavy Equipment</option>
|
||||
@foreach($supportVehicles as $sv)
|
||||
<option value="{{ $sv->id }}" {{ request('vehicle_id') == $sv->id ? 'selected' : '' }}>
|
||||
{{ $sv->code }} - {{ $sv->brand_type }}
|
||||
@@ -242,11 +242,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tabel Rekapitulasi per Unit Support -->
|
||||
<!-- Tabel Rekapitulasi per Heavy Equipment -->
|
||||
<div class="bg-white rounded-none sm:rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
|
||||
<div class="px-5 py-4 border-b border-slate-100 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3">
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-slate-900">Rekapitulasi Pemeriksaan per Unit Support</h3>
|
||||
<h3 class="text-sm font-bold text-slate-900">Rekapitulasi Pemeriksaan per Heavy Equipment</h3>
|
||||
<p class="text-xs text-slate-400 mt-0.5">Ringkasan kepatuhan dan status kelayakan inspeksi masing-masing unit alat berat.</p>
|
||||
</div>
|
||||
<span class="text-xs font-semibold px-2.5 py-1 rounded-full bg-slate-100 text-slate-600">
|
||||
@@ -482,7 +482,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown Menu Ekspor Summary P2H Unit Support
|
||||
// Dropdown Menu Ekspor Summary P2H Heavy Equipment
|
||||
function toggleP2hSummaryExportMenu(event) {
|
||||
event.stopPropagation();
|
||||
const menu = document.getElementById('exportMenuP2hSummary');
|
||||
@@ -524,7 +524,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-base font-bold text-slate-900 tracking-tight leading-tight">Panduan Halaman</h3>
|
||||
<p class="text-xs text-slate-500">Summary P2H Unit Support</p>
|
||||
<p class="text-xs text-slate-500">Summary P2H Heavy Equipment</p>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button"
|
||||
@@ -536,7 +536,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
<div class="mt-4 space-y-4">
|
||||
<p class="text-xs text-slate-600 leading-relaxed">
|
||||
Halaman <strong>Summary P2H Unit Support</strong> menampilkan rekapitulasi performa dan tingkat kelaikan operasi harian alat berat.
|
||||
Halaman <strong>Summary P2H Heavy Equipment</strong> menampilkan rekapitulasi performa dan tingkat kelaikan operasi harian alat berat.
|
||||
</p>
|
||||
|
||||
<div class="space-y-3">
|
||||
@@ -545,7 +545,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
<i class="fa-solid fa-chart-pie"></i>
|
||||
</div>
|
||||
<div class="min-w-0 flex-1">
|
||||
<h4 class="text-xs font-bold text-slate-900">Rekapitulasi per Unit Support</h4>
|
||||
<h4 class="text-xs font-bold text-slate-900">Rekapitulasi per Heavy Equipment</h4>
|
||||
<p class="text-[11px] text-slate-500 mt-0.5 leading-relaxed">
|
||||
Melihat total inspeksi, jumlah lolos persetujuan, unit dengan temuan kerusakan, serta catatan jam kerja (HM) setiap alat.
|
||||
</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<h2 class="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">
|
||||
Master Template P2H Unit Support
|
||||
Master Template P2H Heavy Equipment
|
||||
</h2>
|
||||
<p class="text-xs sm:text-sm text-slate-500 mt-1">
|
||||
Daftar checksheet resmi pemeriksaan pra-harian untuk setiap kategori unit alat berat di proyek PLTA Merangin.
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- Tabel Master Template P2H Unit Support (Tampilan Tabel Bukan Card) -->
|
||||
<!-- Tabel Master Template P2H Heavy Equipment (Tampilan Tabel Bukan Card) -->
|
||||
<div class="bg-white rounded-none sm:rounded-2xl border border-slate-200 shadow-sm overflow-hidden" id="templatesTableContainer">
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full text-xs text-left border-collapse">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
$isHistoryRoute = request()->routeIs('qma.activity.support_timesheet');
|
||||
@endphp
|
||||
|
||||
@section('title', ($isHistoryRoute ? 'History Timesheet Unit Support' : 'Timesheet Unit Support') . ' - Admin QMA | PT Kerinci Merangin Hidro')
|
||||
@section('title', ($isHistoryRoute ? 'History Timesheet Heavy Equipment' : 'Timesheet Heavy Equipment') . ' - Admin QMA | PT Kerinci Merangin Hidro')
|
||||
|
||||
@section('content')
|
||||
<div class="w-full space-y-6">
|
||||
@@ -20,12 +20,12 @@
|
||||
<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"
|
||||
title="Panduan Halaman Timesheet Unit Support">
|
||||
title="Panduan Halaman Timesheet Heavy Equipment">
|
||||
<i class="fa-solid fa-info"></i>
|
||||
</button>
|
||||
</div>
|
||||
<h2 class="text-3xl sm:text-4xl font-extrabold text-slate-900 tracking-tight">
|
||||
{{ $isHistoryRoute ? 'History Timesheet' : 'Timesheet Unit Support' }}
|
||||
{{ $isHistoryRoute ? 'History Timesheet' : 'Timesheet Heavy Equipment' }}
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<button type="button"
|
||||
onclick="openAddModal()"
|
||||
class="w-full sm:w-auto flex-1 sm:flex-none bg-[#1b5e20] hover:bg-[#144919] text-white 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 whitespace-nowrap"
|
||||
title="Catat Timesheet Harian Unit Support">
|
||||
title="Catat Timesheet Harian Heavy Equipment">
|
||||
<i class="fa-solid fa-plus text-xs"></i>
|
||||
<span class="truncate">Catat Timesheet</span>
|
||||
</button>
|
||||
@@ -136,11 +136,11 @@
|
||||
title="Sampai Tanggal">
|
||||
</div>
|
||||
|
||||
<!-- Filter Unit Support -->
|
||||
<!-- Filter Heavy Equipment -->
|
||||
<select name="vehicle_id"
|
||||
onchange="this.form.submit()"
|
||||
class="w-full sm:w-auto text-xs rounded-xl border border-slate-200 bg-white px-2.5 sm:px-3 py-2.5 text-slate-700 font-semibold focus:outline-none focus:border-[#1b5e20] focus:ring-2 focus:ring-[#1b5e20]/10 shadow-sm transition truncate">
|
||||
<option value="">Semua Unit Support</option>
|
||||
<option value="">Semua Heavy Equipment</option>
|
||||
@foreach($unitSupports as $u)
|
||||
<option value="{{ $u->id }}" {{ request('vehicle_id') == $u->id ? 'selected' : '' }}>
|
||||
{{ $u->code }} - {{ $u->brand_type }}
|
||||
@@ -198,7 +198,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Tabel Data Timesheet Unit Support dengan Header Biru Tua Navy (Pada Mobile: Format Kotak Tanpa Border Radius) -->
|
||||
<!-- Tabel Data Timesheet Heavy Equipment 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="min-w-full text-xs text-left border-collapse">
|
||||
@@ -245,7 +245,7 @@
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<!-- Unit Support -->
|
||||
<!-- Heavy Equipment -->
|
||||
<td class="py-3.5 px-4">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="font-mono font-extrabold text-slate-900 text-xs">
|
||||
@@ -378,7 +378,7 @@
|
||||
<tr>
|
||||
<td colspan="11" class="py-12 text-center text-slate-400">
|
||||
<i class="fa-solid fa-clipboard-list text-4xl mb-3 block text-slate-300"></i>
|
||||
<p class="text-sm font-semibold text-slate-700">Belum ada data timesheet unit support</p>
|
||||
<p class="text-sm font-semibold text-slate-700">Belum ada data timesheet Heavy Equipment</p>
|
||||
@if(!$isHistoryRoute)
|
||||
<p class="text-xs text-slate-400 mt-1">Gunakan tombol "Catat Timesheet" di atas untuk menambahkan laporan harian.</p>
|
||||
@else
|
||||
@@ -416,7 +416,7 @@
|
||||
|
||||
@if(!$isHistoryRoute)
|
||||
<!-- ========================================== -->
|
||||
<!-- 1. MODAL TAMBAH TIMESHEET UNIT SUPPORT -->
|
||||
<!-- 1. MODAL TAMBAH TIMESHEET HEAVY EQUIPMENT -->
|
||||
<!-- ========================================== -->
|
||||
<div id="addTimesheetModal" class="hidden fixed inset-0 z-50 overflow-y-auto" style="display: none;">
|
||||
<div class="fixed inset-0 bg-slate-900/60 backdrop-blur-xs transition-opacity" onclick="closeAddModal()"></div>
|
||||
@@ -428,7 +428,7 @@
|
||||
<div>
|
||||
<h3 class="text-sm font-extrabold text-slate-900 flex items-center gap-2">
|
||||
<span class="w-2 h-2 rounded-full bg-[#1b5e20]"></span>
|
||||
Catat Timesheet Unit Support
|
||||
Catat Timesheet Heavy Equipment
|
||||
</h3>
|
||||
<p class="text-xs text-slate-500 mt-0.5">Input laporan kerja alat berat & penugasan operator harian.</p>
|
||||
</div>
|
||||
@@ -441,7 +441,7 @@
|
||||
<form id="addTimesheetForm" method="POST" action="{{ route('qma.support_timesheet.store') }}" class="p-6 space-y-4">
|
||||
@csrf
|
||||
|
||||
<!-- Baris 1: Lokasi Kerja & Unit Support -->
|
||||
<!-- Baris 1: Lokasi Kerja & Heavy Equipment -->
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5">
|
||||
@@ -479,7 +479,7 @@
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5 flex items-center justify-between">
|
||||
<span>Unit Support (Alat Berat) <span class="text-rose-500">*</span></span>
|
||||
<span>Heavy Equipment <span class="text-rose-500">*</span></span>
|
||||
<span id="addUnitCounterBadge" class="text-[10px] font-semibold text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded border border-emerald-200 hidden"></span>
|
||||
</label>
|
||||
<select name="vehicle_id"
|
||||
@@ -639,7 +639,7 @@
|
||||
@endif
|
||||
|
||||
<!-- ========================================== -->
|
||||
<!-- MODAL DETAIL TIMESHEET UNIT SUPPORT -->
|
||||
<!-- MODAL DETAIL TIMESHEET HEAVY EQUIPMENT -->
|
||||
<!-- ========================================== -->
|
||||
<div id="detailTimesheetModal" class="hidden fixed inset-0 z-50 overflow-y-auto" style="display: none;">
|
||||
<div class="fixed inset-0 bg-slate-900/60 backdrop-blur-xs transition-opacity" onclick="closeDetailModal()"></div>
|
||||
@@ -675,7 +675,7 @@
|
||||
|
||||
<div class="grid grid-cols-2 gap-3 p-3 bg-slate-50 rounded-xl border border-slate-200/60">
|
||||
<div>
|
||||
<span class="text-[10px] font-bold uppercase text-slate-400 block">Unit Support</span>
|
||||
<span class="text-[10px] font-bold uppercase text-slate-400 block">Heavy Equipment</span>
|
||||
<span id="detailUnit" class="font-bold text-slate-800"></span>
|
||||
</div>
|
||||
<div>
|
||||
@@ -724,7 +724,7 @@
|
||||
|
||||
|
||||
<!-- ========================================== -->
|
||||
<!-- 2. MODAL EDIT TIMESHEET UNIT SUPPORT -->
|
||||
<!-- 2. MODAL EDIT TIMESHEET HEAVY EQUIPMENT -->
|
||||
<!-- ========================================== -->
|
||||
<div id="editTimesheetModal" class="hidden fixed inset-0 z-50 overflow-y-auto" style="display: none;">
|
||||
<div class="fixed inset-0 bg-slate-900/60 backdrop-blur-xs transition-opacity" onclick="closeEditModal()"></div>
|
||||
@@ -736,7 +736,7 @@
|
||||
<div>
|
||||
<h3 class="text-sm font-extrabold text-slate-900 flex items-center gap-2">
|
||||
<span class="w-2 h-2 rounded-full bg-amber-500"></span>
|
||||
Edit Timesheet Unit Support
|
||||
Edit Timesheet Heavy Equipment
|
||||
</h3>
|
||||
<p id="editTimesheetSubtitle" class="text-xs text-slate-500 font-mono mt-0.5">Koreksi data jam kerja atau aktivitas operasional.</p>
|
||||
</div>
|
||||
@@ -750,7 +750,7 @@
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<!-- Baris 1: Lokasi Kerja & Unit Support -->
|
||||
<!-- Baris 1: Lokasi Kerja & Heavy Equipment -->
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5">
|
||||
@@ -788,7 +788,7 @@
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-700 mb-1.5 flex items-center justify-between">
|
||||
<span>Unit Support (Alat Berat) <span class="text-rose-500">*</span></span>
|
||||
<span>Heavy Equipment <span class="text-rose-500">*</span></span>
|
||||
<span id="editUnitCounterBadge" class="text-[10px] font-semibold text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded border border-emerald-200 hidden"></span>
|
||||
</label>
|
||||
<select name="vehicle_id"
|
||||
@@ -977,7 +977,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Datalist Rekomendasi Unit Support -->
|
||||
<!-- Datalist Rekomendasi Heavy Equipment -->
|
||||
<datalist id="unitSupportDatalist">
|
||||
@foreach($unitSupports as $u)
|
||||
<option value="{{ $u->code }}">{{ $u->brand_type }} (Terakhir: {{ number_format($u->current_km ?? 0, 1, ',', '.') }})</option>
|
||||
@@ -999,7 +999,7 @@
|
||||
</datalist>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (TIMESHEET UNIT SUPPORT) -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (TIMESHEET HEAVY EQUIPMENT) -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="guideModal"
|
||||
onclick="if(event.target === this) closeGuideModal()"
|
||||
@@ -1013,7 +1013,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-base font-extrabold text-slate-900 tracking-tight">
|
||||
Panduan Timesheet Unit Support
|
||||
Panduan Timesheet Heavy Equipment
|
||||
</h3>
|
||||
<p class="text-xs text-slate-500 font-medium">
|
||||
Tata cara pencatatan jam kerja mesin & operasional alat berat
|
||||
@@ -1045,7 +1045,7 @@
|
||||
2. Filter Lokasi Kerja & Unit Ready
|
||||
</h4>
|
||||
<p class="text-slate-600">
|
||||
Saat menambah timesheet, pilih lokasi kerja terlebih dahulu. Daftar unit support akan disaring otomatis menampilkan unit yang berada pada lokasi tersebut.
|
||||
Saat menambah timesheet, pilih lokasi kerja terlebih dahulu. Daftar Heavy Equipment akan disaring otomatis menampilkan unit yang berada pada lokasi tersebut.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1274,7 +1274,7 @@
|
||||
modal.style.display = 'none';
|
||||
}
|
||||
|
||||
// 5. Handler saat Lokasi Kerja Dipilih (Filter Unit Support yang Ready di Lokasi tersebut)
|
||||
// 5. Handler saat Lokasi Kerja Dipilih (Filter Heavy Equipment yang Ready di Lokasi tersebut)
|
||||
function onTimesheetLocationChanged(selectedLoc, prefix, preselectVehicleId = null) {
|
||||
const customWrapper = document.getElementById(`${prefix}CustomLocationWrapper`);
|
||||
const customInput = document.getElementById(`${prefix}CustomLocationInput`);
|
||||
@@ -1336,13 +1336,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Render option unit support
|
||||
// Render option heavy equipment
|
||||
vehicleSelect.innerHTML = '';
|
||||
const defaultPrompt = document.createElement('option');
|
||||
defaultPrompt.value = '';
|
||||
defaultPrompt.disabled = true;
|
||||
defaultPrompt.textContent = filteredUnits.length > 0
|
||||
? `-- Pilih Unit Support (${filteredUnits.length} Unit Ready) --`
|
||||
? `-- Pilih Heavy Equipment (${filteredUnits.length} Unit Ready) --`
|
||||
: `-- Tidak ada unit di lokasi ini (Pilih 'Semua Unit') --`;
|
||||
vehicleSelect.appendChild(defaultPrompt);
|
||||
|
||||
@@ -1385,7 +1385,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 7. Handler saat Unit Support Dipilih
|
||||
// 7. Handler saat Heavy Equipment Dipilih
|
||||
function onVehicleSelectChanged(selectEl, prefix) {
|
||||
const opt = selectEl.options[selectEl.selectedIndex];
|
||||
if (!opt || !opt.value) return;
|
||||
@@ -1509,7 +1509,7 @@
|
||||
return div.innerHTML;
|
||||
}
|
||||
|
||||
// 9. Modal Panduan Halaman (Data Timesheet Unit Support)
|
||||
// 9. Modal Panduan Halaman (Data Timesheet Heavy Equipment)
|
||||
function openGuideModal() {
|
||||
const modal = document.getElementById('guideModal');
|
||||
if (modal) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<h2 class="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight flex items-center space-x-3">
|
||||
<span>Riwayat Posisi: {{ $vehicle->code }}</span>
|
||||
<span class="px-2.5 py-0.5 rounded-full text-xs font-bold {{ $vehicle->isLightVehicle() ? 'bg-blue-50 text-blue-700 border border-blue-200' : 'bg-amber-50 text-amber-800 border border-amber-200' }}">
|
||||
{{ $vehicle->isLightVehicle() ? 'Light Vehicle' : 'Unit Support' }}
|
||||
{{ $vehicle->isLightVehicle() ? 'Light Vehicle' : 'Heavy Equipment' }}
|
||||
</span>
|
||||
</h2>
|
||||
<p class="text-xs sm:text-sm text-slate-500 mt-1">
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
</a>
|
||||
<a href="{{ route('qma.unit_management.index', array_merge(request()->except('category', 'page'), ['category' => 'unit_support'])) }}"
|
||||
class="px-3 py-1.5 rounded-lg transition {{ request('category') === 'unit_support' ? 'bg-white text-slate-900 font-bold shadow-2xs' : 'text-slate-600 hover:text-slate-900' }}">
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -765,7 +765,7 @@
|
||||
Status Posisi: Di Dalam vs Di Luar Site
|
||||
</h4>
|
||||
<p class="pl-7 text-slate-500">
|
||||
Setiap unit (LV dan Unit Support) dikelompokkan ke dalam dua status posisi site:
|
||||
Setiap unit (LV dan Heavy Equipment) dikelompokkan ke dalam dua status posisi site:
|
||||
<span class="font-semibold text-emerald-700">Di Dalam Site</span> (sedang berada di area kerja proyek KMH) dan
|
||||
<span class="font-semibold text-amber-700">Di Luar Site</span> (dinas luar, mess kumun, atau bengkel luar).
|
||||
</p>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<option value="{{ $unit->id }}"
|
||||
data-code="{{ $unit->code }}"
|
||||
data-brand="{{ $unit->brand_type }}"
|
||||
data-category="{{ $unit->unit_category ?? ($unit->parent?->brand_type ?? 'Unit Support') }}"
|
||||
data-category="{{ $unit->unit_category ?? ($unit->parent?->brand_type ?? 'Heavy Equipment') }}"
|
||||
data-location="{{ $unit->location ?: 'Site Kerinci' }}"
|
||||
data-site-status="{{ $unit->site_status ?? 'inside_site' }}"
|
||||
data-photo="{{ $unit->photo_url }}"
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
<tr>
|
||||
<td class="py-2.5 px-4 font-bold text-slate-600">Kategori & Jenis Unit</td>
|
||||
<td class="py-2.5 px-4 font-semibold text-slate-800">
|
||||
{{ $transfer->vehicle?->unit_category ?? ($transfer->vehicle?->parent?->brand_type ?? 'Unit Support') }}
|
||||
{{ $transfer->vehicle?->unit_category ?? ($transfer->vehicle?->parent?->brand_type ?? 'Heavy Equipment') }}
|
||||
@if($transfer->vehicle?->unit_type)
|
||||
• {{ $transfer->vehicle?->unit_type }}
|
||||
@endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Unit Support - Admin QMA | PT Kerinci Merangin Hidro')
|
||||
@section('title', 'Heavy Equipment - Admin QMA | PT Kerinci Merangin Hidro')
|
||||
|
||||
@section('content')
|
||||
<div class="w-full space-y-6">
|
||||
@@ -16,12 +16,12 @@
|
||||
<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"
|
||||
title="Panduan Halaman Unit Support">
|
||||
title="Panduan Halaman Heavy Equipment">
|
||||
<i class="fa-solid fa-info"></i>
|
||||
</button>
|
||||
</div>
|
||||
<h2 class="text-3xl sm:text-4xl font-extrabold text-slate-900 tracking-tight">
|
||||
Unit Support
|
||||
Heavy Equipment
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tabel Data Kategori Unit Support (Header Navy Solid #06213f) -->
|
||||
<!-- Tabel Data Kategori Heavy Equipment (Header Navy Solid #06213f) -->
|
||||
<div class="bg-white rounded-none sm:rounded-2xl border border-slate-200 shadow-sm overflow-hidden">
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full text-xs text-left border-collapse">
|
||||
@@ -233,7 +233,7 @@
|
||||
</div>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL: TAMBAH UNIT SUPPORT (KENDARAAN BERAT) -->
|
||||
<!-- MODAL: TAMBAH HEAVY EQUIPMENT (KENDARAAN BERAT) -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="addVehicleModal"
|
||||
onclick="if(event.target === this) closeAddModal()"
|
||||
@@ -242,7 +242,7 @@
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div>
|
||||
<h3 class="text-xl font-bold text-slate-900 tracking-tight">
|
||||
Tambah Kategori Unit Support
|
||||
Tambah Kategori Heavy Equipment
|
||||
</h3>
|
||||
<p class="text-xs text-slate-500 mt-0.5">Mendaftarkan kategori/tipe master aset baru ke sistem.</p>
|
||||
</div>
|
||||
@@ -256,7 +256,7 @@
|
||||
<input type="hidden" name="category" value="unit_support">
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-800 mb-1">Foto Kategori Unit Support (Opsional)</label>
|
||||
<label class="block text-xs font-bold text-slate-800 mb-1">Foto Kategori Heavy Equipment (Opsional)</label>
|
||||
<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">
|
||||
@@ -355,7 +355,7 @@
|
||||
</div>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL: EDIT KATEGORI UNIT SUPPORT -->
|
||||
<!-- MODAL: EDIT KATEGORI HEAVY EQUIPMENT -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="editVehicleModal"
|
||||
onclick="if(event.target === this) closeEditModal()"
|
||||
@@ -364,7 +364,7 @@
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div>
|
||||
<h3 class="text-xl font-bold text-slate-900 tracking-tight">
|
||||
Edit Kategori Unit Support
|
||||
Edit Kategori Heavy Equipment
|
||||
</h3>
|
||||
<p class="text-xs text-slate-500 mt-0.5">Memperbarui informasi master kategori aset.</p>
|
||||
</div>
|
||||
@@ -378,7 +378,7 @@
|
||||
<input type="hidden" name="category" value="unit_support">
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-bold text-slate-800 mb-1.5">Foto Kategori Unit Support</label>
|
||||
<label class="block text-xs font-bold text-slate-800 mb-1.5">Foto Kategori Heavy Equipment</label>
|
||||
<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">
|
||||
@@ -475,7 +475,7 @@
|
||||
</div>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL: DETAIL SPESIFIKASI KATEGORI UNIT SUPPORT -->
|
||||
<!-- MODAL: DETAIL SPESIFIKASI KATEGORI HEAVY EQUIPMENT -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="detailVehicleModal" onclick="if(event.target === this) closeDetailModal()" 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">
|
||||
<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">
|
||||
@@ -484,7 +484,7 @@
|
||||
<h3 class="text-xl font-bold text-slate-900 tracking-tight">
|
||||
Detail Spesifikasi Kategori
|
||||
</h3>
|
||||
<p class="text-xs text-slate-500 mt-0.5">Informasi master kategori aset Unit Support.</p>
|
||||
<p class="text-xs text-slate-500 mt-0.5">Informasi master kategori aset Heavy Equipment.</p>
|
||||
</div>
|
||||
<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>
|
||||
@@ -494,7 +494,7 @@
|
||||
<div class="space-y-4">
|
||||
<!-- 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">
|
||||
<img id="detailPhoto" src="" alt="Foto Kategori Unit Support" class="w-full h-full object-cover">
|
||||
<img id="detailPhoto" src="" alt="Foto Kategori Heavy Equipment" class="w-full h-full object-cover">
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3.5">
|
||||
@@ -580,7 +580,7 @@
|
||||
</div>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL: KONFIRMASI HAPUS UNIT SUPPORT (KENDARAAN BERAT) -->
|
||||
<!-- MODAL: KONFIRMASI HAPUS HEAVY EQUIPMENT (KENDARAAN BERAT) -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="deleteVehicleModal" onclick="if(event.target === this) closeDeleteModal()" 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">
|
||||
<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">
|
||||
@@ -590,11 +590,11 @@
|
||||
</div>
|
||||
|
||||
<h3 class="text-lg font-bold text-slate-900 tracking-tight">
|
||||
Konfirmasi Hapus Unit Support
|
||||
Konfirmasi Hapus Heavy Equipment
|
||||
</h3>
|
||||
|
||||
<p class="text-xs text-slate-600 mt-2 leading-relaxed">
|
||||
Apakah Anda yakin ingin menghapus data unit support <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>?
|
||||
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>?
|
||||
</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">
|
||||
@@ -711,7 +711,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Daftar semua kode kendaraan unit support yang sudah terdaftar di sistem
|
||||
// Daftar semua kode kendaraan heavy equipment yang sudah terdaftar di sistem
|
||||
const existingVehicleCodes = @json($existingCodes ?? \App\Models\Vehicle::unitSupports()->pluck('code')->map(fn($c) => strtoupper(trim($c))));
|
||||
|
||||
const addCodeInput = document.getElementById('addCodeInput');
|
||||
@@ -777,7 +777,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Elemen modal Edit Unit Support
|
||||
// Elemen modal Edit Heavy Equipment
|
||||
const editCodeInput = document.getElementById('editCode');
|
||||
const editCodeError = document.getElementById('editCodeError');
|
||||
const editCodeErrorText = document.getElementById('editCodeErrorText');
|
||||
@@ -1010,7 +1010,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown Menu Ekspor Unit Support
|
||||
// Dropdown Menu Ekspor Heavy Equipment
|
||||
function toggleSupportExportMenu(event) {
|
||||
event.stopPropagation();
|
||||
const menu = document.getElementById('exportMenuSupport');
|
||||
@@ -1039,7 +1039,7 @@
|
||||
</script>
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (UNIT SUPPORT) -->
|
||||
<!-- MODAL POPUP: PANDUAN HALAMAN (HEAVY EQUIPMENT) -->
|
||||
<!-- ========================================================================= -->
|
||||
<div id="guideModal"
|
||||
onclick="if(event.target === this) closeGuideModal()"
|
||||
@@ -1053,7 +1053,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-base font-bold text-slate-900 tracking-tight leading-tight">Panduan Halaman</h3>
|
||||
<p class="text-xs text-slate-500">Master Data Unit Support</p>
|
||||
<p class="text-xs text-slate-500">Master Data Heavy Equipment</p>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button"
|
||||
@@ -1065,7 +1065,7 @@
|
||||
|
||||
<div class="mt-4 space-y-4">
|
||||
<p class="text-xs text-slate-600 leading-relaxed">
|
||||
Selamat datang di menu <strong>Unit Support</strong>! Halaman ini adalah pusat pengelolaan master armada alat berat dan kendaraan pendukung operasional PT Kerinci Merangin Hidro. Di halaman ini Anda dapat:
|
||||
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:
|
||||
</p>
|
||||
|
||||
<div class="space-y-3">
|
||||
|
||||
@@ -964,7 +964,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Dropdown Menu Ekspor Unit Support Kategori Ini
|
||||
// Dropdown Menu Ekspor Heavy Equipment Kategori Ini
|
||||
function toggleSupportUnitsExportMenu(event) {
|
||||
event.stopPropagation();
|
||||
const menu = document.getElementById('exportMenuSupportUnits');
|
||||
|
||||
Reference in New Issue
Block a user