{% extends "base.html" %} {% block title %}Admin Dashboard - Facial Recognition System{% endblock %} {% block content %}

{{ total_users }}

Total Users

{{ active_users }}

Active Users

{{ total_encodings }}

Face Encodings

{{ recent_logs|length }}

Recent Events

User Management

{% for user in users %} {% endfor %}
Username Email Role Status Created Actions
{{ user.username }} {{ user.email }} {{ user.role }} {{ 'Active' if user.is_active else 'Inactive' }} {{ user.created_at.strftime('%Y-%m-%d') }} {% if user.id != current_user.id %} {{ 'Deactivate' if user.is_active else 'Activate' }} {% else %} Current User {% endif %}

Recent System Activity

{% if recent_logs %}
{% for log in recent_logs %}
Recognition Event

{% if log.user %} User: {{ log.user.username }} recognized as {% endif %} {{ log.recognized_name }} {% if log.confidence_score %} {{ "%.1f%%" | format(log.confidence_score * 100) }} {% endif %}

{{ log.timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {{ log.recognition_type.title() }}
{% endfor %}
{% else %}
No recent activity

System activity will appear here

{% endif %}
{% endblock %}