{% extends "superadmin/base_superadmin.html" %} {% block page_title %}Advanced Analytics{% endblock %} {% block page_description %}Comprehensive data analysis and reporting{% endblock %} {% block superadmin_content %}

Monthly Trends

{% for month_data in monthly_data[-3:] %}
{{ month_data.month.strftime('%b %Y') if month_data.month else 'N/A' }}
৳{{ "{:,.0f}".format(month_data.total_amount) }}
{{ month_data.contribution_count }} contributions
{% endfor %}

Top Contributors

{% for contributor in top_contributors[:5] %}
{{ loop.index }}
{{ contributor.full_name }}
{{ contributor.custom_id or 'No ID' }}
৳{{ "{:,.0f}".format(contributor.total_contributed) }}
{{ contributor.contribution_count }} times
{% endfor %}

Contribution Types

{% for type_data in type_breakdown %}
{% if type_data.contribution_type == 'monthly' %} {% elif type_data.contribution_type == 'penalty' %} {% elif type_data.contribution_type == 'bonus' %} {% else %} {% endif %} {{ type_data.contribution_type }}
৳{{ "{:,.0f}".format(type_data.total_amount) }}
{{ type_data.count }} contributions
{% endfor %}

Monthly Contribution Trends

Last 12 months

Contribution Distribution

By type

Data Export & Reporting

Generate detailed reports and export data

{% endblock %}