#pragma checksum "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c0724b81a3826c8ee69982330fca99e53e919bdb"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Acceuil_Acceuil), @"mvc.1.0.view", @"/Views/Acceuil/Acceuil.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\_ViewImports.cshtml"
using FamilyBudget;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\_ViewImports.cshtml"
using FamilyBudget.Models;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c0724b81a3826c8ee69982330fca99e53e919bdb", @"/Views/Acceuil/Acceuil.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a276b455e0f5c2b0df4e12e1a88619bd0c353790", @"/Views/_ViewImports.cshtml")]
    public class Views_Acceuil_Acceuil : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<FamilyBudget.Models.Compte>
    {
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rel", new global::Microsoft.AspNetCore.Html.HtmlString("stylesheet"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/css/welcome.css"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Depense", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "DetailAll", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Bank", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Create", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/chart.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        #line hidden
        #pragma warning disable 0649
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
        #pragma warning restore 0649
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
        #pragma warning disable 0169
        private string __tagHelperStringValueBuffer;
        #pragma warning restore 0169
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
        {
            get
            {
                if (__backed__tagHelperScopeManager == null)
                {
                    __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
                }
                return __backed__tagHelperScopeManager;
            }
        }
        private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper;
        private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
        private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
        private global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper;
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            WriteLiteral("\r\n<!DOCTYPE html>\r\n<html lang=\"fr\">\r\n");
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0724b81a3826c8ee69982330fca99e53e919bdb5893", async() => {
                WriteLiteral("\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>Accueil - Gestion Budget</title>\r\n    ");
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "c0724b81a3826c8ee69982330fca99e53e919bdb6316", async() => {
                }
                );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                WriteLiteral(@"
    <style>
        .stat-card p a {
            text-decoration: none;
            color: black;
        }

        .depense {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 2rem;
            padding:10px;
            animation: pulse 1s ease-in-out;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            width: auto;
            height: auto;
        }
        .diag {
            width: 300px;
            height: 300px;
        }
        .diag canvas {
            margin: 1rem;
        }
        .diage {
            width: 500px;
            height: 800px;
        }

            .diage canvas {
                margin: 1rem;
            }
    </style>
");
            }
            );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            WriteLiteral("\r\n");
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0724b81a3826c8ee69982330fca99e53e919bdb9009", async() => {
                WriteLiteral("\r\n\r\n    <main>\r\n        <section class=\"dashboard\">\r\n            <h1>Tableau de bord</h1>\r\n            <div class=\"stats\">\r\n");
#nullable restore
#line 51 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                 if (Model != null)
                {
                    var s = @Model.Solde;
                    

#line default
#line hidden
#nullable disable
                WriteLiteral("<div class=\"stat-card\">\r\n                        <h2>Solde Disponible</h2>\r\n                        <p>");
#nullable restore
#line 56 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                      Write(Model.Solde);

#line default
#line hidden
#nullable disable
                WriteLiteral(" FCFA</p>\r\n                    </div>\r\n");
#nullable restore
#line 58 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"

                    if (@Model.Solde >= 0)
                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                        <div class=\"stat-card\">\r\n                            <h2>");
#nullable restore
#line 62 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                           Write(Model.Type);

#line default
#line hidden
#nullable disable
                WriteLiteral("</h2>\r\n                            <p>");
#nullable restore
#line 63 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                           Write(Model.Solde + ViewBag.TotalDepenses + ViewBag.Totalfacture);

#line default
#line hidden
#nullable disable
                WriteLiteral(" FCFA</p>\r\n                        </div>\r\n");
#nullable restore
#line 65 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                    }
                    else
                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                        <div class=\"stat-card\">\r\n                            <h2>Compte</h2>\r\n                            <p>0 FCFA</p>\r\n                        </div>\r\n");
#nullable restore
#line 72 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                    }


#line default
#line hidden
#nullable disable
                WriteLiteral("                    <div class=\"stat-card\">\r\n                        <h2>Dépenses Récentes</h2>\r\n                        <p>\r\n                            ");
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0724b81a3826c8ee69982330fca99e53e919bdb12017", async() => {
                    WriteLiteral("\r\n                                -");
#nullable restore
#line 78 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                             Write(ViewBag.TotalDepenses + ViewBag.Totalfacture);

