@using BTCPayServer.Client.Models @using Microsoft.AspNetCore.Mvc.TagHelpers @model BTCPayServer.Plugins.Crowdfund.Models.ContributeToCrowdfund @{ var vm = Model.ViewCrowdfundViewModel; }
@foreach (var item in vm.Perks) { var hasCount = vm.PerkCount.ContainsKey(item.Id); var hasValue = vm.PerkValue.ContainsKey(item.Id);
@if (vm.DisplayPerksRanking && hasCount) { #@(Array.IndexOf(vm.Perks, item) + 1) } @if (!string.IsNullOrEmpty(item.Image)) { @item.Title }
@if (item.Price is > 0) { @item.Price.Value @vm.TargetCurrency if (item.PriceType == AppItemPriceType.Minimum) { @Safe.Raw(StringLocalizer["or more"]) } } else if (item.PriceType == AppItemPriceType.Topup) { @Safe.Raw(StringLocalizer["Any amount"]) } else if (item.PriceType == AppItemPriceType.Fixed) { @Safe.Raw(StringLocalizer["Free"]) }

@Safe.Raw(item.Description)

@if (hasCount || hasValue || item.Inventory.HasValue) { }
} @if (vm.Started && !vm.Ended) {
@vm.TargetCurrency.ToUpperInvariant()
}