Chat Reports Dashboard

Reporting Period: {{ $startDate }} to {{ $endDate }}

Generated At: {{ $generatedAt }}

Chat Summary
Total Chats: {{ $chatSummary['total'] }}
Inbound Chats: {{ $chatSummary['inbound'] }}
Outbound Chats: {{ $chatSummary['outbound'] }}
Reply Rate: {{ $replyRate['reply_rate'] }}%
@foreach($chatSummary['by_status'] as $status) @endforeach
Status Total Inbound Outbound
{{ ucfirst($status['status']) }} {{ $status['count'] }} {{ $status['inbound'] }} {{ $status['outbound'] }}
Agent-wise Reports
@foreach($agentReports as $agent) @endforeach @if(count($agentReports) > 0) @endif
Agent Name Email Tickets Open Closed Inbound Outbound Total Msgs Reply Rate
{{ $agent['agent_name'] }} {{ $agent['email'] }} {{ $agent['total_tickets'] }} {{ $agent['open_tickets'] }} {{ $agent['closed_tickets'] }} {{ $agent['inbound_messages'] }} {{ $agent['outbound_messages'] }} {{ $agent['total_messages'] }} {{ $agent['reply_rate'] }}%
Total {{ collect($agentReports)->sum('total_tickets') }} {{ collect($agentReports)->sum('open_tickets') }} {{ collect($agentReports)->sum('closed_tickets') }} {{ collect($agentReports)->sum('inbound_messages') }} {{ collect($agentReports)->sum('outbound_messages') }} {{ collect($agentReports)->sum('total_messages') }} -
Organization Summary
@foreach($organizationSummary as $org) @endforeach @if(count($organizationSummary) > 0) @endif
Organization Total Chats Inbound Outbound Contacts Tickets Open Closed
{{ $org->name }} {{ $org->total_chats }} {{ $org->inbound_chats }} {{ $org->outbound_chats }} {{ $org->total_contacts }} {{ $org->total_tickets }} {{ $org->open_tickets }} {{ $org->closed_tickets }}
Total {{ $organizationSummary->sum('total_chats') }} {{ $organizationSummary->sum('inbound_chats') }} {{ $organizationSummary->sum('outbound_chats') }} {{ $organizationSummary->sum('total_contacts') }} {{ $organizationSummary->sum('total_tickets') }} {{ $organizationSummary->sum('open_tickets') }} {{ $organizationSummary->sum('closed_tickets') }}