@model IEnumerable<FamilyBudget.Models.Facture>
    <link rel="stylesheet" href="~/css/dep1.css" />
<h2>Liste des Factures</h2>
<p><a id="dep" asp-action="Create">✚ Créer une nouvelle facture</a></p>
<table class="table">
    <thead>
        <tr>
            <th>Catégorie</th>
            <th>Montant</th>
            <th>Date</th>
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
<tr>
    <td>@item.CategorieFacture</td>
    <td>@item.Montant</td>
    <td>@item.DateFacture.ToShortDateString()</td>
    <td>
        <a class="btn btn-info btn-sm" asp-action="Edit" asp-route-id="@item.IdFacture">Modifier</a> |
        <a class="btn btn-warning btn-sm"  asp-action="Details" asp-route-id="@item.IdFacture">Détails</a> |
        <a class="btn btn-danger btn-sm" asp-action="Delete" asp-route-id="@item.IdFacture">Supprimer</a>
    </td>
</tr>}
    </tbody>
</table>