@extends('layouts.app') @section('css') @endsection @section('content')

@if (isset($question)) تعديل سؤال @else أضافة سؤال @endif

الحد الأقصى 10 أسئلة فى المرة الواحدة
@csrf @if (isset($question)) @method('PATCH') @endif
أضافة أسئلة
@foreach ($bargraphs as $bargraph) @endforeach
الأجابات

أدخل الأجابات وقم بتحديد الأجابة الصحيحة بينهم

answers[0]->id ?? null) == $question->correct_answer ? 'checked' : null) : 'checked') : null }} type="radio" name="correct_answer" class="check form-check-input p-2" value="0" id="">
answers[1]->id ?? null) == $question->correct_answer ? 'checked' : null) : null) : null }} type="radio" name="correct_answer" class="check form-check-input p-2" value="1" id="">
answers[2]->id ?? null) == $question->correct_answer ? 'checked' : null) : null) : null }} type="radio" name="correct_answer" class="check form-check-input p-2" value="2" id="">
answers[3]->id ?? null) == $question->correct_answer ? 'checked' : null) : null) : null }} type="radio" name="correct_answer" class="check form-check-input p-2" value="3" id="">

قم بتحديد الأجابة الصحيحة

correct_answer ? 'checked' : null) : null) : null }} checked type="radio" name="correct" class="form-check-input p-2" value="0" id="correct_"> {{-- --}} correct_answer ? 'checked' : null) : null) : null }} type="radio" name="correct" class=" form-check-input p-2" value="1" id="wrong"> {{-- --}}
@endsection @section('js') @endsection