{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}

Admin Dashboard

Total Users
{{ admin_stats.total_users }}
+{{ admin_stats.new_users_percent }}% from last period
Active Users
{{ admin_stats.active_users }}
{{ admin_stats.active_users_percent }}% of total
Total Scans
{{ admin_stats.total_scans }}
+{{ admin_stats.scans_growth }}% from last period
Total Questionnaires
{{ admin_stats.total_questionnaires }}
+{{ admin_stats.questionnaires_growth }}% from last period

New User Registrations

User Activity

Scanner Usage

Questionnaire Submissions

User Industry Distribution

Recent User Activity

{% for activity in recent_activities %} {% endfor %}
Username Company Last Activity Actions Status
{{ activity.username }} {{ activity.company_name }} {{ activity.timestamp }} {{ activity.action_type }} {% if activity.is_active %}Active{% else %}Inactive{% endif %}

System Status

Server Uptime
{{ admin_stats.server_uptime }}
days
Avg Response Time
{{ admin_stats.avg_response_time }}
ms
Error Rate
{{ admin_stats.error_rate }}%
last 24h
Database Size
{{ admin_stats.db_size }}
MB

User Management

{% for user in user_list %} {% endfor %}
Username Email Company Industry Join Date Last Login Status
{{ user.username }} {{ user.email }} {{ user.company_name }} {{ user.company_sector }} {{ user.created_at.strftime('%Y-%m-%d') }} {{ user.last_login.strftime('%Y-%m-%d') if user.last_login else '—' }} {% if user.is_active %}Active{% else %}Inactive{% endif %}

Reports Analytics

Compliance Trends

Export Compliance Trends

Scanner Compliance Trend

Questionnaire Compliance Trend

Industry Compliance Comparison

Common Scanner Compliance Issues

Scanner Usage Analytics

{% for i in industry_stats %} {% endfor %}
Industry Total Scans Avg. Compliance Score Low Compliance Medium Compliance High Compliance Trend
{{ i.name }} {{ i.total_scans }} {{ i.avg_score }}% {{ i.low_compliance }}% {{ i.medium_compliance }}% {{ i.high_compliance }}% {% if i.trend > 0 %} ↑ {{ i.trend }}% {% elif i.trend < 0 %} ↓ {{ i.trend }}% {% else %} → 0% {% endif %}

Questionnaire Analytics

Most Challenging Questions

Questionnaire Completion Rate

System Settings

Email Settings

Database Management

{% for table in database_tables %} {% endfor %}
Table Name Record Count Size Last Updated
{{ table.name }} {{ table.record_count }} {{ table.size }} MB {{ table.last_updated }}

Admin User Management

{% for admin in admin_users %} {% endfor %}
Username Email Role Last Login Status
{{ admin.username }} {{ admin.email }} {{ admin.role }} {{ admin.last_login }} {% if admin.is_active %}Active{% else %}Inactive{% endif %}

Admin Profile

Personal Information

Username: {{ admin.username }}

Role: {{ admin.role }}

Email: {{ admin.email }}

Last Login: {{ admin.last_login }}

Change Password

Activity Log

{% for act in admin_activities %} {% endfor %}
ActionTimestampIP Address
{{ act.action }} {{ act.timestamp }} {{ act.ip_address }}