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