@model FamilyBudget.Models.Facture
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Facture</title>
    @*<link rel="stylesheet" href="~/css/facture.css">*@
    <link rel="stylesheet" href="~/css/fact.css" />
</head>
<body>

    <div class="facture-container">
        <div class="header">
            <a asp-controller="Acceuil" asp-action="Acceuil"><span class="back-btn">←</span></a>
            <h2>Facture</h2>
        </div>
        <form asp-action="Create" method="post">
            <div class="form-group">
                <label asp-for="IdCompte"></label>
                <select asp-for="IdCompte" asp-items="ViewBag.IdCompte" class="form-control"></select>
                <span asp-validation-for="IdCompte" class="text-danger"></span>
            </div>

            <label asp-for="CategorieFacture"></label>
            <select asp-for="CategorieFacture" id="categorie">
                <option value="electricite">💡 Électricité</option>
                <option value="eau">💧 Eau</option>
                <option value="internet">🌐 Internet</option>
                <option value="telephone">📞 Téléphone</option>
                <option value="Accueil/Loyer">🏠 Accueil/Loyer</option>
                <option value="Alimentation/Épicerie">🛒 Alimentation/Épicerie</option>
                <option value="Dépenses diverses">🛍️ Dépenses diverses</option>
                <option value="Divertissement">🎵 Divertissement</option>
                <option value="Assurance/Médical">⚕️ Assurance/Médical</option>
                <option value="Divers/Ponctuel">⭐ Divers/Ponctuel</option>
            </select>
            <span asp-validation-for="CategorieFacture" class="text-danger"></span>

            <label asp-for="Montant"></label>
            <input type="text" id="type" asp-for="Montant" placeholder="1000">
            <span asp-validation-for="Montant" class="text-danger"></span>

            <label asp-for="DateFacture"></label>
            <input type="date" id="date" asp-for="DateFacture">
            <span asp-validation-for="DateFacture" class="text-danger"></span>
            <button type="submit">Valider</button>

        </form>
    </div>

    <br /><br /><span class="text-danger">@ViewBag.Message</span>


</body>
</html>
