SOAL PRETEST / POSTTEST

Materi: {{ $lpm->topik }}


@php $kunciJawaban = []; @endphp @foreach($lpm->kuis ?? [] as $index => $soal)
{{ $index + 1 }}. {{ $soal['pertanyaan'] }}
@foreach($soal['opsi'] as $opsiIndex => $opsi) @php $huruf = chr(65 + $opsiIndex); if(isset($opsi['benar']) && $opsi['benar'] == true) { $kunciJawaban[$index + 1] = $huruf; } @endphp
{{ $huruf }}. {{ $opsi['teks'] }}
@endforeach
@endforeach
{{ $lpm->user->city ? \Illuminate\Support\Str::title($lpm->user->city->name) : '........................' }}, {{ \Carbon\Carbon::parse($lpm->tanggal_pelaksanaan)->translatedFormat('d F Y') }}
Penyuluh Pertanian,
@if(isset($lpm->user->ttd_penyuluh) && $lpm->user->ttd_penyuluh) @endif
{{ $lpm->user->name ?? '....................................' }}
NIP. {{ $lpm->user->nip ?? '.........................' }}
KUNCI JAWABAN
@for($i = 1; $i <= 10; $i++) @if($i % 2 == 0) @endif @endfor
{{ $i }}. {{ $kunciJawaban[$i] ?? '-' }}