{!! Form::open([ 'method' => 'PUT', 'route' => ['question.update', $question->id], 'files' => true, 'id' => 'edit-question-form', ]) !!} {!! Form::hidden('exam_category_id', $question->exam_category_id, ['id' => 'exam_category_id']) !!} {!! Form::hidden('exam_id', $question->exam_id, ['id' => 'exam_id']) !!} {!! Form::hidden('redirect_head', 'ajax_create', ['id' => 'redirect_head']) !!}
{!! Form::text('question_ar', $question->question_ar, [ 'class' => 'form-control', 'placeholder' => trans('messages.Question Ar'), ]) !!}
{!! Form::textarea('answer_explanation_ar', $question->answer_explanation_ar, [ 'class' => 'form-control', 'rows' => 4, 'placeholder' => trans('messages.Answer explanation'), ]) !!}
{!! Form::text('question_en', $question->question_en, [ 'class' => 'form-control', 'placeholder' => trans('messages.Question EN'), ]) !!}
{!! Form::textarea('answer_explanation_en', $question->answer_explanation_en, [ 'class' => 'form-control', 'rows' => 4, 'placeholder' => trans('messages.Answer explanation'), ]) !!}
{!! Form::text('question_nl', $question->question_nl, [ 'class' => 'form-control', 'placeholder' => trans('messages.Question Nl'), ]) !!}
{!! Form::textarea('answer_explanation_nl', $question->answer_explanation_nl, [ 'class' => 'form-control', 'rows' => 4, 'placeholder' => trans('messages.Answer explanation'), ]) !!}
{!! Form::select( 'question_type', ['mcq' => 'MCQ', 'mcq_image' => 'MCQ image', 'text_input' => 'Text', 'drag_drop' => 'Drag & Drop'], $question->question_type, [ 'id' => 'question_type', 'class' => 'form-control select2', 'data-placeholder' => trans('Question type'), ], ) !!}
{!! Form::number('arrangment', $question->arrangment, [ 'class' => 'form-control', 'placeholder' => trans('messages.Arrangment'), ]) !!}
@if(!empty($question->question_image) && file_exists(public_path().'/'.$question->question_image)) @if(in_array(pathinfo($question->question_image, PATHINFO_EXTENSION),["JPG","jpg","jpeg","gif","png","bmp"])) @else @endif @else @endif
{!! Form::Close() !!}