CDR Report Export

Generated: {{ now()->format('Y-m-d H:i:s') }}  |  Period: {{ $f['from'] ?? '—' }} to {{ $f['to'] ?? '—' }} @if(!empty($f['direction']))  |  Direction: {{ $f['direction'] }} @endif @if(!empty($f['disposition']))  |  Disposition: {{ $f['disposition'] }} @endif @if(!empty($f['source']))  |  Source: {{ $f['source'] }} @endif @if(!empty($f['destination']))  |  Destination: {{ $f['destination'] }} @endif  |  {{ $rows->count() }} records
@if(!empty($truncated))
Note: this PDF is capped at {{ number_format($rows->count()) }} rows. Your filter matched more records — use the Excel or CSV export to download the complete filtered result set.
@endif @foreach ($rows as $r) @php $dirClass = match($r->direction ?? '') { 'OUTBOUND'=>'dir-out','INBOUND'=>'dir-in','INTERNAL'=>'dir-int',default=>'dir-unk' }; $dspClass = match($r->disposition ?? '') { 'ANSWERED'=>'disp-ans','NO ANSWER'=>'disp-no','BUSY'=>'disp-busy','FAILED'=>'disp-fail',default=>'' }; @endphp @endforeach
Date & Time Direction Source Destination Duration Disposition Department
{{ $r->calldate ?? '—' }} {{ $r->direction ?? 'UNKNOWN' }} {{ $r->src ?? '—' }} {{ $r->dst ?? '—' }} {{ $r->dur_fmt ?? '00:00' }} {{ $r->disposition ?? '—' }} @if(!empty($r->department_name)){{ $r->department_name }}@else —@endif