@model MemberCenter.Web.Areas.Admin.Models.AccountDetailViewModel @{ ViewData["Title"] = Model.DisplayName; var profile = Model.Profile; var avatarText = Model.DisplayName[..1].ToUpperInvariant(); } @if (TempData["Result"] is string result) {
@result
} @if (TempData["Error"] is string error) {
@error
}
<

@Model.DisplayName

@if (Model.CanAssignAdmin) {
@Html.AntiForgeryToken()
} @if (Model.CanDisableAccount) {
@Html.AntiForgeryToken()
} @if (Model.CanResetPassword) { } @if (Model.CanContact) { }
@if (Model.CanResetPassword) { }

@L["Member ID"]

@if (Model.IsAdmin) { }

@Model.UserId

@L["Last name"]
@(profile.LastName ?? L["Not set"].Value)
@L["First name"]
@(profile.FirstName ?? L["Not set"].Value)
@L["Nickname"]
@(profile.NickName ?? L["Not set"].Value)
@L["Email"]
@profile.Email @(profile.EmailConfirmed ? L["Verified"] : L["Unverified"])
@L["Date of birth"]
@(profile.DateOfBirth?.ToString("yyyy/MM/dd") ?? L["Not set"].Value)
@L["Mobile phone"]
@(profile.MobilePhone ?? L["Not set"].Value)
@L["Company name"]
@(profile.CompanyName ?? L["Not set"].Value)
@L["Job title"]
@(profile.JobTitle ?? L["Not set"].Value)
@L["Account status"]
@(Model.IsDisabled ? L["Frozen"] : Model.IsBlacklisted ? L["Blacklist"] : L["Normal"])
@L["Created"]
@Model.CreatedAt.ToString("yyyy/MM/dd HH:mm")
@L["Last login"]
@(Model.LastLoginAt?.ToString("yyyy/MM/dd HH:mm") ?? "-")