@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 (!String.IsNullOrWhiteSpace(item.Image))
{

}
@{CardBody(item.Title, item.Description);}
}
@if (Model.ShowCustomAmount)
{
@{CardBody("Custom Amount", "Create invoice to pay custom amount");}
}