{{ 'REPORT_PAGE.PROJECT_BUDGET_REPORTS' | translate }}

@if (projects?.length > 0) {
{{ 'REPORT_PAGE.PROJECT' | translate }}
{{ 'REPORT_PAGE.EMPLOYEES/TEAMS' | translate }}
{{ 'REPORT_PAGE.SPENT' | translate }}
{{ 'REPORT_PAGE.REMAINING' | translate }}
{{ 'REPORT_PAGE.BUDGET' | translate }}
@for (project of projects; track project.project?.id || i; let i = $index) {
{{ 'REPORT_PAGE.PROJECT' | translate }}
{{ 'REPORT_PAGE.EMPLOYEES/TEAMS' | translate }}
—
{{ 'REPORT_PAGE.SPENT' | translate }}
@switch (project.budgetType) { @case (OrganizationProjectBudgetTypeEnum.HOURS) { {{ project?.spent * 3600 | durationFormat }} {{ 'REPORT_PAGE.HOURS' | translate }} } @case (OrganizationProjectBudgetTypeEnum.COST) { {{ project?.spent | currency: organization?.currency : 'symbol' | position: organization?.currencyPosition }} } @default { — } }
{{ 'REPORT_PAGE.REMAINING' | translate }}
@switch (project.budgetType) { @case (OrganizationProjectBudgetTypeEnum.HOURS) { {{ project.remainingBudget * 3600 | durationFormat }} {{ 'REPORT_PAGE.HOURS' | translate }} } @case (OrganizationProjectBudgetTypeEnum.COST) { {{ project.remainingBudget | currency: organization?.currency | position: organization?.currencyPosition }} } @default { — } }
{{ 'REPORT_PAGE.BUDGET' | translate }}
@switch (project.budgetType) { @case (OrganizationProjectBudgetTypeEnum.HOURS) { {{ project?.budget * 3600 | durationFormat }} {{ 'REPORT_PAGE.HOURS' | translate }} } @case (OrganizationProjectBudgetTypeEnum.COST) { {{ project.budget | currency: organization?.currency : 'symbol' | position: organization?.currencyPosition }} } @default { — } }
}
} @else { }
@if (project) { } @else { {{ 'REPORT_PAGE.NO_PROJECT' | translate }} }