{% extends 'base.html' %} {% load static %} {% block title %}Staff Management Dashboard{% endblock %} {% block content %}

Staff Management Dashboard

Comprehensive staff management with role-based permissions and access control

👥
Total Staff
{{ staff_stats.total_staff }}
{{ staff_stats.active_staff }} Active • {{ staff_stats.suspended_staff }} Suspended
Administrators
{{ staff_stats.admin_count }}
👔
Team Leaders
{{ staff_stats.team_leader_count }}
Loan Officers
{{ staff_stats.loan_officer_count }}

Permission Summary by Role

{% for role, stats in permission_summary.items %}

{{ role|title|replace:"_":" " }}

Total Permissions: {{ stats.total_permissions }}
Allowed: {{ stats.allowed_permissions }}
Custom Overrides: {{ stats.custom_permissions }}
{% endfor %}

Recent Staff Activities

View full audit log →
{% if recent_activities %}
    {% for activity in recent_activities %}
  • {% if not forloop.last %} {% endif %}
    👤

    {{ activity.user.get_full_name }} {{ activity.description }}

    {{ activity.accessed_at|timesince }} ago
  • {% endfor %}
{% else %}

No recent activities to display

{% endif %}
{% endblock %}