@model AdminSubscriptionsViewModel @{ ViewData["Title"] = "Subscription administration"; var entitlement = Model.Entitlement; var underlying = entitlement?.UnderlyingSubscription; }

Administration

Subscription access

Billing state and PlotDirector access are shown separately.

@if (TempData["AdminMessage"] is string message) {
@message
} @if (TempData["AdminError"] is string error) {
@error
}
@if (Model.Users.Count > 0) {
@foreach (var user in Model.Users) { @user.Email — @user.DisplayName @(user.UnderlyingPlanName ?? "No subscription") }
}
@if (Model.SelectedUser is not null && entitlement is not null) {

@Model.SelectedUser.Email

Paid / underlying plan

@(underlying?.DisplayName ?? "None")

Billing status

@(underlying?.StripeStatus ?? (underlying?.IsTrial == true ? "Application trial" : "Not supplied"))

Effective access

@(entitlement.EffectiveLevel?.DisplayName ?? "Read only") — @entitlement.State

Trial start

@(underlying?.StartDateUTC.ToString("d MMMM yyyy 'UTC'") ?? "Not set")

Trial expiry

@(entitlement.TrialExpiryDateUTC?.ToString("d MMMM yyyy 'UTC'") ?? "Not set")

Books

@(Model.Usage?.BooksUsed ?? 0) / @(entitlement.EffectiveLevel?.MaxBooks.ToString("N0") ?? "0")

@if (entitlement.ActiveOverride is not null) {
Administrative override active. @entitlement.ActiveOverride.LevelDisplayName; expires @(entitlement.ActiveOverride.ExpiryDateUTC?.ToString("d MMMM yyyy 'UTC'") ?? "never"). This is not a paid subscription.
}

Change trial expiry

Administrative access override

This changes effective access only. Stripe billing is not modified.

}