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

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

@csrf @if (isset($question)) @method('PATCH') @endif
type !== 'choices' ? 'd-none' : null) :null) : null}}" id="choices" role="tabpanel" aria-labelledby="home-tab">
الأجابات

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

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="">
type !== 'correct' ? 'd-none' : null) :'d-none') : null}}" id="correct" role="tabpanel" aria-labelledby="home-tab">

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

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