@extends('layouts.app') @section('title', 'Heavy Equipment - Admin QMA | PT Kerinci Merangin Hidro') @section('content')
MANAJEMEN SISTEM

@if($level === 'groups') Heavy Equipment @elseif($level === 'types') Kelompok: {{ $selectedGroup }} @elseif($level === 'units') {{ $selectedType }} @endif

@if($level === 'groups') Navigasi hierarki 3 level: Kelompok Operasional → Tipe Alat Berat → Unit Fisik Individual. @elseif($level === 'types') Daftar tipe alat berat operasional di bawah kelompok {{ $selectedGroup }}. @elseif($level === 'units') Daftar unit alat berat fisik individual untuk tipe {{ $selectedType }} (Kelompok {{ $selectedGroup }}). @endif

@can('qma.vehicles.create') @endcan
@if($level === 'groups')
TOTAL ALAT BERAT
{{ $totalUnits }} Unit Fisik
6 Kelompok Operasional (Excel)
STATUS OPERASI
{{ $totalOperation }} Unit Aktif
{{ $totalUnits > 0 ? round(($totalOperation / $totalUnits) * 100, 1) : 0 }}% Utility Rate Operasional
STATUS STANDBY
{{ $totalStandby }} Unit Siap
Siap Dimobilisasi / Beroperasi
STATUS BREAKDOWN
{{ $totalBreakdown }} Unit Rusak
Dalam Perbaikan / Maintenance
@endif @if($level === 'types') @php $curMeta = $groupMetadata[$selectedGroup] ?? [ 'icon' => 'fa-truck-monster', 'badge' => 'bg-indigo-50 text-indigo-700 border-indigo-200', 'icon_bg' => 'bg-indigo-100 text-indigo-800 border-indigo-300', 'desc' => 'Daftar tipe alat berat dalam kelompok ' . $selectedGroup, ]; @endphp
Semua Kelompok
{{ $selectedGroup }} {{ $groupTypesCount }} Tipe Alat {{ $groupTotalUnits }} Unit Fisik

{{ $curMeta['desc'] }}

{{ $groupOpCount ?? 0 }} Operation {{ $groupStCount ?? 0 }} Standby {{ $groupBdCount ?? 0 }} Breakdown {{ $groupInsideCount ?? 0 }} Site / {{ $groupOutsideCount ?? 0 }} Luar
@endif @if($level === 'units')
Tipe {{ $selectedGroup }}
{{ $selectedGroup }}

{{ $selectedType }}

{{ $totalUnitsOfType ?? $typeUnits->total() }} Unit Fisik

Daftar unit alat berat fisik individual untuk tipe {{ $selectedType }} di kelompok {{ $selectedGroup }}.

{{ $opCount ?? 0 }} Operation {{ $stCount ?? 0 }} Standby {{ $bdCount ?? 0 }} Breakdown {{ $insideCount ?? 0 }} Site / {{ $outsideCount ?? 0 }} Luar
@endif
@if(isset($selectedGroup) && $selectedGroup) @endif @if(isset($selectedType) && $selectedType) @endif
@if($level === 'groups') @elseif($level === 'types') @elseif($level === 'units') @endif
@if(request()->anyFilled(['search', 'group', 'type', 'unit_category', 'status', 'site_status', 'per_page'])) @php if ($level === 'units') { $resetUrl = route('qma.vehicles.support', ['group' => $selectedGroup, 'type' => $selectedType]); } elseif ($level === 'types') { $resetUrl = route('qma.vehicles.support', ['group' => $selectedGroup]); } else { $resetUrl = route('qma.vehicles.support'); } @endphp Reset @endif
{{-- ========================================================================= --}} {{-- LEVEL 3: TABEL DAFTAR UNIT FISIK INDIVIDUAL SPESIFIK TIPE TERPILIH --}} {{-- ========================================================================= --}} @if($level === 'units') @forelse($typeUnits as $index => $u) @empty @endforelse
NO KODE UNIT MEREK & MODEL NO. SERI / RANGKA TAHUN LOKASI SAAT INI AREA STATUS AKSI
{{ $typeUnits->firstItem() + $index }} {{ $u->code }}
{{ $u->brand_type ?: ($u->brand ?: '-') }}
@if($u->model_number)
Model: {{ $u->model_number }}
@endif
{{ $u->serial_number ?: '-' }} {{ $u->production_year ?: '-' }}
{{ $u->location ?: 'Site Kerinci' }}
{{ $u->site_status_label }} @if($u->status === 'Operation') Operation @elseif($u->status === 'Standby') Standby @elseif($u->status === 'Breakdown') Breakdown @else {{ $u->status }} @endif
@can('qma.vehicles.edit') @endcan @can('qma.vehicles.delete') @endcan

