{% extends 'base.html' %} {% load humanize %} {% block title %}Customer Requests Analytics{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Customer Requests Analytics

Performance metrics and insights

📋 View Requests 📊 Generate Report
{{ analytics_data.total_requests }}
Total Requests
{{ analytics_data.resolved_requests }}
Resolved Requests
{{ resolution_rate|floatformat:1 }}%
Resolution Rate
{{ avg_resolution_time|floatformat:1 }}h
Avg Resolution Time
📊 Request Type Distribution
{% for item in type_distribution %}
{{ item.request_type|title }} {{ item.count }}
{% endfor %}
📊 Priority Distribution
{% for item in priority_distribution %}
{{ item.priority|title }} {{ item.count }}
{% endfor %}
đŸ‘Ĩ Staff Workload Distribution
{% for staff in staff_workload %}
{{ staff.assigned_to__first_name }} {{ staff.assigned_to__last_name }}
Resolved: {{ staff.resolved_count }} | Pending: {{ staff.pending_count }} | In Progress: {{ staff.in_progress_count }}
{{ staff.assigned_count }}
{% empty %}

No staff assignments found

{% endfor %}
📈 Monthly Trends
{% for trend in monthly_trends %}
{{ trend.month }}
{{ trend.total_requests }} {{ trend.resolved_requests }}
{% endfor %}
{% if total_overdue > 0 %}
âš ī¸ Overdue Requests Alert

You have {{ total_overdue }} requests that are overdue (older than 24 hours).

{% endif %}
â„šī¸ Summary Statistics
{{ analytics_data.pending_requests }}
Pending
{{ analytics_data.in_progress_requests }}
In Progress
{{ analytics_data.resolved_requests }}
Resolved
{{ total_overdue }}
Overdue
{{ staff_workload|length }}
Active Staff
{{ type_distribution|length }}
Request Types
{% endblock %} {% block extra_js %} {% endblock %}