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

Heavy Equipment

@can('qma.vehicles.create') @endcan
@if(isset($selectedType) && $selectedType)
Semua Tipe Alat

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

Daftar unit alat berat spesifik di bawah tipe {{ $selectedType }}.

{{ $opCount ?? 0 }} Operation {{ $stCount ?? 0 }} Standby {{ $bdCount ?? 0 }} Breakdown {{ $insideCount ?? 0 }} Site / {{ $outsideCount ?? 0 }} Luar
@endif
@if(isset($selectedType) && $selectedType) @endif
@if(!isset($selectedType) || !$selectedType) @else @endif
@if(request()->anyFilled(['search', 'unit_category', 'status', 'site_status', 'per_page'])) Reset @endif
@if(isset($selectedType) && $selectedType) @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.

@else @forelse($vehicles as $index => $v) @empty @endforelse
NO TIPE ALAT BERAT KATEGORI JUMLAH (QTY) STATUS OPERASIONAL DISTRIBUSI AREA AKSI
{{ $vehicles->firstItem() + $index }}
{{ $v->unit_type }} @if(isset($v->sample_brand_type) && $v->sample_brand_type) {{ $v->sample_brand_type }} @endif
{{ $v->unit_category ?? 'SUPPORT' }} {{ $v->units_count ?? 0 }} Unit
{{ $v->total_operation ?? 0 }} Operasi {{ $v->total_standby ?? 0 }} Standby {{ $v->total_breakdown ?? 0 }} Breakdown
{{ $v->inside_site_count ?? 0 }} Di Dalam Site • {{ $v->outside_site_count ?? 0 }} Di Luar Site Buka Unit
@if(request('search'))

Data "{{ request('search') }}" tidak ditemukan di tabel

Pastikan kata kunci yang dicari sudah benar.

@else

Belum ada tipe alat berat

Belum ada tipe alat berat yang sesuai dengan filter.

@endif
@endif
@if(isset($selectedType) && $selectedType) {{ $typeUnits->links() }} @else {{ $vehicles->links() }} @endif
@endsection