@(string.IsNullOrEmpty(Model.Title) ? Model.StoreName : Model.Title)
@Safe.Raw(item.Title)
@Safe.Raw(item.Description)
}@using BTCPayServer.Services @using Microsoft.AspNetCore.Mvc.TagHelpers @using Newtonsoft.Json.Linq @using BTCPayServer.Client @using BTCPayServer.Abstractions.TagHelpers @using BTCPayServer.Client.Models @inject DisplayFormatter DisplayFormatter @inject BTCPayServer.Security.ContentSecurityPolicies Csp @model BTCPayServer.Plugins.PointOfSale.Models.ViewPointOfSaleViewModel @{ Layout = "PointOfSale/Public/_Layout"; Csp.UnsafeEval(); } @section PageHeadContent { } @section PageFootContent { } @functions { private string GetItemPriceFormatted(AppItem item) { if (item.PriceType == AppItemPriceType.Topup) return "any amount"; if (item.Price == 0) return "free"; var formatted = DisplayFormatter.Currency(item.Price ?? 0, Model.CurrencyCode, DisplayFormatter.CurrencyFormat.Symbol); return item.PriceType == AppItemPriceType.Minimum ? $"{formatted} minimum" : formatted; } }
@Safe.Raw(item.Description)
}