{% extends "base.html" %} {% block title %}Birthday Wishes & Member Celebrations - NGO Foundation Admin{% endblock %} {% block body_class %}admin-portal-active{% endblock %} {% block content %}
{% if current_user.role and current_user.role.role_name == 'Finance' %} {% include "finance/_finance_sidebar.html" %} {% else %} {% include "admin/_admin_sidebar.html" %} {% endif %}
{% set topbar_title = 'Birthday Wishes & Celebrations' %} {% set topbar_subtitle = 'Home / Community / Member Birthday Wishes' %} {% include "admin/_admin_topbar.html" %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}

Birthday Wishes & Member Celebrations

Automated official email greetings, upcoming celebrations calendar, and member date-of-birth registry.

{% if unwished_today %}
{% elif todays_celebrants %} {% else %} {% endif %}
Birthdays Today

{{ kpi_birthdays_today }}

{{ today.strftime('%d %B %Y') }}
Upcoming (7 Days)

{{ kpi_upcoming_week }}

Next 7 days
Greetings Sent ({{ current_year }})

{{ kpi_wishes_sent_year }}

Automated & manual
Total Members

{{ kpi_total_members }}

In active registry
Today's Birthday Celebrations {{ todays_celebrants|length }}
System automatically dispatches daily greetings at 08:00 AM
{% if todays_celebrants %}
{% for user in todays_celebrants %}
Today!
{{ user.full_name[:2]|upper }}
{{ user.full_name }}
{{ user.designation or (user.role.role_name if user.role else 'Member') }} Turning {{ user.age }} Years
{{ user.email }}
{{ user.phone or 'Not provided' }}
{% if user.id in wished_users_map %}
Sent ({{ wished_users_map[user.id].sent_at_local_formatted }})
{% else %}
Pending Dispatch
{% endif %}
{% endfor %}
{% else %}
No Member Birthdays Today

No registered members or volunteers have birthdays on today's date ({{ today.strftime('%d %B') }}).

{% endif %}
Upcoming Birthdays (Next 30 Days) {{ upcoming_celebrants|length }}
{% if upcoming_celebrants %} {% for days, user in upcoming_celebrants %} {% endfor %} {% else %} {% endif %}
Member / Volunteer Designation / Role Birthday Date Countdown Upcoming Age Actions
{{ user.full_name[:2]|upper }}
{{ user.full_name }}
{{ user.email }}
{{ user.designation or (user.role.role_name if user.role else 'Member') }} {{ user.birthday_formatted }} {% if days == 1 %} Tomorrow! {% elif days <= 7 %} In {{ days }} days {% else %} In {{ days }} days {% endif %} {{ (user.age + 1) if user.age is not none else '-' }} Years
No upcoming birthdays in the next 30 days.
Member & Volunteer Directory {{ all_users|length }}
Configure date of birth to activate automatic birthday emails
{% for u in all_users %} {% endfor %}
Full Name Role Designation Date of Birth Phone Status Configure
{{ u.full_name }}
{{ u.email }}
{{ u.role.role_name if u.role else 'User' }} {{ u.designation or '-' }} {% if u.dob %} {{ u.dob.strftime('%d %B %Y') }} {% else %} Not Set {% endif %} {{ u.phone or '-' }} {{ u.status|capitalize }}
Dispatched Birthday Greetings Audit Log {{ recent_logs|length }}
{% if recent_logs %} {% for log in recent_logs %} {% endfor %} {% else %} {% endif %}
Dispatched At Recipient Email Address Year Channel Status Greeting Snippet
{{ log.sent_at_local_full }} {{ log.recipient_name }} {{ log.recipient_email }} {{ log.wish_year }} {{ 'Auto Scheduler' if log.dispatched_by == 'system_cron' else 'Manual Admin' }} {% if log.email_sent %} Delivered {% else %} Logged {% endif %} {{ log.greeting_message }}
No birthday greeting dispatch logs recorded yet.
{% endblock %}