{{ 'DASHBOARD_PAGE.EMPLOYEE_STATISTICS' | translate }}

{{ 'DASHBOARD_PAGE.TITLE.TOTAL_INCOME' | translate }} {{ totals.income | currency : organization?.currency | position : organization?.currencyPosition }} {{ 'DASHBOARD_PAGE.ACCOUNTING_VIEW.EMPLOYEES_COUNT' | translate : { count: employeeCount } }}
{{ 'DASHBOARD_PAGE.TITLE.TOTAL_EXPENSES' | translate }} {{ totals.expense | currency : organization?.currency | position : 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 : organization?.currency | position : 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 : organization?.currency | position : 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) { {{ employeeCount }} }
@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 sortedEmployees; track row.employee?.id; let index = $index) {
{{ index + 1 }}
{{ row.income || 0 | currency : organization?.currency | position : organization?.currencyPosition }} @let share = incomeShare(row); @if (share !== null) { }
{{ row.expense || 0 | currency : organization?.currency | position : organization?.currencyPosition }}
{{ row.profit || 0 | currency : organization?.currency | position : organization?.currencyPosition }}
@if (organization?.bonusType) {
{{ row.bonus || 0 | currency : organization?.currency | position : organization?.currencyPosition }}
}
} @empty { @if (!loading) {

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

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