@using BTCPayServer.Views.Stores @using BTCPayServer.Abstractions.Extensions @model LNURLController.EditLightningAddressVM @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData["NavPartialName"] = "../Stores/_Nav"; ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Lightning Address Setup", Context.GetStoreData().StoreName); } @section PageHeadContent { } @section PageFootContent { } @if (Context.Request.PathBase.ToString() != string.Empty) { }

@ViewData["PageTitle"]

Add Address
@{ var showAddForm = !ViewContext.ViewData.ModelState.IsValid || !string.IsNullOrEmpty(Model.Add?.Username) || Model.Add?.Max != null || Model.Add?.Min != null || !string.IsNullOrEmpty(Model.Add?.CurrencyCode); var showAdvancedOptions = !string.IsNullOrEmpty(Model.Add?.CurrencyCode) || Model.Add?.Min != null || Model.Add?.Max != null; }
@@@Context.Request.Host.ToUriComponent()@Context.Request.PathBase
Advanced settings
@if (Model.Items.Any()) { @for (var index = 0; index < Model.Items.Count; index++) { var address = $"{Model.Items[index].Username}@{Context.Request.Host.ToUriComponent()}"; }
Address Settings Actions
@if (Model.Items[index].Min.HasValue) { @Safe.Raw($"{Model.Items[index].Min} min sats") } @if (Model.Items[index].Max.HasValue) { @Safe.Raw($"{Model.Items[index].Max} max sats") } @if (!string.IsNullOrEmpty(Model.Items[index].CurrencyCode)) { @Safe.Raw($"tracked in {Model.Items[index].CurrencyCode}") }
} else {

There are no Lightning Addresses yet.

}