@using Microsoft.Extensions.Localization @model QRRapidoApp.Models.ViewModels.SelecaoPlanoViewModel @inject IStringLocalizer Localizer @{ ViewData["Title"] = "Escolha seu Plano Premium"; Layout = "~/Views/Shared/_Layout.cshtml"; var monthlyPlan = Model.Plans.FirstOrDefault(p => p.Interval == "month"); var yearlyPlan = Model.Plans.FirstOrDefault(p => p.Interval == "year"); var monthlyPrice = monthlyPlan?.PricesByCountry.GetValueOrDefault(Model.CountryCode)?.Amount ?? 0; var yearlyPrice = yearlyPlan?.PricesByCountry.GetValueOrDefault(Model.CountryCode)?.Amount ?? 0; var yearlySavings = (monthlyPrice * 12) - yearlyPrice; var currency = monthlyPlan?.PricesByCountry.GetValueOrDefault(Model.CountryCode)?.Currency ?? "BRL"; var currencySymbol = currency == "PYG" ? "₲" : "R$"; }

@Localizer["UnlockFullPowerQRRapido"]

@Localizer["UnlimitedAccessNoAdsExclusive"]

@if (monthlyPlan != null) {

@Localizer["MonthlyPlan"]

@currencySymbol @(currency == "PYG" ? monthlyPrice.ToString("N0") : monthlyPrice.ToString("0.00")) @Localizer["PerMonth"]

@Localizer["IdealToStartExploring"]

} @if (yearlyPlan != null) {

@Localizer["AnnualPlan"]

@Localizer["Recommended"]

@currencySymbol @(currency == "PYG" ? yearlyPrice.ToString("N0") : yearlyPrice.ToString("0.00")) @Localizer["PerYear"]
@if (yearlySavings > 0) {
@Localizer["SaveMoney"] @(currency == "PYG" ? yearlySavings.ToString("N0") : yearlySavings.ToString("0.00"))!
}

@Localizer["BestValueFrequentUsers"]

}

@Localizer["AllPlansInclude"]

  • @Localizer["UnlimitedQRCodes"]
  • @Localizer["NoAds"]
  • @Localizer["AdvancedCustomization"]
  • @Localizer["LogoSupport"]
  • @Localizer["HistoryAndDownloads"]
  • @Localizer["PrioritySupport"]
@section Scripts { }