@model BTCPayServer.Models.AppViewModels.ViewPointOfSaleViewModel @{ Layout = "_LayoutPos"; var anyInventoryItems = Model.Items.Any(item => item.Inventory.HasValue); }

@Model.Title

@if (!string.IsNullOrEmpty(Model.Description)) {
@Safe.Raw(Model.Description)
}
@for (int x = 0; x < Model.Items.Length; x++) { var item = Model.Items[x]; var buttonText = (string.IsNullOrEmpty(item.BuyButtonText) ? item.Custom? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText) .Replace("{0}",item.Price.Formatted) .Replace("{Price}",item.Price.Formatted); @if (item.Unavailable) { continue; }
@if (!String.IsNullOrWhiteSpace(item.Image)) { Card image cap } @{CardBody(item.Title, item.Description);}
} @if (Model.ShowCustomAmount) {
@{CardBody("Custom Amount", "Create invoice to pay custom amount");}
}
@functions { private void PayFormInputContent(string buttonText, decimal? minPriceValue = null, decimal? priceValue = null) {
@Model.CurrencySymbol
} private void CardBody(string title, string description) {
@title
@if (!String.IsNullOrWhiteSpace(description)) {

@Safe.Raw(description)

}
} }