@extends('layouts.backend.master') @section('content')

Edit Question Control Panel Manage Questions

@csrf @method('PUT')
{!! Form::label('typeId', 'Question Type', ['class' => 'control-label']) !!} {!! Form::select('typeId', $questiontype_array, $question_data->type_id, ['class' => 'form-control', 'disabled'=>true, 'id'=> 'typeId', 'autofocus']) !!}
{!! Form::select('question_category', $questioncat_array, $question_data->question_category, ['class' => 'form-control', 'id'=> 'typequestion_categoryId', 'autofocus']) !!}
@if($question_data->type_id =='9') {!! Form::select('question_topic', $question_topics_multi_choice, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='10') {!! Form::select('question_topic', $question_topics_flash_card, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='2') {!! Form::select('question_topic', $question_topic_fill_in_the_blank, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='3') {!! Form::select('question_topic', $number_question_topic, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='4') {!! Form::select('question_topic', $question_topic_true_and_false, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='5') {!! Form::select('question_topic', $question_topic_either_or, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='6') {!! Form::select('question_topic', $question_topic_six_of_best, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='7') {!! Form::select('question_topic', $question_topic_sequence, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @elseif($question_data->type_id =='8') {!! Form::select('question_topic', $question_topic_matching_item, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @else {!! Form::select('question_topic', $questioncat_array, $question_data->question_topic, ['class' => 'form-control', 'id'=> 'question_topic', 'autofocus']) !!} @endif
@if($question_data->type_id =='8')
{!! Form::label('question_title',' First Parts:', ['class' => 'control-label']) !!} @if ($question_data->question_title != "") @foreach(explode(",",$question2) as $question_title) @endforeach @endif {{ $errors->first('question_title') }}
{!! Form::label('correctMatches','Correct Matches:', ['class' => 'control-label']) !!} @if ($question_data->right_answer != "") @foreach(explode(",",$ans2) as $right_answer) @endforeach @endif {{ $errors->first('right_answer') }}
@elseif($question_data->type_id =='7' || $question_data->type_id =='6' )
{!! Form::label('answeroptions',' Answer Options:', ['class' => 'control-label']) !!} @foreach ($options_arry as $options_data) @if($options_data->option_value != null) @endif @endforeach
{!! Form::label('correctMatches','Correct Matches:', ['class' => 'control-label']) !!} @if ($question_data->right_answer != "") @foreach(explode(",",$ans2) as $right_answer) @endforeach @endif {{ $errors->first('right_answer') }}
@else
@foreach ($options_arry as $options_data) @if($options_data->option_value != null)
@endif @endforeach
@endif
@endsection