{% extends 'base.html.twig' %} {% block title %}Tableau de bord — VIIZIA{% endblock %} {% block stylesheets %} {{ parent() }} {% if dashboard_empty is not defined or not dashboard_empty %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% if dashboard_empty is not defined or not dashboard_empty %} {% endif %} {% endblock %} {% block body %} {% if dashboard_empty is defined and dashboard_empty %}

Tableau de bord

Bienvenue {{ app.user.firstName }}. Aucune organisation n’est disponible pour le moment.

Créez une organisation ou demandez à un administrateur de vous y inviter pour afficher vos indicateurs.
{% if is_granted('ROLE_SUPERADMIN') %} Nouvelle organisation {% endif %}
{% else %}

Tableau de bord

{{ dashboard_organization.name }} {% if dashboard_period_summary is defined %} · {{ dashboard_period_summary }} {% endif %} {% include '_partials/period_tabs.html.twig' with { route_name: 'app_home', filters: filters, dashboard_booking_years: dashboard_booking_years, show_period_calendar: true, filters_form_id: 'transaction-list-filters-form', } only %}
{% if dashboard_invalid_filter %}
Un ou plusieurs filtres ne correspondent pas à cette organisation. Les indicateurs sont vidés jusqu’à correction.
{% endif %} {% include '_partials/transaction_filters.html.twig' with { form_action: path('app_home'), clear_href: path('app_home'), period_calendar_inline: true, } %} {% if dashboard_mixed_currency %}
Devises multiples — le solde consolidé ci-dessous additionne des comptes en devises différentes (valeur indicative).
{% endif %}
Solde consolidé

{{ dashboard_balance_cents|money_suffix(dashboard_currency, 2) }}

Recettes
{% if dashboard_has_income_month_data %}

{{ dashboard_income_cents|money_suffix(dashboard_currency, 2) }}

{% else %}

Pas de données sur la période

{% endif %}
Dépenses
{% if dashboard_has_expense_month_data %}

{{ dashboard_expense_cents|money_suffix(dashboard_currency, 2) }}

{% else %}

Pas de données sur la période

{% endif %}
Résultat net

{{ dashboard_net_cents|money_suffix(dashboard_currency, 2) }}

Évolution du solde

{{ dashboard_chart_subtitle }}

{% set cg = dashboard_chart_granularity ?? 'auto' %} {% set cq = app.request.query.all %}
Recettes Dépenses Trésorerie (solde projeté)

Comptes bancaires

{{ dashboard_account_rows|length }} compte{{ dashboard_account_rows|length > 1 ? 's' : '' }}

{% set icoStyles = [ {bg: '#EDE9FE', fg: '#7C3AED'}, {bg: '#FCE7F3', fg: '#EC4899'}, {bg: '#FEF3C7', fg: '#D97706'}, ] %} {% for row in dashboard_account_rows %} {% set acc = row.account %} {% set st = icoStyles[loop.index0 % 3] %} {% if is_granted('ROLE_SUPERADMIN') %} {% endif %} {% else %}

Aucun compte bancaire pour cette organisation.

{% endfor %} {% if dashboard_account_rows is not empty %}
Total consolidé {{ dashboard_balance_cents|money_suffix(dashboard_currency, 2) }}
{% endif %}

Dernières transactions

{{ dashboard_period_summary }} · les plus récentes correspondant aux filtres

{% if is_granted('ROLE_SUPERADMIN') %} Voir tout {% endif %}
{% for tx in dashboard_recent_transactions %} {% set signed = tx.signedAmount %}
{{ tx.label|viz_label }}
{{ tx.bookingDate|date('d/m/Y') }} · {{ tx.bankAccount.label }} {% if tx.category %} {{ tx.category.name }} {% endif %}
{% if signed > 0 %}+{% endif %}{{ signed|money_suffix(tx.currency, tx.bankAccount.currencyMinorUnits) }}
{% else %}

Aucune transaction pour le moment.

{% endfor %}

Dépenses par catégorie

{{ dashboard_period_summary }} · top {{ dashboard_donut_slices|length }}

{% if dashboard_donut_slices is not empty %}
{{ dashboard_donut_total_cents|money_suffix(dashboard_currency, 2) }} total dépenses
{% for s in dashboard_donut_slices %}
{{ s.name }} {{ s.pct }}% {{ s.cents|money_suffix(dashboard_currency, 2) }}
{% endfor %}
{% else %}

Pas assez de données catégorisées sur cette période.

{% endif %}
{% endif %} {% endblock %}