#pragma checksum "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "be1ea5a727f1373a555f44e444cc712d2cae6f09"
// <auto-generated/>
#pragma warning disable 1591
namespace SPWA.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using System.Net.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Web;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.JSInterop;

#line default
#line hidden
#nullable disable
#nullable restore
#line 9 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA;

#line default
#line hidden
#nullable disable
#nullable restore
#line 10 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA.Shared;

#line default
#line hidden
#nullable disable
#nullable restore
#line 11 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using MatBlazor;

#line default
#line hidden
#nullable disable
#nullable restore
#line 12 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using BlazorInputFile;

#line default
#line hidden
#nullable disable
#nullable restore
#line 14 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.DataProtection;

#line default
#line hidden
#nullable disable
#nullable restore
#line 15 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA.LoginFeatures.Account.Pages.GoogleLogin;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
using Microsoft.AspNetCore.Identity;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
using SPWA.DataAccess.Data;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/students")]
    public partial class Student : Microsoft.AspNetCore.Components.ComponentBase
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<style>\r\n    .mat-table-format{\r\n        table-layout:fixed;\r\n        flex-wrap:wrap;\r\n    }\r\n\r\n    .mat-column{\r\n        table-layout:fixed;\r\n    }\r\n</style>\r\n\r\n");
            __builder.OpenComponent<MatBlazor.MatCard>(1);
            __builder.AddAttribute(2, "Class", "mat-elevation-z1");
            __builder.AddAttribute(3, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(4, "\r\n    ");
                __builder2.OpenComponent<MatBlazor.MatDialogTitle>(5);
                __builder2.AddAttribute(6, "Style", "font-family:\'Nunito\';font-size:x-large;");
                __builder2.AddAttribute(7, "Class", "font-weight-bold");
                __builder2.AddAttribute(8, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
                    __builder3.AddContent(9, "Students");
                }
                ));
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(10, "\r\n");
            }
            ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(11, "\r\n<p></p>\r\n");
            __builder.OpenElement(12, "div");
            __builder.AddAttribute(13, "class", "mat-elevation-z1");
            __builder.AddMarkupContent(14, "\r\n    ");
            __Blazor.SPWA.Pages.Student.TypeInference.CreateMatBlazor_MatTable_0(__builder, 15, 16, 
#nullable restore
#line 23 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
                                ColUsers

#line default
#line hidden
#nullable disable
            , 17, "mat-elevation-z5", 18, (__builder2) => {
                __builder2.AddMarkupContent(19, "\r\n            ");
                __builder2.AddMarkupContent(20, "<th>ID</th>\r\n            ");
                __builder2.AddMarkupContent(21, "<th>UserName</th>\r\n            ");
                __builder2.AddMarkupContent(22, "<th>Email</th>\r\n        ");
            }
            , 23, (context) => (__builder2) => {
                __builder2.AddMarkupContent(24, "\r\n            ");
                __builder2.OpenElement(25, "td");
                __builder2.AddAttribute(26, "class", "mat-column");
                __builder2.AddAttribute(27, "style", "width:40%");
                __builder2.AddContent(28, 
#nullable restore
#line 30 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
                                                      context.Id

#line default
#line hidden
#nullable disable
                );
                __builder2.CloseElement();
                __builder2.AddMarkupContent(29, "\r\n            ");
                __builder2.OpenElement(30, "td");
                __builder2.AddAttribute(31, "class", "mat-column");
                __builder2.AddAttribute(32, "style", "width:auto");
                __builder2.AddContent(33, 
#nullable restore
#line 31 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
                                                       context.UserName

#line default
#line hidden
#nullable disable
                );
                __builder2.CloseElement();
                __builder2.AddMarkupContent(34, "\r\n            ");
                __builder2.OpenElement(35, "td");
                __builder2.AddAttribute(36, "class", "mat-column");
                __builder2.AddContent(37, 
#nullable restore
#line 32 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
                                    context.Email

#line default
#line hidden
#nullable disable
                );
                __builder2.CloseElement();
                __builder2.AddMarkupContent(38, "\r\n        ");
            }
            );
            __builder.AddMarkupContent(39, "\r\n");
            __builder.CloseElement();
        }
        #pragma warning restore 1998
#nullable restore
#line 38 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\Student.razor"
           
            List<ApplicationUser> ColUsers = new List<ApplicationUser>();
            string strError = "";

        protected override async Task OnInitializedAsync()
        {
            await GetUsers();
        }

        public async Task GetUsers()
        {
            // Collection to hold users
            ColUsers = new List<ApplicationUser>();
            // get users from _UserManager
            var user = _UserManager.Users.Select(x => new ApplicationUser
            {
                Id = x.Id,
                UserName = x.UserName,
                Email = x.Email,
                PasswordHash = "*****"
            });
            foreach (var item in user)
            {
                var UserResult = await _UserManager.IsInRoleAsync(item, "Administrators");
                if (!UserResult)
                {
                    ColUsers.Add(item);
                }
            }
        }
    

#line default
#line hidden
#nullable disable
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private RoleManager<IdentityRole> _RoleManager { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private UserManager<ApplicationUser> _UserManager { get; set; }
    }
}
namespace __Blazor.SPWA.Pages.Student
{
    #line hidden
    internal static class TypeInference
    {
        public static void CreateMatBlazor_MatTable_0<TableItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Collections.Generic.IEnumerable<TableItem> __arg0, int __seq1, global::System.String __arg1, int __seq2, global::Microsoft.AspNetCore.Components.RenderFragment __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment<TableItem> __arg3)
        {
        __builder.OpenComponent<global::MatBlazor.MatTable<TableItem>>(seq);
        __builder.AddAttribute(__seq0, "Items", __arg0);
        __builder.AddAttribute(__seq1, "Class", __arg1);
        __builder.AddAttribute(__seq2, "MatTableHeader", __arg2);
        __builder.AddAttribute(__seq3, "MatTableRow", __arg3);
        __builder.CloseComponent();
        }
    }
}
#pragma warning restore 1591
