


@model IEnumerable<FamilyBudget.Models.Depense>
@{ ViewData["Title"] = "Timeline des Dépenses"; }
<link rel="stylesheet" href="~/css/deps.css" />
<h2>📅 Timeline des Dépenses</h2>

<div class="timeline">
    @foreach (var depense in Model.OrderBy(d => d.DateDepense))
    {
<div class="timeline-item">
    <div class="timeline-dot"></div>
    <div class="timeline-content">
        <h3>@depense.IdBudgetNavigation.Categorie</h3>
        <p><strong>💰 Montant:</strong> @depense.Montant FCFA</p>
        <p><strong>📅 Date:</strong> @depense.DateDepense.ToString("dd/MM/yyyy")</p>
    </div>
</div>}
</div>