{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Multi-Branch Command Center{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

Multi-Branch Command Center

Operational health, synchronization safety, transfers, alerts, and continuity in one place.
{{ ui.button('Analytics', '/analytics/branches') }} {{ ui.button('Branches', '/admin/branches') }} {{ ui.button('Operations', '/operations-center') }} {{ ui.button('Memory', '/operational-memory') }}
Average Health{{ snapshot.health.average_score }}
Open Alerts{{ snapshot.alerts|length }}
Sync Integrity{{ snapshot.sync.integrity|replace('_', ' ')|title }}
Transfer Queue{{ snapshot.transfers|selectattr("status", "equalto", "requested")|list|length }}

Branch Performance And Health

{% for b in rankings %} {% else %} {% endfor %}
Branch Health Sales Revenue Profit Inventory Sync Priority
{{ b.name }}
{{ b.location or "No location" }}
{{ b.score }}
{{ b.risk_level|title }}
{{ b.sales_count }}
{{ b.customer_activity }} customer signals
{{ "%.2f"|format(b.revenue or 0) }} {{ "%.2f"|format(b.profit or 0) }}
{{ "%.1f"|format(b.margin or 0) }}% margin
{{ b.stock_pressure }} low
{{ b.stockouts }} out, {{ b.surplus_products }} surplus
{{ "%.1f"|format(b.sync_reliability or 0) }}% {{ b.summary }}
No branches found.

Smart Transfer Request

Recent Transfers

{% for t in snapshot.transfers %} {% else %} {% endfor %}
IDProductRouteQtyStatusAction
#{{ t.id }} {{ t.product_name or t.product_id }} {{ t.from_branch_name or "Central" }} to {{ t.to_branch_name or t.to_branch_id }} {{ t.quantity }} {{ t.status }} {% if t.status == "requested" %} {% elif t.status == "approved" %} {% else %} Done {% endif %}
No transfers recorded yet.
{% endblock %}