{{ $fil['peserta']['nama'] }}
{{ $fil['peserta']['no_ujian'] }}
|
@php
$benar = 0;
@endphp
@foreach($soals as $soal)
@php
$filtered = collect($fil['data'])->firstWhere('soal_id', $soal->id);
if($filtered != '') {
$benar += $filtered->iscorrect;
}
@endphp
{{ $filtered != '' ? $filtered->iscorrect : '-' }}
|
@endforeach
{{ $benar }}
|
@endforeach