{{-- Drill-down timeline for a single missed caller. Returned as an HTML fragment and injected into the modal body on the Missed Calls report. --}} @php use Illuminate\Support\Carbon; $answeredCount = $events->where('answered', true)->count(); @endphp
Number
{{ $number }}
Calls in window
{{ $events->count() }} ({{ $answeredCount }} answered)
Window
{{ Carbon::parse($from)->format('d M') }} – {{ Carbon::parse($to)->format('d M Y') }}
@if($events->isEmpty())
No call activity found for this number in the selected window.
@else
@foreach($events as $e) @endforeach
When Direction Extension Outcome Duration Recording
{{ Carbon::parse($e->at)->format('d M Y H:i:s') }} @if($e->direction === 'in') Inbound @else Outbound @endif {{ $e->ext ?: '—' }} @if($e->answered) Answered @else {{ $e->disposition ?: 'No Answer' }} @endif {{ $e->answered ? $e->duration : '—' }} @if($e->recording) @else — @endif
@endif