@if (income) {
} @if (income && headline) {
{{ headline.title }}

@if (income.isBonus) { {{ 'INCOME_VIEW.BONUS' | translate }} } @else { {{ 'INCOME_VIEW.REGULAR' | translate }} } @if (headline.employee) { {{ headline.employee }} } @if (income.tags?.length) { {{ 'INCOME_VIEW.TAG_COUNT' | translate : { count: income.tags.length } }} }

{{ 'INCOME_VIEW.AMOUNT' | translate }}
{{ 'INCOME_VIEW.CURRENCY_HINT' | translate : { currency: income.currency } }}
{{ 'INCOME_VIEW.TYPE' | translate }}
{{ (income.isBonus ? 'INCOME_VIEW.BONUS' : 'INCOME_VIEW.REGULAR') | translate }} {{ (income.isBonus ? 'INCOME_VIEW.BONUS_HINT' : 'INCOME_VIEW.REGULAR_HINT') | translate }}
{{ 'INCOME_VIEW.INCOME_DATE' | translate }}
@if (income.valueDate) { {{ income.valueDate | dateFormat }} {{ headline.since }} } @else { — }
{{ 'INCOME_VIEW.CLIENT_TOTAL' | translate }}
@if (charts.clientTotal !== null) { {{ formatAmount(charts.clientTotal) }} {{ 'INCOME_VIEW.CLIENT_TOTAL_HINT' | translate : { count: clientTotalMonths } }} } @else if (charts.loading) { … } @else { — }
@if (income.notes || income.tags?.length) { } @else {
{{ 'INCOME_VIEW.DESCRIPTION' | translate }}

{{ 'INCOME_VIEW.NO_DESCRIPTION' | translate }}

} @if (income.client && income.valueDate) {
{{ 'INCOME_VIEW.CLIENT_INCOME' | translate }}
{{ 'INCOME_VIEW.CLIENT_INCOME_CAPTION' | translate : { client: income.client.name, count: clientMonths, currency: income.currency } }}
@if (!charts.failed) {
@for (months of clientMonthOptions; track months) { {{ 'EXPENSE_VIEW.LAST_MONTHS' | translate : { count: months } }} }
}
@if (charts.failed) { } @else if (charts.clientBars.length) { }
{{ 'INCOME_VIEW.CLIENT_PAYMENTS' | translate }}
@if (charts.paymentBars.length > 1) { {{ 'INCOME_VIEW.CLIENT_PAYMENTS_CAPTION' | translate : { client: income.client.name, count: charts.paymentBars.length, currency: income.currency } }} }
@if (!charts.failed) {
@for (payments of clientPaymentOptions; track payments) { {{ 'EXPENSE_VIEW.LAST_PAYMENTS' | translate : { count: payments } }} }
}
@if (charts.failed) { } @else if (!charts.loading && charts.paymentBars.length <= 1) {

{{ 'INCOME_VIEW.NO_OTHER_PAYMENTS' | translate }}

} @else if (charts.paymentBars.length) { }
}
@if (income.valueDate && (charts.loading || charts.failed || charts.share)) {
{{ 'INCOME_VIEW.MONTH_SHARE' | translate }}
@if (charts.shareMonth) { {{ 'INCOME_VIEW.MONTH_SHARE_CAPTION' | translate : { month: charts.shareMonth } }} }
@if (charts.failed) { } @else if (charts.share) { }
}
}

{{ 'EXPENSE_VIEW.CHART_FAILED' | translate }}

@for (option of chartKindOptions; track option.kind) { }