@extends('FrontUser.layouts.app') @section('title', 'Reports & Analytics') @section('content')

Call Reports & Analytics

Total Calls

{{ number_format($totalCalls ?? 0) }}

Successful Calls

{{ number_format($successfulCalls ?? 0) }}

Total Duration
@php($mins = (int) floor(($totalDurationSeconds ?? 0)/60))

{{ $mins }}m

Total Cost

₹{{ number_format($totalCost ?? 0, 2) }}

Call Volume (Last 30 Days)
Call Distribution
Call History
@forelse($calls as $call) @php($dur = (int) ($call->duration ?? 0)) @empty @endforelse
Call ID From To Duration Status Cost Date/Time Actions
{{ $call->call_id ?? $call->id }} {{ $call->from ?? '—' }} {{ $call->phone_number ?? $call->to ?? '—' }}{{ sprintf('%02d:%02d', floor($dur/60), $dur%60) }} {{ ucfirst($call->status ?? 'pending') }} ₹{{ number_format((float)($call->cost ?? 0), 2) }} {{ optional($call->date_time)->format('d M, h:i A') }}
No calls found.
@endsection @section('scripts') @endsection