Tidak ada unit fisik untuk tipe {{ $selectedType }}

Belum ada unit terdaftar atau sesuai kriteria filter.

{{-- ========================================================================= --}} {{-- LEVEL 2: TABEL DAFTAR TIPE ALAT BERAT DI DALAM KELOMPOK TERPILIH --}} {{-- ========================================================================= --}} @elseif($level === 'types') @forelse($types as $index => $t) @empty @endforelse
NO TIPE ALAT BERAT KELOMPOK JUMLAH (QTY) STATUS OPERASIONAL DISTRIBUSI AREA AKSI
{{ $types->firstItem() + $index }}
{{ $t->unit_type }} @if(isset($t->sample_brand_type) && $t->sample_brand_type) {{ $t->sample_brand_type }} @endif
{{ $selectedGroup }} {{ $t->units_count ?? 0 }} Unit
{{ $t->total_operation ?? 0 }} Operasi {{ $t->total_standby ?? 0 }} Standby {{ $t->total_breakdown ?? 0 }} Breakdown
{{ $t->inside_site_count ?? 0 }} Di Dalam Site • {{ $t->outside_site_count ?? 0 }} Di Luar Site Buka Unit

Tidak ada tipe alat berat di kelompok {{ $selectedGroup }}

Belum ada tipe alat yang sesuai dengan filter.

{{-- ========================================================================= --}} {{-- LEVEL 1: TABEL DAFTAR KELOMPOK OPERASIONAL HEAVY EQUIPMENT (EXCEL) --}} {{-- ========================================================================= --}} @else @forelse($groups as $index => $g) @php $meta = $groupMetadata[$g->operational_group] ?? [ 'icon' => 'fa-truck-monster', 'badge' => 'bg-slate-100 text-slate-700 border-slate-200', 'icon_bg' => 'bg-slate-100 text-slate-700 border-slate-200', 'desc' => 'Kelompok operasional alat berat', ]; @endphp @empty @endforelse
NO KELOMPOK OPERASIONAL TIPE ALAT JUMLAH (QTY) STATUS OPERASIONAL DISTRIBUSI AREA AKSI
{{ $groups->firstItem() + $index }}
{{ $g->operational_group }} {{ $g->operational_group }}

{{ $meta['desc'] }}

{{ $g->types_count ?? 0 }} Tipe Alat {{ $g->units_count ?? 0 }} Unit
{{ $g->total_operation ?? 0 }} Operasi {{ $g->total_standby ?? 0 }} Standby {{ $g->total_breakdown ?? 0 }} Breakdown
{{ $g->inside_site_count ?? 0 }} Dalam Site • {{ $g->outside_site_count ?? 0 }} Luar Site Lihat Kategori

Kelompok operasional tidak ditemukan

Silakan sesuaikan kata kunci pencarian Anda.

@endif
@if($level === 'units') {{ $typeUnits->links() }} @elseif($level === 'types') {{ $types->links() }} @else {{ $groups->links() }} @endif
@foreach($availableLocations ?? [] as $loc) @endforeach @foreach($availableBrands ?? [] as $b) @endforeach @foreach($availableDivisions ?? [] as $div) @endforeach @endsection