@if (showGroupBy) {
{{ 'REPORT_PAGE.GROUP_BY' | translate }}
{{ 'REPORT_PAGE.DATE' | translate }} {{ 'REPORT_PAGE.EMPLOYEE' | translate }} {{ 'REPORT_PAGE.PROJECT' | translate }}
}
@if (groupBy != 'date') {
{{ 'REPORT_PAGE.DATE' | translate }}
} @if (groupBy != 'employee') {
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
} @if (groupBy != 'project') {
{{ 'REPORT_PAGE.PROJECT' | translate }}
}
{{ 'REPORT_PAGE.TITLE' | translate }}
{{ 'REPORT_PAGE.DURATION' | translate }}
@if (dailyData?.length > 0) { @for (day of dailyData; track day) { @switch (groupBy) { @case ('employee') { } @case ('project') { } @default { } } } } @else { }
{{ 'REPORT_PAGE.TITLE' | translate }}
{{ activityRow?.title }}
{{ 'REPORT_PAGE.DURATION' | translate }}
{{ activityRow?.duration | durationFormat }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
@if (activityIndex === 0) { }
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
@if (activityIndex === 0) { }
{{ day.date | dateFormat }} @for (employeeRow of day.employees; track employeeRow; let employeeIndex = $index) {
@for (projectRow of employeeRow.projects; track projectRow; let projectIndex = $index) {
@for (activityRow of projectRow.activity; track activityRow; let activityIndex = $index) {
@if (activityIndex == 0 && projectIndex == 0) {
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
} @else {
}
}
}
}
@for (dateRow of employee.dates; track dateRow; let dateIndex = $index) {
@for (projectRow of dateRow.projects; track projectRow; let projectIndex = $index) {
@for (activityRow of projectRow.activity; track activityRow; let activityIndex = $index) {
@if (projectIndex == 0 && activityIndex == 0) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ dateRow.date | dateFormat }}
} @else {
}
}
}
}
@for (dateRow of project.dates; track dateRow; let dateIndex = $index) {
@for (employeeRow of dateRow.employees; track employeeRow; let employeeIndex = $index) {
@for (activityRow of employeeRow.activity; track activityRow; let activityIndex = $index) {
@if (employeeIndex == 0 && activityIndex == 0) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ dateRow.date | dateFormat }}
} @else {
}
}
}
}
@if (project) { } @else { {{ 'REPORT_PAGE.NO_PROJECT' | translate }} } @if (client) { {{ client?.name }} } @else { {{ 'REPORT_PAGE.NO_CLIENT' | translate }} } @if (employee) {
} @else { {{ 'REPORT_PAGE.NO_EMPLOYEE' | translate }} }