@extends('layout.main') @section('title', 'Edit Kuis') @section('isi') @if (Auth::user()->is_admin == 1)

EDIT KUIS

@if ($quiz != null)
@csrf
@error('kuis') {{ $message }} @enderror
@error('jurusan') {{ $message }} @enderror
@if ($quiz->untuk != null) @else @endif
@error('siswa') {{ $message }} @enderror
@error('tangakhir') {{ $message }} @enderror
@error('wakakhir') {{ $message }} @enderror
{{--
@csrf
--}}
@csrf
@error('tanyaan') {{ $message }} @enderror
@foreach ($tanyaan as $tanya) @php $choices = app('App\Http\Controllers\QuizzesController')->getPilihin($tanya->id); $jch = app('App\Http\Controllers\QuizzesController')->jumPilihin($tanya->id); $jchb = app('App\Http\Controllers\QuizzesController')->jumPilihinBenar($tanya->id); @endphp
@csrf
@error('pertanyaan') {{ $message }} @enderror
@if ($jch <= 5) @endif
@csrf @method('delete')
@csrf

@foreach ($choices as $ch)
@csrf
@error('pilihan') {{ $message }} @enderror
@if ($ch->benar == 0 || $ch->benar == null) @else @endif
@csrf @method('delete')
@endforeach
@endforeach @endif
Selesai
@endif @endsection @section('script') @endsection