/
_view.cshtml
25 lines (23 loc) · 1.01 KB
/
_view.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@model (string InitialPrice, string Price)
@{
Html.AddCssFileParts("~/Plugins/Payments.Laybuy/Content/styles.css", excludeFromBundle: true);
}
@if (!string.IsNullOrEmpty(Model.Price))
{
<div class="laybuyInfo">
<p class="laybuy-paragraph">
@if (string.IsNullOrEmpty(Model.InitialPrice))
{
<span>or 6 weekly interest-free payments from <span class="laybuy-money">@Model.Price</span> with </span>
}
else
{
<span>or from <span class="laybuy-money">@Model.InitialPrice</span> today & 5 weekly interest-free payments of <span class="laybuy-money">@Model.Price</span> with </span>
}
<img id="laybuy-logo" src="https://www.laybuy.com/assets/laybuy-logo-small.svg" alt="Laybuy">
<a class="laybuy-link" onclick="document.getElementById('laybuy-popup-wrapper').style.display = 'block'">
<u class="laybuy-link-inner">what's this?</u>
</a>
</p>
</div>
}