@page "/accounts" @using BudgetApp.Data.Entities @attribute [Authorize] @inject IAccountRepository AccountService @inject AuthenticationStateProvider AuthStateProvider @inject AppState AppState @rendermode InteractiveServer Accounts

Accounts

Manage your financial accounts, balances and currencies.

Add Account
@foreach (var kvp in Account.CurrencySymbols) { }
@if (_accounts is null) {

Loading...

} else if (_accounts.Count == 0) {
No accounts yet. Add one above to get started.
} else {
@foreach (var account in _accounts) {
@if (_editingAccountId == account.Id) {
} else {
@account.Name
@account.CurrencyCode
@if (_editingBalanceAccountId == account.Id) {
@account.GetSymbol()
} else {

@account.FormatAmount(account.CurrentBalance)

Click balance to adjust } }
}
} @if (_showDeleteModal && _pendingDeleteAccount is not null) { } @code { // Balance editing state // Account details editing state // Delete confirmation state }