{% extends "base.html" %} {% block title %}{{ current_user.full_name }} - Member Dashboard{% endblock %} {% block content %}
{% if monthly_payment_due %}

Monthly Payment Due

Your payment for {{ current_month.strftime('%B %Y') }} is overdue

Contact admin to record payment
Overdue
{% else %}

Payment Complete

Your payment for {{ current_month.strftime('%B %Y') }} has been recorded

{% endif %}
My Total Contributed
৳{{ "%.2f"|format(total_contributed) }}
Monthly Contributions
{{ monthly_contributions|length }}
Group Members
{{ total_members }}
Active Events
{{ active_events|length }}

My Contribution Trends

Top Contributors

{% for ranking in member_rankings[:5] %}
{{ loop.index }}
{{ ranking.full_name }}
{% if ranking.custom_id %}
{{ ranking.custom_id }}
{% endif %}
৳{{ "%.2f"|format(ranking.total_amount) }}
{% if ranking.id == current_user.id %}
You
{% endif %}
{% endfor %}

Recent Group Activity

{% for contribution in recent_group_contributions[:8] %}
{{ contribution.member.full_name }}
{{ contribution.contribution_type.title() }} contribution
৳{{ "%.2f"|format(contribution.amount) }}
{{ contribution.created_at.strftime('%b %d') }}
{% endfor %}

Upcoming Events

{% if upcoming_events %}
{% for event in upcoming_events %}

{{ event.name }}

{{ event.description }}

৳{{ "%.2f"|format(event.target_amount) }}
Target
{{ event.start_date.strftime('%b %d') }} - {{ event.end_date.strftime('%b %d, %Y') }}
{% if event.is_active %} Active {% else %} Inactive {% endif %}
{% endfor %}
{% else %}

No upcoming events

{% endif %}
{% endblock %}