@extends('layouts.cbt') @section('page-title', 'Koreksi: '.$exam->title) @section('sidebar')@include('components.guru-sidebar')@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($answers->isEmpty())

Semua jawaban esai untuk ujian ini sudah dinilai.

@else
@foreach($answers as $answer) @php $maxPoints = $gradingService->getMaxPoints($answer); @endphp

{{ $answer->attempt->student->user->name }} ({{ $answer->attempt->student->nis }})

{!! $answer->question->content !!}

Bobot soal: {{ $maxPoints }} poin

Jawaban Siswa:

{{ $answer->essay_answer ?: '(belum diisi)' }}

@csrf
@endforeach
@endif Kembali @endsection