@model IEnumerable<FamilyBudget.Models.Revenu>
    <link rel="stylesheet" href="~/css/dep1.css" />
    <h2>Liste des Revenus</h2>
    <p><a id="dep" asp-action="Create">✚ Ajouter un nouveau revenu</a></p>
    <table class="table">
        <thead>
            <tr>
                <th>Source</th>
                <th>Montant</th>
                <th>Date</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
<tr>
    <td>@item.SourceRevenu</td>
    <td>@item.Montant</td>
    <td>@item.DateRevenu.ToShortDateString()</td>
    <td>
        <a class="btn btn-info btn-sm" asp-action="Edit" asp-route-id="@item.IdRevenu">Modifier</a> |
        <a class="btn btn-warning btn-sm" asp-action="Details" asp-route-id="@item.IdRevenu">Détails</a> |
        <a class="btn btn-danger btn-sm" asp-action="Delete" asp-route-id="@item.IdRevenu">Supprimer</a>
    </td>
</tr>
}
        </tbody>
    </table>

