Reporting Period: {{ $startDate }} to {{ $endDate }}
Generated At: {{ $generatedAt }}
| Status | Total | Inbound | Outbound |
|---|---|---|---|
| {{ ucfirst($status['status']) }} | {{ $status['count'] }} | {{ $status['inbound'] }} | {{ $status['outbound'] }} |
| Agent Name | 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 | 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') }} |