{% extends "base.html" %} {% block title %}Admin Dashboard - Multiple Disease Prediction System{% endblock %} {% block content %}

Admin Dashboard

Welcome, {{ session.username }}! Manage the system and view analytics.

Total Users

{{ total_users }}

Heart Predictions

{{ heart_predictions }}

Diabetes Predictions

{{ diabetes_predictions }}

Parkinson's Predictions

{{ parkinsons_predictions }}

Appointments

{% set pending_count = 0 %} {% for appointment in all_predictions %} {% if appointment.status == 'pending' %} {% set pending_count = pending_count + 1 %} {% endif %} {% endfor %} {{ pending_count }}

Manage
Prediction Analytics
Recent Users
{% if recent_users %}
{% for user in recent_users %}
{{ user.name }}
{{ user.created_at.strftime('%Y-%m-%d') }}

{{ user.email }}

{% endfor %}
{% else %}

No recent users.

{% endif %}
Patient Reports
{% if all_predictions %}
{% for prediction in all_predictions %} {% endfor %}
Patient Disease Date Result Actions
{{ prediction.user_name }} {{ prediction.disease_type }} {{ prediction.date.strftime('%Y-%m-%d %H:%M') }} {{ prediction.result }} View
{% else %}

No patient reports available.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}