+
+
+
+
+ @Model.DurationDays day@(Model.DurationDays>1?"s": "") subscription for @DisplayFormatter.Currency(Model.Price, Model.Currency)
+ @if (!string.IsNullOrEmpty(Model.Description))
+ {
+ @Safe.Raw(Model.Description)
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @Model.DurationDays day@(Model.DurationDays > 1 ? "s" : "") subscription for @DisplayFormatter.Currency(Model.Price, Model.Currency)
+
+
@subscription.Status
+ @if (subscription.Status == SubscriptionStatus.Inactive)
+ {
+
Reactivate
+ }
+
+ @if (!string.IsNullOrEmpty(Model.Description))
+ {
+ @Safe.Raw(Model.Description)
+ }
+
+
+
+
+ @if (subscription.Payments?.Any() is not true)
+ {
+ No payments have been made yet.
+ }
+ else
+ {
+
+
+
+
+ | Payment Request Id |
+ Period |
+ Settled |
+
+
+
+ @foreach (var payment in subscription.Payments)
+ {
+ var isThisPeriodActive = payment.PeriodStart <= DateTimeOffset.UtcNow && payment.PeriodEnd >= DateTimeOffset.UtcNow;
+ var isThisPeriodFuture = payment.PeriodStart > DateTimeOffset.UtcNow;
+
+
+ |
+
+
+
+ |
+
+ @payment.PeriodStart.ToBrowserDate() - @payment.PeriodEnd.ToBrowserDate()
+ @if (payment.Settled && isThisPeriodActive)
+ {
+ Active
+ }
+ @if (isThisPeriodFuture)
+ {
+ Next period
+ }
+ |
+
+ @if (payment.Settled)
+ {
+ Settled
+ }
+ else
+ {
+ Not settled
+ }
+
+ |
+
+ }
+
+
+
+ }
+
+
+
+
+
+