LAPORAN KINERJA TEKNISI

Periode: {{Carbon\Carbon::parse($startDate)->format('d/m/Y')}} - {{Carbon\Carbon::parse($endDate)->format('d/m/Y')}}

Teknisi: {{$technicianName}} | Cabang: {{$branchName}}

Ringkasan

Total Service: {{$services->count()}}

Selesai: {{$services->where('status', 'selesai')->count()}}

Jumlah Teknisi: {{$technicianStats->count()}}

Total Pendapatan: Rp {{number_format($services->where('status', 'selesai')->sum('total_cost') / 1000, 0)}}K

Statistik Per Teknisi

@foreach($technicianStats as $stat) @endforeach
Teknisi Total Selesai Proses Batal Success Rate Avg Durasi Pendapatan
{{$stat['technician_name']}} {{$stat['total_services']}} {{$stat['completed']}} {{$stat['in_progress']}} {{$stat['cancelled']}} {{$stat['success_rate']}}% {{$stat['avg_duration_days']}} hari Rp {{number_format($stat['total_revenue'], 0, ',', '.')}}
TOTAL {{$technicianStats->sum('total_services')}} {{$technicianStats->sum('completed')}} {{$technicianStats->sum('in_progress')}} {{$technicianStats->sum('cancelled')}} - - Rp {{number_format($technicianStats->sum('total_revenue'), 0, ',', '.')}}

Detail Service

@foreach($services as $service) @endforeach
No. Service Tanggal Customer Device Teknisi Status Total
{{$service->service_number}} {{$service->service_date->format('d/m/Y')}} {{$service->customer->name}} {{$service->device_brand}} {{$service->device_model}} {{$service->technician->name ?? '-'}} {{ucwords($service->status)}} Rp {{number_format($service->total_cost, 0, ',', '.')}}

Dicetak pada: {{now()->format('d/m/Y H:i:s')}}