{% extends 'base.html' %} {% block title %}Management Dashboard - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Management Dashboard

Real-time system overview and analytics

{% if urgent_tickets or overdue_customers > 5 or open_tickets > 20 %} {% endif %}
{{ total_customers|default:0 }}
Total Customers {{ customer_growth|default:0 }}% this month
KSh {{ total_revenue|floatformat:0|default:0 }}
Monthly Revenue {{ revenue_trend|default:0 }}%
{{ network_health.uptime|default:"99.9%" }}
Network Uptime {{ network_health.active_connections|default:0 }} active connections
{{ avg_ticket_resolution_time|default:0 }}h
Avg. Resolution Time {{ open_tickets|default:0 }} tickets open
{{ payment_collection_rate|floatformat:1|default:0 }}%
Collection Rate KSh {{ overdue_amount|floatformat:0|default:0 }} overdue
{{ customer_satisfaction|default:4.2 }}/5
Customer Satisfaction {{ churn_rate|default:2.1 }}% churn rate
Revenue & Customer Growth Trends
Network Health
Bandwidth Usage {{ network_health.bandwidth_utilization|default:65 }}%
Active Connections {{ network_health.active_connections|default:0 }}/{{ total_customers }}
Router Status {{ network_health.router_status|default:"online"|title }}
Database Online
Billing System Online
Critical Issues
{{ critical_issues_count|default:0 }}
{% if overdue_customers_list %}
{% for customer in overdue_customers_list|slice:":5" %}
{{ customer.full_name }}
{{ customer.phone }}
Overdue
{% endfor %} {% if overdue_customers > 5 %} {% endif %}
{% else %}

No critical issues detected

{% endif %}
Service Package Performance
{% if service_distribution %}
{% for service in service_distribution|slice:":5" %} {% endfor %}
Service Customers Revenue Performance
{{ service.name }}
{{ service.speed_mbps }}Mbps
{{ service.customer_count }} KSh {{ service.price|floatformat:0 }}
{% else %}

No service data available

{% endif %}
Recent Customers
View All
{% if recent_customers %}
{% for customer in recent_customers|slice:":6" %}
{{ customer.full_name }} {% if customer.service %} {{ customer.service.name }} {% endif %}
{{ customer.phone }} {{ customer.created_at|date:"M d" }}
{% if customer.is_active %} Active {% else %} Inactive {% endif %} {% if customer.customer_id %} {% endif %}
{% endfor %}
{% else %}

No recent customers

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}