{{ __('Laporan Service Request') }}

Monitoring permintaan pekerjaan teknis

-
@php // human readable "Xd Yh" / "Yh Zm" formatter for the resolution-time card $formatMinutes = function (?float $minutes) { if ($minutes === null) { return '-'; } $totalMinutes = (int) round($minutes); $days = intdiv($totalMinutes, 1440); $hours = intdiv($totalMinutes % 1440, 60); $mins = $totalMinutes % 60; $parts = []; if ($days > 0) $parts[] = $days . 'h'; if ($hours > 0) $parts[] = $hours . 'j'; if ($days === 0 && $mins > 0) $parts[] = $mins . 'm'; return $parts ? implode(' ', $parts) : '< 1m'; }; @endphp
{{-- Summary Metric Cards --}}

Total

{{ number_format($statusCounts->sum()) }}

Menunggu

{{ number_format($statusCounts->get('Pending', 0)) }}

Dikerjakan

{{ number_format($statusCounts->get('Working', 0)) }}

Selesai

{{ number_format($statusCounts->get('Completed', 0)) }}

Ditolak / Dibatalkan

{{ number_format($statusCounts->get('Rejected', 0) + $statusCounts->get('Cancelled', 0)) }}

Menunggu Rating

{{ number_format($statusCounts->get('Pending for Rating', 0)) }}

Total Waktu Service

{{ $formatMinutes($totalResolutionMinutes) }}

Rata-rata Penyelesaian

{{ $formatMinutes($avgResolutionMinutes) }}

Rata-rata Rating

{{ $avgRating !== null ? number_format($avgRating, 2) . ' / 5' : '-' }}

{{-- Row 1: Location, Destination department --}}

Note : Diurutkan dari yang paling tinggi

{{-- Row 3b: Total repair time per month --}}

Total Waktu Perbaikan Tiap Bulan

{{-- Row 3c: Total breakdown time per month (work_category = Breakdown) --}}

Total Waktu Break Down Tiap Bulan

@if ($monthlyBreakdownHours->isEmpty())

Tidak ada data breakdown pada periode ini.

@else
@endif
{{-- Row 3d: Total service (resolution) time per area --}}

Waktu Service pada Tiap Area

@if ($areaResolutionHours->isEmpty())

Tidak ada data service pada periode ini.

@else
@endif
{{-- Row 3e: Total breakdown time per area --}}

Waktu Break Down pada Tiap Area

@if ($areaBreakdownHours->isEmpty())

Tidak ada data breakdown pada periode ini.

@else
@endif
{{-- Row 1: Status, Monthly, Priority --}}

Distribusi Status

Permintaan Bulanan

Distribusi Prioritas

{{-- Row 2: Work category, Problem category --}}

Kategori Pekerjaan

Kategori Masalah

{{-- Row 2b: Problematic assets/machines --}}

Aset / Mesin Paling Bermasalah

@if ($assetCounts->isEmpty())

Tidak ada aset terkait tercatat pada periode ini.

@else
@endif
{{-- Row 4: Rating distribution, Resolution time by priority --}}

Distribusi Rating

Rata-rata Waktu Penyelesaian per Prioritas (jam)

{{-- Row 5: Staff performance --}}

Performa Staff (Top 10 berdasarkan jumlah tugas)

@if ($staffPerformance->isEmpty())

Belum ada data staff yang menangani tugas pada periode ini.

@else
@foreach ($staffPerformance as $staff) @endforeach
Staff Total Tugas Selesai Rata-rata Rating
{{ $staff['name'] }} {{ $staff['total'] }} {{ $staff['completed'] }} @if ($staff['avg_rating'] !== null) {{ $staff['avg_rating'] }} @else - @endif
@endif
@push('scripts') @endpush