@page "/salary" @using BudgetApp.Data.Entities @attribute [Authorize] @inject ISalaryRepository SalaryService @inject IAccountRepository AccountService @inject AuthenticationStateProvider AuthStateProvider @rendermode InteractiveServer Salary

Salary

Define your regular income sources. Each salary generates recurring transactions at the set interval, forever.

Add Income Source
@if (_accountsList is not null && _accountsList.Count == 0) {
You need to create an account before adding a salary.
} else {
@if (_accountsList is not null) { @foreach (var account in _accountsList) { } }
}
@if (_salaries is null) {

Loading...

} else if (_salaries.Count == 0) {
No income sources yet. Add one above to start tracking your salary.
} else {
Income Sources
@foreach (var s in _salaries) { }
Name Amount Account Schedule Next Payday
๐Ÿ’ฐ @s.Name +@s.Account.FormatAmount(s.Amount) @s.Account.Name ๐Ÿ” @s.GetPaydaySummary() @if (_nextPaydates.TryGetValue(s.Id, out var next) && next.HasValue) { @next.Value.ToString("MMM dd, yyyy") } else { โ€” }
} @if (_showDeleteModal && _pendingDeleteSalary is not null) { } @code { // Delete state }