2018-07-26 22:32:24 +09:00
|
|
|
@model BTCPayServer.Models.WalletViewModels.ListWalletsViewModel
|
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(WalletsNavPages.Index, "Wallets");
|
2018-07-26 22:32:24 +09:00
|
|
|
}
|
|
|
|
|
2021-12-11 04:32:23 +01:00
|
|
|
<partial name="_StatusMessage" />
|
2018-07-26 22:32:24 +09:00
|
|
|
|
2021-12-11 04:32:23 +01:00
|
|
|
<div class="d-sm-flex justify-content-between mb-2">
|
|
|
|
<h2 class="mb-0">
|
|
|
|
@ViewData["Title"]
|
|
|
|
<small>
|
2023-02-13 00:25:24 -08:00
|
|
|
<a href="https://docs.btcpayserver.org/Wallet/" target="_blank" rel="noreferrer noopener" title="More information...">
|
|
|
|
<vc:icon symbol="info" />
|
2021-12-11 04:32:23 +01:00
|
|
|
</a>
|
|
|
|
</small>
|
|
|
|
</h2>
|
|
|
|
@if (Model.Wallets.Any())
|
|
|
|
{
|
|
|
|
<div class="mt-2 mt-sm-1">
|
|
|
|
@foreach (var balance in Model.BalanceForCryptoCode)
|
2021-09-29 11:25:39 +02:00
|
|
|
{
|
2021-12-11 04:32:23 +01:00
|
|
|
<div class="fs-5 fw-semibold">@($"{balance.Value.ShowMoney(balance.Key)} {balance.Key.CryptoCode}")</div>
|
2021-09-29 11:25:39 +02:00
|
|
|
}
|
2021-12-11 04:32:23 +01:00
|
|
|
<div class="text-muted text-sm-end fs-6">Total Balance</div>
|
2021-09-29 11:25:39 +02:00
|
|
|
</div>
|
2021-12-11 04:32:23 +01:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
@if (Model.Wallets.Any())
|
|
|
|
{
|
|
|
|
<table class="table table-hover table-responsive-md">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Store Name</th>
|
|
|
|
<th>Crypto Code</th>
|
|
|
|
<th>Balance</th>
|
|
|
|
<th class="text-end">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var wallet in Model.Wallets)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
@if (wallet.IsOwner)
|
2021-09-29 11:25:39 +02:00
|
|
|
{
|
2022-01-20 12:52:31 +01:00
|
|
|
<td><a asp-action="GeneralSettings" asp-controller="UIStores" asp-route-storeId="@wallet.StoreId">@wallet.StoreName</a></td>
|
2021-09-29 11:25:39 +02:00
|
|
|
}
|
2021-12-11 04:32:23 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
<td>@wallet.StoreName</td>
|
|
|
|
}
|
|
|
|
<td>@wallet.CryptoCode</td>
|
|
|
|
<td>@wallet.Balance</td>
|
|
|
|
<td class="text-end">
|
|
|
|
<a asp-action="WalletTransactions" asp-route-walletId="@wallet.Id">Manage</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<p class="text-secondary mt-3">
|
|
|
|
There are no wallets yet. You can add wallets in the store setup.
|
|
|
|
</p>
|
|
|
|
}
|
2021-09-29 11:25:39 +02:00
|
|
|
</div>
|
2021-12-11 04:32:23 +01:00
|
|
|
</div>
|