@extends('layouts.dashboard') @section('title', 'User-wise Number History') @section('content')
| User | Calls | Incoming | Outgoing | Missed | SMS | |
|---|---|---|---|---|---|---|
| {{ $stat->name }} | {{ number_format($stat->calls_total_count) }} | {{ number_format($stat->calls_incoming_count) }} | {{ number_format($stat->calls_outgoing_count) }} | {{ number_format($stat->calls_missed_count) }} | {{ number_format($stat->sms_count) }} | {{ number_format($stat->whatsapp_count) }} |
| No user statistics found. | ||||||
| User | Phone Number | Incoming | Outgoing | Missed | SMS | Total | First Seen | Last Seen | ||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $row->user_name ?? 'N/A' }} |
{{ $row->phone_number }}
@if(!empty($row->contact_name))
{{ $row->contact_name }}
@endif
|
{{ number_format($row->incoming_calls) }} | {{ number_format($row->outgoing_calls) }} | {{ number_format($row->missed_calls) }} | {{ number_format($row->sms_count) }} | {{ number_format($row->whatsapp_count) }} | {{ number_format($row->total_events) }} | {{ \Carbon\Carbon::parse($row->first_seen)->format('Y-m-d H:i') }} | {{ \Carbon\Carbon::parse($row->last_seen)->format('Y-m-d H:i') }} | View History |
| No number history found for selected filters. | ||||||||||
| Time | User | Phone Number | Event | Direction / Type | Status | Details |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($log->event_time)->format('Y-m-d H:i:s') }} | {{ $log->user_name ?? 'N/A' }} |
{{ $log->phone_number }}
@if(!empty($log->contact_name))
{{ $log->contact_name }}
@endif
|
@if($log->event_type === 'call') CALL @elseif($log->event_type === 'whatsapp') WHATSAPP @else SMS @endif | {{ strtoupper($log->direction ?? '-') }} | {{ strtoupper($log->delivery_status ?? $log->status_key ?? '-') }} |
@if($log->event_type === 'call')
Duration: {{ $log->call_duration ?? 0 }}s
@if(!empty($log->status_note))
Note: {{ $log->status_note }} @endif @else {{ $log->message ?? '-' }} @endif |
| No detailed history found. | ||||||