@model PagedResult @section Styles { } @{ ViewData["Title"] = "Platform Users"; ViewData["PageIcon"] = "bi-people-fill"; var currentFilter = ViewBag.CurrentFilter as string; var returnUrl = Url.Action("Index", "PlatformUsers"); const string RootUserEmail = "artemis@powdercoatinglogix.com"; }
@if (!string.IsNullOrEmpty(ViewBag.SearchTerm)) { Clear }
@if (Model.Items.Any()) {
@foreach (var user in Model.Items) { }
Name Email Role Company Status Last Login Actions
@user.FirstName[0]@user.LastName[0]
@user.FullName @if (!string.IsNullOrEmpty(user.Position)) {
@user.Position }
@user.Email @if (!string.IsNullOrEmpty(user.EmployeeNumber)) {
ID: @user.EmployeeNumber }
@if (user.IsSuperAdmin) { SuperAdmin } else { Company Admin } @if (!string.IsNullOrEmpty(user.CompanyName)) { @user.CompanyName } else { - } @if (user.IsBanned) { Banned } else if (user.IsActive) { Active } else { Inactive } @if (user.LastLoginDate.HasValue) { @user.LastLoginDate.Value.ToString("MMM dd, yyyy") } else { Never }
@if (string.Equals(user.Email, RootUserEmail, StringComparison.OrdinalIgnoreCase)) { @if (string.Equals(User.Identity?.Name, RootUserEmail, StringComparison.OrdinalIgnoreCase)) { } else { } } else if (user.IsSuperAdmin) { } else {
@Html.AntiForgeryToken()
}
} else {

No users found

}
@if (Model.TotalCount > 0) { @await Html.PartialAsync("_Pagination", Model) }
@section Scripts { }