@page "/account" @using Microsoft.AspNetCore.Components.Authorization @inject NavigationManager Navigation @rendermode InteractiveServer @attribute [Authorize]

My Account

Customer Profile // Active Session

Welcome back, @(context.User.FindFirst("given_name")?.Value ?? context.User.Identity?.Name ?? "Reader")!

@context.User.FindFirst("email")?.Value

Order History
@if (orderHistory != null) { @foreach (var order in orderHistory) {
@order.OrderId
@order.OrderDate.ToString("MMM dd, yyyy")
@order.Status
@order.ProductTitle
Shipping to: @order.ShippingAddressName
Total Paid R @order.Total.ToString("N2")
} } else {
Loading order history...
}
Saved Addresses
@if (!showAddForm && editingAddress == null) { }
@if (showAddForm) {
New Address
} @if (editingAddress != null) {
Edit Address
} @foreach (var addr in savedAddresses) {
@addr.Name

@addr.Street, @addr.City, @addr.PostalCode

@if (addr.IsBilling) { [Billing] } @if (addr.IsShipping) { [Shipping] }
}
Profile Settings
Centralized Identity Management

For your protection, password modifications, recovery settings, authentication methods, and core credentials are managed through our secure Identity Node.

Access Security Center