@page "/admin/players" @model Players.IndexModel @using DataServer.Data @{ ViewData["Title"] = "Players"; }
Manage player accounts
@Model.TotalCount
Total Accounts
@Model.ActiveCount
Active
@Model.BannedCount
Banned
@Model.AdminCount
Admins
| ID | Username | Role | Status | Created | Actions | |
|---|---|---|---|---|---|---|
| @account.Id | @account.Username | @(account.Email ?? "-") | @{ var roleColor = account.Role switch { AccountRole.SuperAdmin => "bg-red-600", AccountRole.Admin => "bg-orange-600", AccountRole.Moderator => "bg-yellow-600", AccountRole.Vip => "bg-purple-600", _ => "bg-gray-600" }; } @account.Role |
@if (isBanned)
{
@if (account.BannedUntil.HasValue && account.BannedUntil > DateTime.UtcNow)
{
|
@account.CreatedAt.ToString("yyyy-MM-dd") | Edit |
| No accounts found. | ||||||