{% extends 'base.html' %} {% load static %} {% block title %}Blood Bank Inventory Dashboard{% endblock %} {% block css %} {% endblock %} {% block content %}

Blood Bank Inventory real-time inventory monitoring

Total Units

{{ total_units }}

Available for transfusion
Fresh Units

{{ fresh_units }}

Less than 7 days old
Expiring Soon

{{ expiring_units }}

Within 3 days
Critical Low

{{ critical_low_count }}

Below minimum levels

Blood Group Inventory

{% for group in blood_groups %}
{{ group.display_name }}
Whole Blood
{{ group.whole_blood_count }}
RBC
{{ group.rbc_count }}
Plasma
{{ group.plasma_count }}
Platelets
{{ group.platelet_count }}

{{ group.total_units }}

Total Units {% if group.is_critical_low %}
Critical {% elif group.is_low %}
Low {% else %}
Good {% endif %}
{% endfor %}

Inventory Trends

Component Distribution

Storage Locations

{% for location in storage_locations %}
{{ location.name }}
{{ location.location_type }}
{{ location.unit_count }}
Units
Temperature: {{ location.current_temperature }}°C
{{ location.capacity_percentage }}% capacity
{% endfor %}

Expiry Alerts

{{ expiring_units }}
{% for unit in expiring_units_list %}
{{ unit.unit_number }}
{{ unit.blood_group.display_name }} - {{ unit.component.get_name_display }}
{{ unit.days_to_expiry }} days
{{ unit.expiry_date|date:"M d" }}
{% empty %}

No units expiring soon

{% endfor %}

Recent Activity

{% for activity in recent_activities %}
{{ activity.timestamp|date:"H:i" }}
{{ activity.description }}
{% empty %}

No recent activity

{% endfor %}
{% endblock %} {% block js %} {% endblock %}