@php $kpis = $data['kpis'] ?? []; $perDay = $data['per_day'] ?? []; $perHour = $data['per_hour'] ?? []; $durationBands = $data['duration_bands'] ?? []; $companyName = app(\App\Services\PbxDefaultsService::class)->companyName(); $reportLabel = $schedule->reportTypeLabel(); @endphp
|
{{ $reportLabel }}
{{ $fromDate }} – {{ $toDate }} · {{ ucfirst($schedule->frequencyLabel()) }}
|
{{ $companyName }}
Generated {{ now()->format('d M Y H:i') }}
|
Total {{ number_format($kpis['total'] ?? 0) }} |
Answered {{ number_format($kpis['answered'] ?? 0) }} |
Rate {{ $kpis['answer_rate'] ?? 0 }}% |
Avg Talk {{ $kpis['avg_talk'] ?? '0:00' }} |
Longest {{ $kpis['longest_call'] ?? '—' }} |
No Answer {{ number_format($kpis['noanswer'] ?? 0) }} |
| {{ $h['hour'] }} |
|
{{ $h['total'] }} |
| Duration Band | Calls |
|---|---|
| {{ $band }} | {{ number_format($count) }} |
| {{ $day['date'] }} |
|
{{ $day['total'] }} |