{% extends "./base.html" %} {% load static %} {% load humanize %} {% block page_title %}School Management{% endblock %} {% block extra_css %} {{ block.super }} {% endblock %} {% block content %}
{{ user_role|default:"School" }} Workspace

School Dashboard

{% if current_year and current_term %} Term {{ current_term.term }} - {{ current_year.academic_year }} live insights {% elif selected_term_label %} {{ selected_term_label }} live insights {% else %} Live operational, academic, and financial insights {% endif %}

{% if term_options and current_term %}
{% endif %}
{% if is_admin_dashboard %}

Core Trends

Enrollment Trend

Fees Collection

Attendance Trend

Alerts & Quick Actions

    {% for alert in admin_system_alerts|slice:":6" %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No active system alertsOK
  • {% endfor %}

License: {{ license_status }}


{% for action in quick_actions %} {% endfor %}

Academic Performance Snapshot

Performance Mix

Result Verification

Pending: {{ verification_pending_count|default:0 }} - Flagged: {{ verification_flagged_count|default:0 }}

Recent Registrations

    {% for student in recent_registrations|slice:":6" %}
  • {{ student.student_name }}{{ student.reg_no }} {{ student.current_class.name|default:"-" }}
  • {% empty %}
  • No recent registrations.-
  • {% endfor %}

Pending Approvals

    {% for approval in pending_approvals|slice:":6" %}
  • {{ approval.expenditure.description|truncatechars:30 }}Level {{ approval.approval_level }} {{ approval.status|title }}
  • {% empty %}
  • No pending approvals.OK
  • {% endfor %}

Latest Payments

    {% for payment in recent_payments|slice:":6" %}
  • {{ payment.bill.student.student_name|default:"Student" }}{{ payment.payment_date|date:"M d" }} UGX {{ payment.amount|intcomma }}
  • {% empty %}
  • No recent payments.-
  • {% endfor %}

Verification Queue

    {% for batch in admin_verification_queue|slice:":6" %}
  • {{ batch.assessment.subject.name|default:"Subject" }}{{ batch.assessment.academic_class.Class.code|default:"Class" }} {{ batch.status|title }}
  • {% empty %}
  • No pending verification queue.OK
  • {% endfor %}

Audit Activity

{% for log in recent_activity_logs %} {% empty %} {% endfor %}
Time User Action Target Details
{{ log.timestamp|date:"M d, H:i" }} {{ log.username }} {{ log.action }} {{ log.target|default:"-" }} {{ log.details|default:"-" }}
No recent activity logs.
{% elif is_head_dashboard %}

Head Teacher Dashboard

Strategic school performance, attendance, and operational risks. {% if current_year and current_term %} Term {{ current_term.term }} {{ current_year.academic_year }} {% endif %}

Total Students
{{ total_students|default:0 }}
School wide
Total Staff
{{ total_staff|default:0 }}
All departments
Student Attendance
{{ student_attendance_rate|default:0 }}%
Current term
Assessment Progress
{{ assessment_completion_rate|default:0 }}%
Completion rate

School Performance Trend

Key Alerts

    {% for alert in head_alerts %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No urgent alertsOK
  • {% endfor %}

{% for action in quick_actions %} {% endfor %}

Class Comparison

Enrollment Trend

{% if has_enrollment_trend_data %}
{% else %}
No enrollment trend data available.
{% endif %}

Top and Struggling Classes

Top Classes

    {% for item in top_classes|slice:":4" %}
  • {{ item.assessment__academic_class__Class__name }} {{ item.avg_score|floatformat:1 }}
  • {% empty %}
  • No data-
  • {% endfor %}

Struggling Classes

    {% for item in bottom_classes|slice:":4" %}
  • {{ item.assessment__academic_class__Class__name }} {{ item.avg_score|floatformat:1 }}
  • {% empty %}
  • No data-
  • {% endfor %}

Teacher Performance Indicators

{% for row in teacher_submission_rows %} {% empty %} {% endfor %}
Teacher Submitted Verified Pending
{{ row.submitted_by__first_name }} {{ row.submitted_by__last_name|default:row.submitted_by__username }} {{ row.submitted }} {{ row.verified }} {{ row.pending }}
No teacher submission metrics available.
{% elif is_dos_dashboard %}

Director of Studies Dashboard

Academic control center for results, verification, and assessment completion. {% if current_year and current_term %} Term {{ current_term.term }} {{ current_year.academic_year }} {% endif %}

Verification Queue
{{ dos_pending_verification_count|default:0 }}
Pending batches
Assessment Completion
{{ assessment_completion_rate|default:0 }}%
Current term
Missing Submissions
{{ dos_missing_assessments_count|default:0 }}
Draft / not submitted
Flagged Results
{{ dos_flagged_results_count|default:0 }}
Needs correction

Results Submission Status by Class

{% if has_class_readiness_data %}
{% else %}
No class readiness data available.
{% endif %}

Missing Marks Alerts

    {% for alert in dos_alerts %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No immediate alertsOK
  • {% endfor %}

Quick Actions

{% for action in quick_actions %} {% endfor %}

Grade Distribution

Subject Performance Comparison

Verification Queue

{% for batch in dos_verification_queue %} {% empty %} {% endfor %}
Assessment Class Subject Submitted By Submitted At
{{ batch.assessment.assessment_type.name }} {{ batch.assessment.academic_class.Class.name }} {{ batch.assessment.subject.name }} {{ batch.submitted_by.get_full_name|default:batch.submitted_by.username|default:"-" }} {{ batch.submitted_at|date:"M d, H:i"|default:"-" }}
No pending verification batches.
{% elif is_class_teacher_dashboard %}

Class Teacher Dashboard

Class attendance, student welfare, risk monitoring, and parent communication. {% if class_streams %} {{ class_streams.0.academic_class.Class.name }} - {{ class_streams.0.stream.stream }} {% endif %}

Class Students
{{ teacher_total_students_count|default:0 }}
Active roster
Absent Today
{{ teacher_absent_today_count|default:0 }}
Attendance risk
Fee Alerts
{{ class_teacher_fee_alert_count|default:0 }}
UGX {{ class_teacher_fee_alert_amount|intcomma }}
At-Risk Students
{{ class_teacher_at_risk_count|default:0 }}
Average score below 50

Attendance Trend

{% if has_attendance_heatmap_data %}
{% else %}
No attendance trend data available.
{% endif %}

Student Alerts

    {% for alert in class_teacher_alerts %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No immediate alertsOK
  • {% endfor %}

{% for action in quick_actions %} {% endfor %}

Class Performance Distribution

Assessment Completion

Student Performance Summary

{% for row in teacher_recent_student_performance %} {% empty %} {% endfor %}
Student Assessments Average
{{ row.student__student_name }} {{ row.total_results }} {{ row.avg_score|floatformat:1 }}
No student performance data available.

Recent Class Activity

    {% for item in class_teacher_recent_activity|slice:":8" %}
  • {{ item.student.student_name }} - {{ item.assessment.subject.name }} {{ item.score|floatformat:1 }}
  • {% empty %}
  • No recent class activities-
  • {% endfor %}
{% elif is_teacher_dashboard %}

Teacher Dashboard

Daily teaching workflow: timetable, marks entry, attendance, and class progress.

Lessons Today
{{ teacher_today_lessons_count|default:0 }}
Scheduled slots
Classes Taught
{{ teacher_class_count|default:0 }}
Current term
Subjects
{{ teacher_subject_count|default:0 }}
Assigned
Pending Marks
{{ pending_marks_entry_count|default:0 }}
Needs entry

Class Performance Mini Trend

Action Center

    {% for alert in teacher_alerts %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No urgent actionsOK
  • {% endfor %}

{% for action in quick_actions %} {% endfor %}

Assignment Completion

Class Distribution

    {% for class_data in class_distribution|slice:":8" %}
  • {{ class_data.current_class__name }} {{ class_data.count }}
  • {% empty %}
  • No assigned class distribution.-
  • {% endfor %}

Today Timetable

{% for slot in teacher_today_timetable %} {% empty %} {% endfor %}
Time Class Subject
{{ slot.time_slot.start_time|time:"H:i" }} - {{ slot.time_slot.end_time|time:"H:i" }} {{ slot.class_stream.academic_class.Class.name }} {{ slot.class_stream.stream.stream }} {{ slot.subject.name }}
No lessons scheduled today.

Recent Student Performance

{% for row in teacher_recent_student_performance %} {% empty %} {% endfor %}
Student Assessments Average
{{ row.student__student_name }} {{ row.total_results }} {{ row.avg_score|floatformat:1 }}
No student performance metrics yet.
{% elif is_bursar_dashboard %}

Bursar Dashboard

Financial control: collections, outstanding balances, and cashflow risk. {% if selected_term_label %} {{ selected_term_label }} {% endif %}

Collected Today
UGX {{ fees_collected_today|intcomma }}
Daily inflow
Collected This Term
UGX {{ total_fees_collected|intcomma }}
{{ selected_term_label }}
Outstanding Balances
UGX {{ total_fees_outstanding|intcomma }}
Unpaid + overdue
Collection Rate
{{ fee_collection_rate|default:0 }}%
Term performance

Revenue vs Expenses

Financial Alerts

    {% for alert in bursar_alerts %}
  • {{ alert.label }} {{ alert.count }}
  • {% empty %}
  • No urgent finance alertsOK
  • {% endfor %}

{% for action in quick_actions %} {% endfor %}

Fee Collection vs Expected

Payment Methods

Recent Transactions

{% for payment in recent_payments %} {% empty %} {% endfor %}
Date Student Method Amount
{{ payment.payment_date|date:"M d, Y" }} {{ payment.bill.student.student_name }} {{ payment.payment_method }} UGX {{ payment.amount|intcomma }}
No transactions recorded for this period.

Top Debtors

    {% for debtor in top_debtors %}
  • {{ debtor.student_name }} UGX {{ debtor.balance|intcomma }}
  • {% empty %}
  • No outstanding student balances.OK
  • {% endfor %}
{% else %}

No role dashboard is configured for this account.

{% endif %}
{{ dashboard_chart_data|json_script:"dashboard-chart-data" }} {% endblock %}