{% extends "base.html" %} {% load static %} {% load i18n %} {% block title %}{% trans "RaktaPulse Dashboard" %} - {% trans "Lifeline of the Community" %}{% endblock %} {% block head %} {% endblock %} {% block content %}

{% trans "RaktaPulse Community Dashboard" %}

SYSTEM ONLINE

{% trans "Overview of blood donation activity and requirements in your area." %}

{% if user.is_authenticated and user_badges %}
{% for badge in user_badges %}
{{ badge.name }}
{% endfor %}
{% endif %}
{% if involved_events %}
{% trans "Action Required: Donations in Progress" %}
{% for event in involved_events %}

{{ event.donor.name }} is helping {{ event.request.patient_name }}

{{ event.date|date:"M d, Y" }} {% trans "Mark Completed" %}
{% endfor %}
{% endif %}
{% for donor in donors %}
{% if donor.user and donor.user.profile.profile_pic %} {{ donor.name }} {{ donor.blood_group }} {% else %}
{{ donor.blood_group }}
{% endif %}
{{ donor.name }} {% if donor.is_verified %} {% endif %} {% if donor.distance and donor.distance < 1000 %} {{ donor.distance|floatformat:1 }} km {% endif %}

{{ donor.location }}, {{ donor.district }}

{% if donor.is_available %}Available{% else %}Unavailable{% endif %}

Last Donated: {{ donor.last_donation_date|default:"Never" }}

{% if donor.user %} {% endif %} Call
{% empty %}

No donors match your search criteria.

{% endfor %}

Vaccination & Eligibility

We prioritize donors who are fully vaccinated to ensure maximum safety for recipients.

Community Immunity Level {{ stats.vaccinated_percentage }}%
Update Status

{% trans "Top 5 Myths vs. Facts about Blood Donation" %}

{% for item in myths_vs_facts %}
{% trans "MYTH" %}

"{{ item.myth }}"

{% trans "FACT" %}

{{ item.fact }}

{% endfor %}
Urgency Distribution
Urgent Requests HOT
{% if user.is_staff %} {% endif %}
{% for req in blood_requests %}
{% if req.urgency == 'CRITICAL' %} {% elif req.urgency == 'URGENT' %} {% else %} {% endif %} {{ req.urgency }} {{ req.blood_group }}
{{ req.patient_name }}

{{ req.hospital }}

{% with acceptance=req.donations.first %} {% if acceptance %}

Accepted by: {{ acceptance.donor.name }}

{% endif %} {% endwith %}
{{ req.created_at|timesince }} ago
{% if req.user %} {% endif %} Help Now →
{% empty %}

No active requests found.

{% endfor %}
Blood Bank Inventory
{% for bank in blood_banks %}
{{ bank.name }} 24/7 Available
A+: {{ bank.stock_a_plus }} A-: {{ bank.stock_a_minus }} B+: {{ bank.stock_b_plus }} B-: {{ bank.stock_b_minus }} O+: {{ bank.stock_o_plus }} O-: {{ bank.stock_o_minus }} AB+: {{ bank.stock_ab_plus }} AB-: {{ bank.stock_ab_minus }}
{% empty %}

No blood banks registered.

{% endfor %}
{% if user.is_staff %} Manage Banks {% endif %}
Lifesaver Tip

Donating once can save up to three lives. Make sure to stay hydrated and rest before your appointment!

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