@model Frontend.Models.SubscriptionsViewModel @{ ViewData["Title"] = "Memberships"; }

Memberships

Available membership plans in the system

@foreach (var plan in Model.AvailableMemberships) {

@plan.Type

@plan.Price.ToString("N0") MMK / @(plan.DurationMonths == 1 ? "month" : $"{plan.DurationMonths} months")
  • Borrow up to @plan.MaxBooks books at a time
  • Keep books for @plan.BorrowingDays days
  • Full catalog access
System Plan
}

Active User Subscriptions

@Model.ActiveSubscriptions.Count Total
@if (!Model.ActiveSubscriptions.Any()) { } @foreach (var sub in Model.ActiveSubscriptions) { }
User Plan Type Start Date Expiry Date Status
No active subscriptions found in the system.
@sub.UserName
@sub.UserEmail
@sub.MembershipType @sub.StartDate.ToString("MMM dd, yyyy") @sub.ExpiryDate.ToString("MMM dd, yyyy") @if (sub.IsActive && !sub.IsExpired) { Active } else if (sub.IsExpired) { Expired } else { Inactive }