@php $kpis = $data['kpis'] ?? []; $rows = $data['rows'] ?? []; $companyName = app(\App\Services\PbxDefaultsService::class)->companyName(); $reportLabel = $schedule->reportTypeLabel(); @endphp
{{-- Header --}}
{{ $reportLabel }}
{{ $fromDate }} – {{ $toDate }} · {{ ucfirst($schedule->frequencyLabel()) }}
{{ $companyName }}
Generated {{ now()->format('d M Y H:i') }}
{{-- KPI Tiles --}} @if(!empty($kpis))
Total Missed
{{ number_format($kpis['total_attempts'] ?? 0) }}
Unique Callers
{{ number_format($kpis['unique_callers'] ?? 0) }}
Outstanding
{{ number_format($kpis['outstanding'] ?? 0) }}
Resolved
{{ number_format($kpis['resolved'] ?? 0) }}
Resolution %
{{ $kpis['resolution_rate'] ?? 0 }}%
@endif {{-- Top Missed Callers --}} @if(!empty($rows))
Top Missed Callers
@foreach($rows as $row) @endforeach
Caller Attempts Last Missed
{{ $row['name'] ?: $row['number'] }} @if($row['name'])
{{ $row['number'] }}@endif
{{ $row['attempts'] }} {{ \Illuminate\Support\Carbon::parse($row['last'])->format('d M Y H:i') }}
@endif {{-- Footer --}}