@model BCards.Web.ViewModels.ManageSubscriptionViewModel @{ ViewData["Title"] = "Gerenciar Assinatura"; Layout = "_Layout"; }

Gerenciar Assinatura

Voltar ao Dashboard
@if (!string.IsNullOrEmpty(Model.ErrorMessage)) { } @if (!string.IsNullOrEmpty(Model.SuccessMessage)) { } @if (!string.IsNullOrEmpty(TempData["Error"]?.ToString())) { } @if (!string.IsNullOrEmpty(TempData["Success"]?.ToString())) { }
Assinatura Atual
@if (Model.HasActiveSubscription) {

Plano @Model.PlanDisplayName

Status: @Model.StatusDisplayName

@if (Model.MonthlyAmount.HasValue) {

R$ @Model.MonthlyAmount.Value.ToString("F2") / mês

}
@if (Model.NextBillingDate.HasValue) {

Próxima cobrança: @Model.NextBillingDate.Value.ToString("dd/MM/yyyy")

} @if (Model.WillCancelAtPeriodEnd) {

Assinatura será cancelada em @Model.CurrentPeriodEnd?.ToString("dd/MM/yyyy")

}
@if (!Model.WillCancelAtPeriodEnd) { Cancelar Assinatura } else {
}
} else {
Nenhuma assinatura ativa

Você está usando o plano gratuito. Faça upgrade para desbloquear mais recursos!

Ver Planos
}
@if (Model.HasActiveSubscription && (Model.CanUpgrade || Model.CanDowngrade)) {
Alterar Plano
@foreach (var plan in Model.AvailablePlans.Where(p => !p.IsCurrentPlan)) {
@plan.DisplayName

R$ @plan.Price.ToString("F2")

    @foreach (var feature in plan.Features) {
  • @feature
  • }
}
} @if (Model.PaymentHistory.Any()) {
Histórico de Pagamentos
@foreach (var invoice in Model.PaymentHistory.Take(10)) { }
Data Descrição Valor Status Recibo
@invoice.Created.ToString("dd/MM/yyyy") @if (!string.IsNullOrEmpty(invoice.Description)) { @invoice.Description } else { Assinatura @Model.PlanDisplayName } R$ @((invoice.AmountPaid / 100m).ToString("F2")) Pago @if (!string.IsNullOrEmpty(invoice.HostedInvoiceUrl)) { Ver }
}
@section Scripts { }