#line default
#line hidden
#nullable disable
                    WriteLiteral(" FCFA\r\n                            ");
                }
                );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                WriteLiteral("\r\n                        </p>\r\n                    </div>\r\n");
                WriteLiteral("                    <!-- Condition pour afficher le pop-up -->\r\n");
#nullable restore
#line 84 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                     if (Model.Solde < 10000)
                    {

#line default
#line hidden
#nullable disable
                WriteLiteral(@"                        <div id=""popupBackground"">
                            <div id=""popupContent"">
                                <span class=""close-btn"" onclick=""closePopup()"">❌</span>
                                <p>votre solde est inférieur à 10 000 FCFA !</p>
                            </div>
                        </div>
");
                WriteLiteral(@"                        <script>
                            document.addEventListener(""DOMContentLoaded"", function () {
                                let popupBg = document.getElementById(""popupBackground"");
                                let popupContent = document.getElementById(""popupContent"");

                                popupBg.style.display = ""block"";
                                setTimeout(() => {
                                    popupBg.style.opacity = ""1"";
                                    popupContent.style.opacity = ""1"";
                                }, 50);
                            });

                            function closePopup() {
                                let popupBg = document.getElementById(""popupBackground"");
                                let popupContent = document.getElementById(""popupContent"");

                                popupContent.style.opacity = ""0"";
                                popupBg.style.opacity = ""0"";
                ");
                WriteLiteral("                setTimeout(() => {\r\n                                    popupBg.style.display = \"none\";\r\n                                }, 500);\r\n                            }\r\n                        </script>\r\n");
#nullable restore
#line 116 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                    }

#line default
#line hidden
#nullable disable
#nullable restore
#line 116 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                     
                }
                else
                {

#line default
#line hidden
#nullable disable
                WriteLiteral("                    <div class=\"herlin\">\r\n                        <p>\r\n                            ");
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0724b81a3826c8ee69982330fca99e53e919bdb16554", async() => {
                    WriteLiteral("\r\n                                Aucun compte créé pour l\'instant !\r\n                            ");
                }
                );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                WriteLiteral("\r\n                        </p>\r\n                    </div>\r\n");
#nullable restore
#line 127 "E:\Projet 2e annee\PROJET ASP.NET\CASEY\FamilyBudget\FamilyBudget\Views\Acceuil\Acceuil.cshtml"
                }

#line default
#line hidden
#nullable disable
                WriteLiteral(@"            </div>
        </section>
    </main>
    <div class=""depense"">

        <div class=""diag"">
            <canvas id=""pieChart""></canvas>
        </div>
        <div class=""diage"">
            <canvas id=""barChart""></canvas>
        </div>

    </div>
    

    ");
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0724b81a3826c8ee69982330fca99e53e919bdb18676", async() => {
                }
                );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                WriteLiteral(@"

    <script>
        fetch('/Acceuil/GetDepensesParCompte')
            .then(response => response.json())
            .then(data => {
                const ctx = document.getElementById('pieChart').getContext('2d');
                new Chart(ctx, {
                    type: 'pie',
                    data: {
                        labels: data.labels,  // Types de comptes
                        datasets: [{
                            label: 'Dépenses par Compte (FCFA)',
                            data: data.values,  // Montants dépensés
                            backgroundColor: ['red', 'blue', 'green', 'orange', 'purple']
                        }]
                    }
                });
            });

        fetch('/Acceuil/GetDepensesParMois')
            .then(response => response.json())
            .then(data => {
                const ctx = document.getElementById('barChart').getContext('2d');
                new Chart(ctx, {
                    type: 'bar',
    ");
                WriteLiteral(@"                data: {
                        labels: data.labels,  // Mois
                        datasets: [{
                            label: 'Dépenses par mois (FCFA)',
                            data: data.values,  // Montants
                            backgroundColor: 'rgba(255, 99, 132, 0.5)',
                            borderColor: 'rgba(255, 99, 132, 1)',
                            borderWidth: 1
                        }]
                    }
                });
            });
    </script>

");
            }
            );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            WriteLiteral("\r\n</html>\r\n");
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<FamilyBudget.Models.Compte> Html { get; private set; }
    }
}
#pragma warning restore 1591
