refactor: rename Unit Support to Heavy Equipment across views, controllers, reports, and tests
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user