@extends('layouts.app') @section('title', 'Input Nilai Formatif (per TP)') @section('content')
@if($classroom && $subject) @if($objectives->isEmpty())
Belum ada Tujuan Pembelajaran untuk mapel {{ $subject->name }} di kelas {{ $classroom->name }} periode {{ $year }} semester {{ $semester }}. Buat dulu di menu Tujuan Pembelajaran.
@else
Nilai formatif per TP digabung dengan nilai sumatif menjadi nilai akhir (bobot formatif {{ $settings->formatif_weight }}% / sumatif {{ $settings->sumatif_weight }}%). Nilai yang merah = turun dari semester/tahun sebelumnya.
@csrf
@foreach($objectives as $objective) @endforeach @foreach($students->values() as $index => $student) @php $studentScores = $scores->get($student->id, collect()); $scoreByTp = $studentScores->keyBy('learning_objective_id'); @endphp @foreach($objectives as $objective) @php $value = $scoreByTp->get($objective->id)?->score; @endphp @endforeach @endforeach @if($students->isEmpty()) @endif
No Nama Siswa
{{ $objective->code }}
{{ \Illuminate\Support\Str::limit($objective->description, 40) }}
{{ $index + 1 }} {{ $student->nama }}
Tidak ada siswa aktif di kelas ini.
Kosongkan input untuk menghapus nilai.
@endif @else
Pilih kelas dan mata pelajaran terlebih dahulu.
@endif @endsection