{ goto(`/courses/${data.courseId}/lessons?next=true`); }} >
{#if isDownloading} {:else} {/if}

{$t('course.navItem.marks.student')}

{#each $lessons as lesson, index} {#if lessonMapping[lesson.id]}

{getLectureNo(index + 1)}

{#each Object.keys(lessonMapping[lesson.id]) as exerciseId, index}

{lessonMapping[lesson.id][exerciseId].title} ({lessonMapping[lesson.id][exerciseId].points})

{/each}
{/if} {/each}

{$t('course.navItem.marks.total')}

{#each students as student}
Student avatar

{student.profile.fullname}

{`${student.assigned_student_id ? '#' + student.assigned_student_id : '-'}`}

{#each $lessons as lesson} {#if lessonMapping[lesson.id]}
{#each Object.keys(lessonMapping[lesson.id]) as exerciseId}

{studentMarksByExerciseId[student.id] ? studentMarksByExerciseId[student.id][exerciseId] || '-' : '-'}

{/each}
{/if} {/each}

{calculateStudentTotal(studentMarksByExerciseId[student.id])}

{:else}

{$t('course.navItem.marks.no_student')}

{/each}