{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}Tableau de bord POS{% endblock %} {% block content %}

Tableau de bord

Vue d'ensemble de l'activité POS — {{ "now"|date('d/m/Y') }}

{# Today's Sales KPIs #}
Ventes aujourd'hui
{{ stats.todaySales.count }}
CA aujourd'hui
{{ stats.todaySales.totalAmount|default('0')|number_format(0, ',', ' ') }}
{{ settings.currencySymbol }}
CA ce mois
{{ stats.monthSales.totalAmount|default('0')|number_format(0, ',', ' ') }}
{{ settings.currencySymbol }} — {{ stats.monthSales.count }} ventes
Valeur stock
{{ stats.stockValuation.totalValue|default('0')|number_format(0, ',', ' ') }}
{{ settings.currencySymbol }} — {{ stats.stockValuation.totalUnits|default(0) }} unités
{# Secondary KPIs #}
{{ stats.productStats.total|default(0) }}
Produits actifs
{{ stats.productStats.outOfStock|default(0) }}
Ruptures de stock
{{ stats.customerStats.total|default(0) }}
Clients
{{ stats.customerStats.totalDebt|default('0')|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
Dettes clients
{# Top Products Today #}

Top produits aujourd'hui

{% if stats.topProductsToday|length > 0 %}
{% for product in stats.topProductsToday %}
{{ product.productName }}
{{ product.productSku }}
{{ product.totalQty }} vendus
{{ product.totalRevenue|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{% endfor %}
{% else %}
Aucune vente aujourd'hui
{% endif %}
{# Payment Methods Today #}

Paiements aujourd'hui

{% if stats.paymentMethods|length > 0 %}
{% for method, data in stats.paymentMethods %}
{{ method|replace({'_': ' '}) }}
{{ data.totalAmount|number_format(0, ',', ' ') }} {{ settings.currencySymbol }}
{{ data.count }} transaction{{ data.count > 1 ? 's' : '' }}
{% endfor %}
{% else %}
Aucun paiement aujourd'hui
{% endif %}
{# Recent Activity #}

Activite recente

Voir tout
{% if recentLogs|default([])|length > 0 %}
{% for log in recentLogs %}
{{ log.description }}
{{ log.user.fullName|default('') }} — {{ log.createdAt|date('d/m H:i') }}
{% endfor %}
{% else %}
Aucune activite recente
{% endif %}
{# Quick Links #}
Rapport ventes
Rapport stock
Rapport financier
Rapport produits
{% endblock %}