{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Operations Center - Gvelo Enterprise Platform{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

Operations Center

Live command room for sales, branches, inventory pressure, AI risk, payments, backups, and alerts.
{{ ui.button('Admin', '/admin') }} {{ ui.button('Transformation', '/business-transformation') }}
Today Sales{{ snapshot.sales.count }}Revenue {{ "%.2f"|format(snapshot.sales.revenue) }}
Efficiency{{ snapshot.ai.efficiency_score }}AI Score
Payment Health{{ 'OK' if snapshot.payment_health.ok else 'Check' }}{{ snapshot.payment_health.failed_recent }} failed recently
Backup Health{{ 'OK' if snapshot.backup_health.ok else 'Check' }}{{ snapshot.backup_health.latest.created_at if snapshot.backup_health.latest else 'No backup' }}

AI Operational Intelligence

{% for insight in snapshot.ai.insights[:8] %}
{{ insight.severity|upper }}

{{ insight.title }}

{{ insight.summary }}

Confidence {{ "%.0f"|format((insight.confidence or 0) * 100) }}%
{% else %}
No AI warnings right now.
{% endfor %}

Inventory Pressure

{% for item in snapshot.inventory_pressure[:10] %}

{{ item.name }} {{ item.stock }}

{% endfor %}

Realtime Activity

{% for event in snapshot.realtime_events[-8:] %}

{{ event.event_type }} {{ event.created_at }}

{% else %}

No recent realtime events.

{% endfor %}

Branch Command

{% for branch in snapshot.branches %} {% else %} {% endfor %}
BranchSalesRevenueStatus
{{ branch.name }}{{ branch.sales_count }}{{ "%.2f"|format(branch.revenue or 0) }}{{ 'Active' if branch.active else 'Inactive' }}
No branches configured.

Cashier Activity

{% for cashier in snapshot.cashiers %} {% else %} {% endfor %}
CashierSalesRevenueStatus
{{ cashier.full_name or cashier.username }}{{ cashier.sales_count }}{{ "%.2f"|format(cashier.revenue or 0) }}{{ 'Active' if cashier.active else 'Inactive' }}
No cashier activity found.
{% endblock %}