{% extends 'base.html' %} {% load static %} {% block title %}Analytics Dashboards - Hospital Management{% endblock %} {% block content %}
{{ stats.total_dashboards|default:"0" }}
Total Dashboards
{{ stats.active_dashboards|default:"0" }}
Active Dashboards
{{ stats.shared_dashboards|default:"0" }}
Shared Dashboards
{{ stats.total_widgets|default:"0" }}
Total Widgets
{% for dashboard in dashboards %}
{{ dashboard.get_dashboard_type_display }}
{{ dashboard.name }}

{{ dashboard.description|default:"No description available"|truncatechars:100 }}

{% for widget in dashboard.widgets.all|slice:":4" %}
{{ widget.title|truncatechars:15 }}
{% empty %}
No widgets
{% endfor %}
{% empty %}
No Dashboards Found

Create your first dashboard to get started with analytics.

Create Dashboard
{% endfor %}
{% if is_paginated %}
{% endif %}
{% endblock %}