{% extends 'base.html' %} {% block title %} {% if user.is_admin %} Management Dashboard - Optinet Global Links {% elif user.is_technician %} Technician Dashboard - Optinet Global Links {% elif user.is_client %} My Account - Optinet Global Links {% else %} Dashboard - Optinet Global Links {% endif %} {% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Management Dashboard

{% if critical_alerts %}
Critical Alerts
{% for alert in critical_alerts %}
{{ alert.title }}

{{ alert.description }}

{{ alert.count }}
{% endfor %}
{% endif %}
KSh {{ monthly_revenue|floatformat:0 }}
Monthly Revenue
{% if revenue_growth %}
{{ revenue_growth|floatformat:1 }}% vs last month
{% endif %}
KSh {{ monthly_expenses|floatformat:0 }}
Monthly Expenses
{{ expense_change|floatformat:1 }}% vs last month
KSh {{ net_profit|floatformat:0 }}
Net Profit
{{ profit_margin|floatformat:1 }}% margin
{{ total_customers }}
Total Customers
{{ new_customers_this_month }} new this month
Support Tickets
{{ resolved_tickets }}
Resolved
{{ open_tickets }}
Open
{{ overdue_tickets_24h }}
Overdue 24h+

Resolution Rate
{{ ticket_resolution_rate|floatformat:1 }}%
Avg Resolution Time
{{ avg_resolution_time|floatformat:1 }} hours
Payment Tracking
KSh {{ daily_payments|floatformat:0 }}
Today
KSh {{ weekly_payments|floatformat:0 }}
This Week
KSh {{ monthly_payments|floatformat:0 }}
This Month
Collection Rate {{ collection_rate|floatformat:1 }}%
Customer Status
Active Services {{ active_customers }}
Expired Services {{ expired_customers }}
Overdue Payments {{ overdue_customers_count }}
Performance Trends
Recent Payments
{% if recent_payments %}
{% for payment in recent_payments %} {% endfor %}
Customer Amount Method Time
{{ payment.customer.display_name|truncatechars:20 }} KSh {{ payment.amount|floatformat:0 }} {{ payment.get_payment_method_display }} {{ payment.created_at|timesince }} ago
{% else %}

No recent payments

{% endif %}
Urgent Tickets
{% if urgent_tickets %}
{% for item in urgent_tickets %} {% endfor %}
ID Customer Issue Age
{% if item.ticket.ticket_number %} {{ item.ticket.ticket_number }} {% else %} {{ item.ticket.ticket_number }} {% endif %} {{ item.customer_name|truncatechars:15 }} {{ item.ticket.title|truncatechars:20 }} {{ item.ticket.created_at|timesince }}
{% else %}

No urgent tickets

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