{% extends 'layouts/base.html' %} {% load static %} {% block title %}Accounts Dashboard{% endblock title %} {% block extra_css %} {% endblock extra_css %} {% block content %}

Accounts Dashboard

Manage users, roles, and security settings

{{ today|date:'M d, Y' }} {{ now|time:'H:i' }}
{{ stats.total_users|default:0 }}
Total Users
+{{ stats.new_users_this_month|default:0 }} this month
{{ stats.active_users|default:0 }}
Active Users
{{ stats.active_percentage|default:0 }}% of total
{{ stats.total_roles|default:0 }}
User Roles
{{ stats.permissions_count|default:0 }} permissions
{{ stats.login_sessions|default:0 }}
Active Sessions
Last 24 hours
Add User
Create a new user account
Create Role
Define new user role
Manage Users
View and edit users
Manage Roles
Configure permissions
Recent Activity
View All
{% if recent_activities %}
{% for activity in recent_activities %}
{{ activity.user.get_full_name }}
{{ activity.user.get_full_name|default:activity.user.username }} {{ activity.description }}
{{ activity.timestamp|timesince }} ago
{% endfor %}
{% else %}

No recent activity

{% endif %}
Recent Users
View All
{% if recent_users %}
{% for user in recent_users %}
{{ user.get_full_name }}
{% endfor %}
{% else %}

No users found

{% endif %}
User Registration Trends
Export Data

Chart will be displayed here

Integration with Chart.js or similar library needed
Role Distribution
{% if role_distribution %}
{% for role in role_distribution %}
{{ role.name }}
{{ role.user_count }} user{{ role.user_count|pluralize }}
{{ role.percentage }}%
{% endfor %}
{% else %}

No role data available

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