@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

Underlying plan

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

Billing status

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

Effective access

@(entitlement.EffectiveLevel?.DisplayName ?? "Read only") — @(entitlement.UsesAdministrativeOverride ? "Administrative override" : entitlement.State.ToString())

Underlying trial start

@(underlying?.IsTrial == true ? underlying.StartDateUTC.ToString("d MMMM yyyy 'UTC'") : "Not applicable")

Underlying trial expiry

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

Override expiry

@(entitlement.ActiveOverride is null ? "Not active" : entitlement.ActiveOverride.ExpiryDateUTC?.ToString("d MMMM yyyy 'UTC'") ?? "Never")

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.
}

Administrative access override

This is the sole administrator control for temporary or indefinite complimentary access. It does not change Stripe or the underlying application trial.

}