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}

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}

No Student Added

{/each}