@using BTCPayServer.Client.Models @model PayoutsModel @inject IEnumerable PayoutHandlers; @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePageAndTitle(WalletsNavPages.Payouts, $"Manage {Model.PaymentMethodId.ToPrettyString()} payouts{(string.IsNullOrEmpty(Model.PullPaymentName) ? string.Empty : " for pull payment " + Model.PullPaymentName)}", Context.GetStoreData().StoreName); var stateActions = new List<(string Action, string Text)>(); switch (Model.PayoutState) { case PayoutState.AwaitingApproval: stateActions.Add(("approve", "Approve selected payouts")); stateActions.Add(("approve-pay", "Approve & Send selected payouts")); stateActions.Add(("cancel", "Cancel selected payouts")); break; case PayoutState.AwaitingPayment: stateActions.Add(("pay", "Send selected payouts")); stateActions.Add(("cancel", "Cancel selected payouts")); stateActions.Add(("mark-paid", "Mark selected payouts as already paid")); break; } } @section PageFootContent { }

@ViewData["Title"]

@if (Model.Payouts.Any() && stateActions.Any()) { }
@if (Model.Payouts.Any()) { @if (Model.PayoutState != PayoutState.AwaitingApproval) { } @for (int i = 0; i < Model.Payouts.Count; i++) { var pp = Model.Payouts[i]; @if (Model.PayoutState != PayoutState.AwaitingApproval) { } }
Date Source Destination AmountTransaction
@pp.Date.ToBrowserDate() @pp.PullPaymentName @pp.Destination @pp.Amount @if (!(pp.ProofLink is null)) { Link }
} else {

There are no payouts matching this criteria.

}