@extends('teacher.layout') @section('title', 'Gradebook') @section('content') @php $tab = 'grades'; @endphp @include('teacher.partials.workspace_tabs')
ℹ These are LMS activity scores (assignments + quizzes), gathered automatically as you grade. They are a working record — importing them into the school's official grade sheet stays with the Registrar's encoding process.
@if ($columns->isEmpty()) @else
@foreach ($columns as $col) @endforeach @foreach ($students as $s) @php $row = $scores[$s->student_id] ?? []; $earned = array_sum($row); $pct = $totalMax > 0 ? round($earned / $totalMax * 100) : 0; @endphp @foreach ($columns as $col) @php $v = $row[$col['key']] ?? null; @endphp @endforeach @endforeach
Student {{ $col['kind'] }} {{ \Illuminate\Support\Str::limit($col['label'], 16) }} /{{ rtrim(rtrim(number_format($col['max'],1),'0'),'.') }} Total
{{ $s->fullName() }} {{ $v === null ? '—' : rtrim(rtrim(number_format((float)$v,2),'0'),'.') }} {{ rtrim(rtrim(number_format($earned,2),'0'),'.') }} {{ $pct }}%

Total possible: {{ rtrim(rtrim(number_format($totalMax,2),'0'),'.') }} points across {{ $columns->count() }} activit{{ $columns->count() === 1 ? 'y' : 'ies' }}.

@endif @endsection