@if (showGroupBy) {
{{ 'REPORT_PAGE.GROUP_BY' | translate }}
{{ 'REPORT_PAGE.DATE' | translate }} {{ 'REPORT_PAGE.EMPLOYEE' | translate }} {{ 'REPORT_PAGE.PROJECT' | translate }} {{ 'REPORT_PAGE.CLIENT' | translate }}
}
@if (dailyLogs?.length > 0) { @for (day of dailyLogs; track day.date || $index) { @switch (groupBy) { @case (ReportGroupFilterEnum.employee) {
{{ day?.sum | durationFormat }}
} @case (ReportGroupFilterEnum.project) {
{{ day?.sum | durationFormat }}
} @case (ReportGroupFilterEnum.client) {
{{ day?.sum | durationFormat }}
} @default {
{{ day?.sum | durationFormat }}
} }
@switch (groupBy) { @case (ReportGroupFilterEnum.employee) { } @case (ReportGroupFilterEnum.project) { } @case (ReportGroupFilterEnum.client) { } @default { } }
}
} @else {
}
@for (logs of day.logs; track logs.project?.id || $index) { @for (employeeLog of logs.employeeLogs; track employeeLog.employee?.id || $index) {
@for (task of employeeLog.tasks; track task.id || $index) {
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
{{ 'REPORT_PAGE.CLIENT' | translate }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
{{ 'REPORT_PAGE.TO_DO' | translate }}
{{ 'REPORT_PAGE.NOTES' | translate }}
{{ task?.description | truncate: 40 }}
{{ 'REPORT_PAGE.TIME' | translate }}
{{ task.duration | durationFormat }}
{{ 'REPORT_PAGE.ACTIVITY' | translate }}
}
} }
@for (day of employee.logs; track day.date || $index) { @for (projectLog of day.projectLogs; track projectLog.project?.id || $index) {
@for (task of projectLog.tasks; track task.id || $index) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ 'REPORT_PAGE.CLIENT' | translate }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
{{ 'REPORT_PAGE.TO_DO' | translate }}
{{ 'REPORT_PAGE.NOTES' | translate }}
{{ task?.description | truncate: 40 }}
{{ 'REPORT_PAGE.TIME' | translate }}
{{ task.duration | durationFormat }}
{{ 'REPORT_PAGE.ACTIVITY' | translate }}
}
} }
@for (day of project.logs; track day.date || $index) { @for (employeeLog of day.employeeLogs; track employeeLog.employee?.id || $index) {
@for (task of employeeLog.tasks; track task.id || $index) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
{{ 'REPORT_PAGE.CLIENT' | translate }}
{{ 'REPORT_PAGE.TO_DO' | translate }}
{{ 'REPORT_PAGE.NOTES' | translate }}
{{ task?.description | truncate: 40 }}
{{ 'REPORT_PAGE.TIME' | translate }}
{{ task?.duration | durationFormat }}
{{ 'REPORT_PAGE.ACTIVITY' | translate }}
}
} }
@for (clientLogs of client.logs; track clientLogs.project?.id || $index) { @for (day of clientLogs.logs; track day.date || $index) { @for (projectLog of day.projectLogs; track projectLog.project?.id || $index) { @for (task of projectLog.tasks; track task.id || $index) {
{{ 'REPORT_PAGE.DATE' | translate }}
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
{{ 'REPORT_PAGE.PROJECT' | translate }}
{{ 'REPORT_PAGE.TO_DO' | translate }}
{{ 'REPORT_PAGE.NOTES' | translate }}
{{ task?.description | truncate: 40 }}
{{ 'REPORT_PAGE.TIME' | translate }}
{{ task.duration | durationFormat }}
{{ 'REPORT_PAGE.ACTIVITY' | translate }}
} } } }
@if (task?.title) { {{ task?.title | truncate: 40 }} } @else { {{ 'REPORT_PAGE.NO_TASK' | translate }} } @if (client) { } @else { {{ 'REPORT_PAGE.NO_CLIENT' | translate }} }
@if (employee) { }
{{ 'REPORT_PAGE.NO_EMPLOYEE' | translate }}
{{ date | dateFormat }}
@if (groupBy != ReportGroupFilterEnum.date) {
{{ 'REPORT_PAGE.DATE' | translate }}
} @if (groupBy != ReportGroupFilterEnum.employee && groupBy !== ReportGroupFilterEnum.project) {
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
} @if (groupBy != ReportGroupFilterEnum.employee && groupBy === ReportGroupFilterEnum.project) {
{{ 'REPORT_PAGE.EMPLOYEE' | translate }}
} @if (groupBy != ReportGroupFilterEnum.client) {
{{ 'REPORT_PAGE.CLIENT' | translate }}
} @if (groupBy != ReportGroupFilterEnum.project) {
{{ 'REPORT_PAGE.PROJECT' | translate }}
}
{{ 'REPORT_PAGE.TO_DO' | translate }}
{{ 'REPORT_PAGE.NOTES' | translate }}
{{ 'REPORT_PAGE.TIME' | translate }}
{{ 'REPORT_PAGE.ACTIVITY' | translate }}