{% extends "base.html" %} {% block content %}

Asset Dashboard

Dashboard numbers below are asset item counts (rows), not total quantity units. For consumables/stationery, check Qty (Total/Available) in Asset Master.
Total Assets
{{ total_assets }}
All asset master records
In Stock
{{ in_stock }}
Ready to allocate (may be partial stock)
Allocated
{{ allocated }}
Issued to employees (may be fully allocated)
Under Repair
{{ under_repair }}
Sent for repair / service
Retired
{{ retired }}
End-of-life assets
Lost
{{ lost }}
Marked as permanently lost
Damaged
{{ damaged }}
Damage recorded & approved
Pending Approvals
{{ pending_returns + pending_loss_damage }}
{{ pending_returns }} return, {{ pending_loss_damage }} loss/damage
Recent Allocations
{% if recent_allocations %} {% for a in recent_allocations %} {% set qty = a.quantity or 1 %} {% set total = a.asset.quantity_total or 1 %} {% set avail = a.asset.quantity_available if a.asset.quantity_available is not none else total %} {% endfor %} {% else %} {% endif %}
Date Asset Qty Employee Stock (T/A)
{{ a.allocated_on.strftime('%d-%m-%Y') if a.allocated_on else '-' }} {{ a.asset.asset_tag }} - {{ a.asset.name }} {{ qty }} {{ a.employee.employee_code }} - {{ a.employee.full_name }} {{ total }}/{{ avail }}
No recent allocations.
Recent Loss / Damage
{% if recent_incidents %} {% for r in recent_incidents %} {% endfor %} {% else %} {% endif %}
Date Asset Type Status
{{ r.incident_date.strftime('%d-%m-%Y') if r.incident_date else '-' }} {{ r.asset.asset_tag }} - {{ r.asset.name }} {{ r.incident_type|title }} {{ r.status|title }}
No recent loss / damage records.
{% endblock %}