{{ 'DASHBOARD_PAGE.EMPLOYEE_STATISTICS' | translate }}

{{ 'DASHBOARD_PAGE.TITLE.TOTAL_INCOME' | translate }} {{ totals.income | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }} {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.EMPLOYEES_COUNT' | translate : { count: employeeCount } }}
{{ 'DASHBOARD_PAGE.TITLE.TOTAL_EXPENSES' | translate }} {{ totals.expense | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }} @if (percentOfIncome(totals.expense); as percent) { {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.OF_INCOME' | translate : { value: percent } }} }
{{ 'DASHBOARD_PAGE.TITLE.PROFIT' | translate }} {{ totals.profit | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }} @if (percentOfIncome(totals.profit); as percent) { {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.MARGIN' | translate : { value: percent } }} }
@if (organization?.bonusType) {
{{ 'DASHBOARD_PAGE.TITLE.TOTAL_BONUS' | translate }} {{ totals.bonus | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }} @if (percentOfIncome(totals.bonus); as percent) { {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.OF_INCOME' | translate : { value: percent } }} }
}
{{ 'DASHBOARD_PAGE.CHARTS.CASH_FLOW' | translate }}
@if (hasChartData) {
@for (item of legendItems; track item.label) { } @for (day of chartTable; track day.date) { @for (value of day.values; track $index) { } }
{{ 'DASHBOARD_PAGE.CHARTS.CASH_FLOW' | translate }}
{{ 'SM_TABLE.DATE' | translate }}{{ item.label }}
{{ day.date }}{{ value }}
} @else if (!loading) {

{{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.NO_DATA' | translate }}

{{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.NO_DATA_HINT' | translate }}

}
{{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.BREAKDOWN' | translate }}
@if (employeeCount) { @if (isFiltered) { {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.FILTERED_COUNT' | translate : { shown: visibleEmployees.length, total: employeeCount } }} } @else { {{ employeeCount }} } }
@let filterLabel = 'DASHBOARD_PAGE.ACCOUNTING_VIEW.FILTER_PLACEHOLDER' | translate;
@if (searchTerm) { @let clearLabel = 'DASHBOARD_PAGE.ACCOUNTING_VIEW.CLEAR_FILTER' | translate; }
@for (column of columns; track column.key) { {{ column.label | translate }} } @let directionLabel = (sortDirection === 'asc' ? 'DASHBOARD_PAGE.ACCOUNTING_VIEW.SORT_ASCENDING' : 'DASHBOARD_PAGE.ACCOUNTING_VIEW.SORT_DESCENDING' ) | translate;
@for (column of columns; track column.key) {
}
@for (row of visibleEmployees; track row.employee?.id; let index = $index) {
{{ index + 1 }}
{{ row.income || 0 | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }} @let share = incomeShare(row); @if (share !== null) { }
{{ row.expense || 0 | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
{{ row.profit || 0 | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
@if (organization?.bonusType) {
{{ row.bonus || 0 | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
}
} @empty { @if (!loading) { @if (isFiltered && employeeCount) {

{{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.NO_MATCHES' | translate : { term: searchTerm.trim() } }}

} @else {

{{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.NO_EMPLOYEES' | translate }}

} } } @if (visibleEmployees.length) {
{{ 'INVOICES_PAGE.TOTAL' | translate }}
{{ visibleTotals.income | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
{{ visibleTotals.expense | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
{{ visibleTotals.profit | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
@if (organization?.bonusType) {
{{ visibleTotals.bonus | currency : $safeNavigationMigration(organization?.currency) | position : $safeNavigationMigration(organization?.currencyPosition) }}
}
}