@extends('layout.template') @section('css') @endsection @section('isi')

Ujian

{{--
--}}

Ujian

@csrf

@foreach ($detail_peserta_ujian as $item_detail) @php $no = 1; @endphp

Nama Ujian : {{ $item_detail->ujian->nama ?? "N/A" }} ({{ $item_detail->ujian->jenis_ujian->nama ?? "N/A" }})

@foreach ($soal->where('id_ujian', $item_detail->id_ujian) as $item)
{{-- @if ($item->bentuk == \App\Models\Soal::PG)

Skor = {{ $item->skor }}

@endif --}}
{{ $no }}). @if ($item->file != null)
Gambar Soal

@endif {!! $item->soal !!}


Jawaban :
@if ($item->bentuk == \App\Models\Soal::KL) @else @php $jawaban = \App\Models\Jawaban::where('id_soal', $item->id)->get(); $abjad = range('A','Z'); $nos = 0; @endphp @foreach ($jawaban as $items)
@if ($items->gambar != null)
Gambar Jawaban

@endif @php $nos++ @endphp @endforeach @endif
@php $no++; @endphp @endforeach @endforeach {{-- --}}
@endsection @section('modal') @endsection @section('js') @endsection