Periode: {{Carbon\Carbon::parse($startDate)->format('d/m/Y')}} - {{Carbon\Carbon::parse($endDate)->format('d/m/Y')}}
Cabang: {{$branchName}}
Ringkasan
Total Service: {{$services->count()}}
Selesai: {{$services->where('status', 'selesai')->count()}}
Tertunda (> 3 hari): {{$services->filter(function($s) { return \Carbon\Carbon::parse($s->service_date)->diffInDays(\Carbon\Carbon::now()) > 3 && !in_array($s->status, ['selesai', 'dibatalkan']); })->count()}}
Siap Diambil: {{$services->where('status', 'siap_diambil')->count()}}
| Status | Jumlah | Total Nilai |
|---|---|---|
| {{ucwords($status)}} | {{$stat['count']}} | Rp {{number_format($stat['total_value'], 0, ',', '.')}} |
| TOTAL | {{$services->count()}} | Rp {{number_format($services->sum('total_cost'), 0, ',', '.')}} |
| No. Service | Tanggal | Customer | Device | Status | Teknisi | Total |
|---|---|---|---|---|---|---|
| {{$service->service_number}} | {{$service->service_date->format('d/m/Y')}} | {{$service->customer->name}} | {{$service->device_brand}} {{$service->device_model}} | {{ucwords($service->status)}} | {{$service->technician->name ?? '-'}} | Rp {{number_format($service->total_cost, 0, ',', '.')}} |
Dicetak pada: {{now()->format('d/m/Y H:i:s')}}