@for (var x = 0; x < Model.Items.Length; x++)
{
var item = Model.Items[x];
var formatted = DisplayFormatter.Currency(item.Price ?? 0, Model.CurrencyCode, DisplayFormatter.CurrencyFormat.Symbol);
var buttonText = string.IsNullOrEmpty(item.BuyButtonText) ? item.PriceType != ViewPointOfSaleViewModel.ItemPriceType.Fixed ? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText;
buttonText = buttonText.Replace("{0}", formatted).Replace("{Price}", formatted);
@if (!string.IsNullOrWhiteSpace(item.Image))
{
}
@{CardBody(item.Title, item.Description);}
}
@if (Model.ShowCustomAmount)
{
@{CardBody("Custom Amount", "Create invoice to pay custom amount");}
}