Introduces new account pages for managing subscriptions, payment methods, and invoice history Includes: - Subscription plan selection view - Payment method display component - Invoice history table - Account page layout and styling Updates main layout to include new CSS files for account management
21 lines
622 B
C#
21 lines
622 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using PlanTempus.Application.Features.Accounts.Models;
|
|
|
|
namespace PlanTempus.Application.Features.Account.Components;
|
|
|
|
/// <summary>
|
|
/// ViewComponent for the subscription plan selection grid.
|
|
/// Shows all available plans with the current plan highlighted.
|
|
/// </summary>
|
|
public class SubscriptionPlansViewComponent : ViewComponent
|
|
{
|
|
public IViewComponentResult Invoke()
|
|
{
|
|
var plans = PlanCatalog.GetAllPlans();
|
|
// Mock: current plan is "pro"
|
|
var currentPlanKey = "pro";
|
|
|
|
ViewBag.CurrentPlanKey = currentPlanKey;
|
|
return View(plans);
|
|
}
|
|
}
|