Agent Performance Report

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

Generated At: {{ $generatedAt }}

Agent Name: {{ $agent->first_name }} {{ $agent->last_name }}
Email: {{ $agent->email }}
Role: {{ ucfirst($agent->role) }}
Performance Statistics
Total Tickets
{{ $agentStats['total_tickets'] ?? 0 }}
Open Tickets
{{ $agentStats['open_tickets'] ?? 0 }}
Closed Tickets
{{ $agentStats['closed_tickets'] ?? 0 }}
Reply Rate
{{ $agentStats['reply_rate'] ?? 0 }}%
Inbound Messages
{{ $agentStats['inbound_messages'] ?? 0 }}
Outbound Messages
{{ $agentStats['outbound_messages'] ?? 0 }}
Total Messages
{{ $agentStats['total_messages'] ?? 0 }}
Recent Conversations
@foreach($conversations as $conv) @endforeach @if(count($conversations) == 0) @endif
Contact Name Phone Organization Direction Status Time
{{ $conv->contact_name ?? 'N/A' }} {{ $conv->contact_phone ?? 'N/A' }} {{ $conv->organization_name ?? 'N/A' }} {{ ucfirst($conv->direction ?? 'N/A') }} {{ $conv->delivery_status ?? 'N/A' }} {{ $conv->message_time ?? 'N/A' }}
No conversations found for this period.