Add "reste à dépenser" tile to the dashboard

Shows the total remaining depense budget for the selected period,
above the breakdown table — reuses the totals.reste figure already
computed per section, no new query.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jeremy bayse
2026-07-26 13:41:48 +02:00
co-authored by Claude Sonnet 5
parent 1b3906ade2
commit 5ef655d16f
2 changed files with 28 additions and 0 deletions
@@ -22,6 +22,11 @@
</div>
</div>
<div class="bg-surface shadow rounded-lg p-4 max-w-xs">
<p class="text-xs text-text-muted">Reste à dépenser</p>
<p class="mt-1 text-lg font-semibold text-negative">{{ number_format($sections['depense']['totals']['reste'], 2, ',', ' ') }} </p>
</div>
@php
$colors = [
'revenu' => ['bg' => 'bg-positive-fill', 'row' => 'bg-positive-surface/40'],