{% extends "base.html" %} {% block title %}Dashboard - Mago4 Demo{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block content %}
{% for widget in widgets[0] %}

{{ widget.title }}

{{ widget.icon }}
{{ widget.value }}
{% endfor %}
{% for widget in widgets[1] %}

{{ widget.title }}

{% if widget.subtitle %}

{{ widget.subtitle }}

{% endif %}
{% if "Vendita" in widget.title %} {% else %} {% endif %} {% if "Vendita" in widget.title %} {% for order in widget.data.orders %} {% endfor %} {% else %} {% for order in widget.data.orders %} {% endfor %} {% endif %}
Data Numero Ordine Cliente Importo StatoData Numero Ordine Fornitore Importo Stato
{{ order.order_date }} {{ order.order_number }} {{ order.customer_name }} {{ order.total_amount }} {{ order.status }}
{{ order.order_date }} {{ order.order_number }} {{ order.supplier_name }} {{ order.total_amount }} {{ order.status }}
{% endfor %}
Totale Clienti
{{ stats.total_customers }}
Totale Fornitori
{{ stats.total_suppliers }}
Articoli in Catalogo
{{ stats.total_products }}
Debiti Fornitori
€ {{ "%.2f"|format(stats.total_payable) }}
{% endblock %}