{% extends 'base.html' %} {% block title %}Dashboard - Admin{% endblock %} {% block content %}

Admin Dashboard

System Administrator
{{ total_products }}
Total Products
GH₵ {{ total_inventory_value|floatformat:2 }}
Warehouse Value
{{ total_shops }}
Total Shops
{{ low_stock_count }}
Low Stock Items
Low Stock Alerts
{% if low_stock_items %}
{% for item in low_stock_items %} {% endfor %}
Product Current Stock Reorder Level Status
{{ item.product.name }} {{ item.available }} {{ item.reorder_point }} {% if item.available == 0 %} Out of Stock {% else %} Low Stock {% endif %}
{% else %}

All products have sufficient stock

{% endif %}
Recent Transfers
{% if recent_transfers %}
{% for transfer in recent_transfers %} {% endfor %}
Transfer # From To Status
{{ transfer.transfer_number }} {{ transfer.from_shop.code }} {{ transfer.to_shop.code }} {% if transfer.status == 'pending' %} Pending {% elif transfer.status == 'approved' %} Approved {% elif transfer.status == 'shipped' %} Shipped {% elif transfer.status == 'delivered' %} Delivered {% endif %}
{% else %}

No recent transfers

{% endif %}
Shop Inventory Value
{% if shop_inventory_list %}
{% for shop in shop_inventory_list %} {% endfor %}
Shop Type Inventory Value Status
{{ shop.name }}
{{ shop.code }}
{% if "RS" in shop.code %} Retail {% elif "WS" in shop.code %} Wholesale {% else %} {{ shop.code|slice:":2" }} {% endif %} GH₵ {{ shop.value|floatformat:2 }} Active
{% else %}

No shop inventory data available

{% endif %}
{% endblock %}