@inject BTCPayServer.Services.BTCPayServerEnvironment Env @inject BTCPayServer.Services.ThemeSettings Theme @inject BTCPayNetworkProvider BtcPayNetworkProvider @using NUglify.Helpers @using BTCPayServer.Client @using BTCPayServer.Components.ThemeSwitch @using BTCPayServer.Payments @using Microsoft.AspNetCore.Mvc.TagHelpers @using BundlerMinifier.TagHelpers @using BTCPayServer.TagHelpers @model BTCPayServer.Models.ViewPullPaymentModel @addTagHelper *, BundlerMinifier.TagHelpers @{ ViewData["Title"] = Model.Title; Layout = null; string StatusTextClass(string status) { switch (status) { case "Completed": case "In Progress": return "bg-success"; case "Cancelled": return "bg-danger"; default: return "bg-warning"; } } string lnurl = null; string lnurlUri = null; var pms = Model.PaymentMethods.FirstOrDefault(id => id.PaymentType == LightningPaymentType.Instance && BtcPayNetworkProvider.DefaultNetwork.CryptoCode == id.CryptoCode); if (pms is not null && Model.Currency.Equals(pms.CryptoCode, StringComparison.InvariantCultureIgnoreCase)) { var lnurlEndpoint = new Uri(Url.Action("GetLNURLForPullPayment", "UILNURL", new { cryptoCode = pms.CryptoCode, pullPaymentId = Model.Id }, Context.Request.Scheme, Context.Request.Host.ToString())); lnurl = LNURL.LNURL.EncodeUri(lnurlEndpoint, "withdrawRequest", true).ToString(); lnurlUri = LNURL.LNURL.EncodeUri(lnurlEndpoint, "withdrawRequest", false).ToString(); } } @if (Model.CustomCSSLink != null) { } @Safe.Raw(Model.EmbeddedCSS)
@if (Model.IsPending) { }
@if (!ViewContext.ModelState.IsValid) { @Html.ValidationSummary(string.Empty, new { @class = $"alert alert-danger mb-4 pb-0 {(ViewContext.ModelState.ErrorCount.Equals(1) ? "no-marker" : "")}" }) }
@if (!Model.Title.IsNullOrWhiteSpace()) {

@Model.Title

}
Start Date   @Model.StartDate.ToString("g")
Last Updated   @Model.LastRefreshed.ToString("g")
@if (!string.IsNullOrEmpty(Model.ResetIn)) {

Reset in   @Model.ResetIn

} @if (!string.IsNullOrEmpty(Model.Description)) {
@Safe.Raw(Model.Description)
}

Payment Details

@Model.AmountDueFormatted
Available claim
@Model.AmountCollectedFormatted
Already claimed
@Model.AmountFormatted
Claim limit

Claims

@if (Model.Payouts.Any()) {
@foreach (var invoice in Model.Payouts) { }
Destination Method Amount requested Status
@invoice.Destination @invoice.PaymentMethod.ToPrettyString() @invoice.AmountFormatted @if (!string.IsNullOrEmpty(invoice.Link)) { @invoice.Status.GetStateString() } else { @invoice.Status.GetStateString() }
} else {

No claim made yet.

}
@if (lnurl is not null) { }