@extends('layouts.dashboard') @section('title', 'Call Summary Report') @section('content')

Call Summary Report

@if($canExport) Export to Excel @endif
@if(isset($clients) && $clients->count() > 0)
@endif

{{ number_format($summary['total']) }}

Total Calls

{{ number_format($summary['incoming']) }}

Incoming

{{ number_format($summary['outgoing']) }}

Outgoing

{{ number_format($summary['missed']) }}

Missed

{{ gmdate('H:i:s', $summary['total_duration'] ?? 0) }}

Total Duration

{{ gmdate('i:s', $summary['avg_duration'] ?? 0) }}

Avg Duration
Call Trend
Call Type Distribution
Call Details
@forelse($report as $log) @empty @endforelse
ID User Phone Number Type Status Note Duration SMS Sent Time
{{ $log->id }} {{ $log->user->name ?? 'N/A' }} {{ $log->phone_number }} @if(!empty($log->contact_name))
{{ $log->contact_name }}
@endif
@switch(strtoupper($log->call_type)) @case('INCOMING') Incoming @break @case('OUTGOING') Outgoing @break @case('MISSED') Missed @break @case('REJECTED') Rejected @break @default {{ $log->call_type }} @endswitch @if($log->status_label) {{ $log->status_label }} @else @endif {{ $log->status_note ?: '—' }} {{ gmdate('i:s', $log->call_duration ?? 0) }} @if($log->sms_sent) Yes @else No @endif {{ $log->call_time }}
No calls found for the selected criteria.
{{ $report->appends(request()->query())->links() }}
@push('scripts') @endpush @endsection