{{ $ujian->nama }}
Kelas : {{ $ujian->kelas->nama_kelas }}
Mapel : {{ $ujian->mapel->nama_mapel }}
Jumlah Soal : {{ $ujian->detailujian->count() }} Soal
Waktu Ujian : {{ $ujian->jam }} Jam {{ $ujian->menit }} Menit
@if ($waktu_ujian->selesai == null)
@csrf
| 00 : 00 : 00
@php $no = 1; $soal_hidden = ''; @endphp @foreach ($pg_siswa as $soal)
Soal No. {{ $no }}
{!! $soal->detailujian->soal !!}
  1. jawaban == substr($soal->detailujian->pg_1, 0 ,1)) checked @endif/>
  2. jawaban == substr($soal->detailujian->pg_2, 0 ,1)) checked @endif/>
  3. jawaban == substr($soal->detailujian->pg_3, 0 ,1)) checked @endif/>
  4. jawaban == substr($soal->detailujian->pg_4, 0 ,1)) checked @endif/>
  5. jawaban == substr($soal->detailujian->pg_5, 0 ,1)) checked @endif/>
@php $soal_hidden = 'hidden'; $no++; @endphp @endforeach
Nomor Soal
@php $no = 1; @endphp @foreach ($pg_siswa as $soal)
@php $no++; @endphp @endforeach
- = Sudah dikerjakan
- = Ragu - Ragu
- = Belum dikerjakan
@else
ujian selesai
@php $no = 1; $soal_hidden = ''; @endphp @foreach ($pg_siswa as $soal)
Soal No. {{ $no }}
{!! $soal->detailujian->soal !!}
Jawaban Kamu : @if($soal->jawaban == null) tidak dijawab @endif @if($soal->jawaban !== null) {{ $soal->jawaban }} @endif @if($soal->benar == 1) benar @endif @if($soal->benar == 0) salah @endif @if($soal->ragu == 1) Ragu - Ragu @endif
@php $soal_hidden = 'hidden'; $no++; @endphp @endforeach
@php $salah = 0; $benar = 0; $tidakDijawab = 0; @endphp @foreach ($pg_siswa as $soal) @if ($soal->benar == '0') @php $salah++ @endphp @endif @if ($soal->benar == '1') @php $benar++ @endphp @endif @if ($soal->benar === null) @php $tidakDijawab++ @endphp @endif @endforeach
Nomor Soal
@php $no = 1; @endphp @foreach ($pg_siswa as $soal)
@php $no++; @endphp @endforeach
- = Sudah dikerjakan
- = Ragu - Ragu
- = Belum dikerjakan
@endif
@include('template.footer')