@extends('layouts.bootstrap') @section('title', 'Agent Performance') @section('content')

Performance Analytics

Detailed performance metrics and trends for {{ Auth::user()->name }}

Back to Dashboard

{{ $performanceData['7_days']->total_tickets_resolved ?? 0 }}

Tickets Resolved

Last 7 days
{{ number_format($performanceData['7_days']->avg_performance_score ?? 0, 0) }}% Score

{{ $performanceData['30_days']->total_tickets_resolved ?? 0 }}

Tickets Resolved

Last 30 days
{{ number_format($performanceData['30_days']->avg_performance_score ?? 0, 0) }}% Score

{{ $performanceData['90_days']->total_tickets_resolved ?? 0 }}

Tickets Resolved

Last 90 days
{{ number_format($performanceData['90_days']->avg_performance_score ?? 0, 0) }}% Score
Efficiency Metrics

{{ number_format(($performanceData['30_days']->avg_resolution_time ?? 0) / 60, 1) }}h

Avg Resolution Time

{{ $performanceData['30_days']->total_comments_added ?? 0 }}

Comments Added

{{ $performanceData['30_days']->total_tickets_assigned ?? 0 }}

Tickets Assigned

{{ number_format($performanceData['30_days']->avg_efficiency_score ?? 0, 0) }}%

Efficiency Score

Quality Metrics

{{ number_format($performanceData['30_days']->avg_customer_satisfaction ?? 0, 1) }}

Customer Satisfaction

Out of 5.0

{{ number_format($performanceData['30_days']->avg_quality_score ?? 0, 0) }}%

Quality Score

{{ number_format($performanceData['30_days']->avg_performance_score ?? 0, 0) }}%

Overall Performance

{{ $satisfactionTrends->count() }}

Satisfaction Responses

Daily Performance Trend
Customer Satisfaction
Performance Breakdown

Performance Score

{{ number_format($performanceData['30_days']->avg_performance_score ?? 0, 0) }}%

Overall performance rating

Efficiency Score

{{ number_format($performanceData['30_days']->avg_efficiency_score ?? 0, 0) }}%

Speed and productivity

Quality Score

{{ number_format($performanceData['30_days']->avg_quality_score ?? 0, 0) }}%

Customer satisfaction

@endsection