@extends('layouts.main') @section('title','Manage Questions') @section('content')
Please wait, Loading...
@if($id)
@else @if($errors->isEmpty())
@else
@endif @endif
{!! Form::open(array('url' =>secure_url('pro/question/bulkupload'), 'class'=>'form-horizontal','files' => true,'encytype'=>'multipart/form-data', 'method'=>'post','id'=>'js-question-bulk-upload')) !!}
!

Select "Question Type" to download template. Fill all the required details and upload the file.

{!! Form::file('upload_question',array('class' => 'custom-file-input','id'=>'inputGroupFile02',"style"=>"display: none;")) !!}
@if ($errors->has('upload_question')) @endif
QMS Settings
{!! Form::select('bulk_question_type',$question_type_master_bulk,"",array('class'=>'hme-select-style ','id'=>'js-bulk_question_type','placeholder'=>'Select')) !!} @if ($errors->has('bulk_question_type')) @endif
{!! Form::select('bulk_pool_name',[],"",array('class'=>'hme-select-style select2','id'=>'js-bulk_pool_name','placeholder'=>'Select')) !!} @if ($errors->has('bulk_pool_name')) @endif
{!! Form::close()!!}
@if($id)
@else @if($errors->isEmpty())
@else
@endif @endif {!! Form::open(['url' =>secure_url('pro/question-upload'),'method'=>'POST','name'=>'pro_question_form','id'=>'pro_question_form']) !!} {!! Form::hidden('pool_id',$question_details['pool_id'],array('id'=>"js_pool_id"))!!} {!! Form::hidden('questiontype',$question_details['question_type'],array('id'=>"js_pro_question_type"))!!} {!! Form::hidden('question_id',$id,array('id'=>"js_question_id"))!!} {!! Form::hidden('problem_id',$problem_id,array('id'=>"js_problem_id"))!!} {!! Form::hidden('sub_audio_count','',array('id'=>"js-subquestion-audio-count"))!!} {!! Form::hidden('subquestion_edit_audios[]','',array('id'=>"js_edit_subquestion_aud",'class'=>"js_edit_subquestion_audios"))!!} {!! Form::hidden('is_sub_ques_wise_score',$question_details['question_wise_score'],array('id'=>"is_sub_ques_wise_score"))!!} {!! Form::hidden('sub_video_count','',array('id'=>"js-subquestion-video-count"))!!} {!! Form::hidden('audio_url','',array('id'=>"js_audio_url_id"))!!} {!! Form::hidden('audio_mime','',array('id'=>"js_audio_url_mime"))!!} {!! Form::hidden('video_url','',array('id'=>"js_video_url_id"))!!} {!! Form::hidden('video_mime','',array('id'=>"js_video_url_mime"))!!} {!! Form::hidden('pdf_url','',array('id'=>"js_pdf_url_id"))!!} {!! Form::hidden('pdf_mime','',array('id'=>"js_pdf_url_mime"))!!} {!! Form::hidden('audio_media_type','',array('id'=>"js_audio_media_type"))!!} {!! Form::hidden('audio_media_type','',array('id'=>"js_video_media_type"))!!} {!! Form::hidden('pdf_media_type','',array('id'=>"js_pdf_media_type"))!!} {!! Form::hidden('audio_resource_url','',array('id'=>"js_audio_resource_url"))!!} {!! Form::hidden('video_resource_url','',array('id'=>"js_video_resource_url"))!!} {!! Form::hidden('pdf_resource_url','',array('id'=>"js_pdf_resource_url"))!!} {!! Form::hidden('upload_audio_ajax_s3id','',array('class'=>"js-pro-sub_questions_path"))!!} {!! Form::hidden('upload_audio_ajax_media_type','',array('class'=>"js-pro-sub_questions_media_type"))!!} {!! Form::hidden('upload_audio_ajax_mime_type','',array('class'=>"js-pro-sub_questions_mime_type"))!!} {!! Form::hidden('upload_audio_ajax_resource_url','',array('class'=>"js-pro-sub_questions_resource_url"))!!} {!! Form::hidden('zip_url','',array('id'=>"js_zip_url_id"))!!} {!! Form::hidden('zip_mime','',array('id'=>"js_zip_url_mime"))!!} {!! Form::hidden('zip_media_type','',array('id'=>"js_zip_media_type"))!!} {!! Form::hidden('zip_resource_url','',array('id'=>"js_zip_resource_url"))!!} @if($audio_video_url) @if($audio_video_url->is_media_type == 1) @if($audio_video_url) @if($audio_video_url->getAudioVideoUrl) {!! Form::hidden('resource_url',$audio_video_url? $audio_video_url->getAudioVideoUrl->s3_id : "",array('id'=>"js_pro_resource_url"))!!} {!! Form::hidden('data_media_type',$audio_video_url? $audio_video_url->getAudioVideoUrl->media_type : "",array('id'=>"js_pro_media_type"))!!} @endif @endif @endif @endif @if($question_details) {!! Form::hidden('js_pro_subj_ans_sels',$question_details->is_manual_evaluation ?? '',array('id'=>"js_pro_subj_ans_sels"))!!} {!! Form::hidden('js_pro_subj_ans_id',$question_details->subjtiveAnswer->id ?? '',array('id'=>"js_pro_subj_ans_id"))!!} @endif
@if(empty($id)) {!! Form::select('question_type',$question_type_master,$question_details['question_type'],array('class'=>'hme-select-style','id'=>'js-question_type','placeholder'=>'Select')) !!} @else {!! Form::select('question_type',$question_type_master,$question_details['question_type'],array('class'=>'hme-select-style','id'=>'js-question_type','placeholder'=>'Select','disabled'=>'true')) !!} {!! Form::hidden('question_type',$question_details['question_type'],array('id'=>"js_pro_question_type1"))!!} @endif @if ($errors->has('question_type')) @endif
@if(empty($id)) {!! Form::select('pool_name',[],"",array('class'=>'hme-select-style select2','id'=>'js-pool_name','placeholder'=>'Select')) !!} @else {!! Form::select('pool_name',[],"",array('class'=>'hme-select-style select2','id'=>'js-pool_name','placeholder'=>'Select','disabled'=>'true')) !!} @endif @if ($errors->has('pool_id')) @endif
@php if(!empty($id)) { if(isset($question_details['topic_id']) && $question_details['topic_id']!=0) $topic_name_input = $question_details->topic_name ? $question_details->topic_name->name : ''; else $topic_name_input = "No Topic"; } else $topic_name_input = ""; @endphp
@if(empty($id)) {!! Form::select('difficulty_level',$difficulty_level,$question_details['difficult_level_id'],array('class'=>'hme-select-style ','id'=>'js-difficulty_level','placeholder'=>'Select')) !!} @else {!! Form::select('difficulty_level',$difficulty_level,$question_details['difficult_level_id'],array('class'=>'hme-select-style ','id'=>'js-difficulty_level','placeholder'=>'Select','disabled'=>'true')) !!} {!! Form::hidden('difficulty_level',$question_details['difficult_level_id'],array('id'=>"js_pro_difficulty_level"))!!} @endif @if ($errors->has('difficult_level_id')) @endif
@if($question_details['question_type'] !=7)
{!! Form::select('bloomstaxonomy',$bloomstaxonomy,$question_details['blooms_taxonomy_id'],array('class'=>'hme-select-style ','id'=>'js-bloomstaxonomy','placeholder'=>'Select')) !!}
@endif @if(!empty($is_course_mapping)) @if($is_course_mapping == 1)
@php if(!empty($id)) { if(isset($question_details['course_id']) && (($question_details['course_id']!=0)&&($question_details['course_id']!=null))){ $course_name_input = $question_details->course_name ? $question_details->course_name->course_name : ''; }else{ $course_name_input = ""; } } else{ $course_name_input = ""; } @endphp
@endif @endif {{--@if($id) @if($question_details['question_type']==4)
@else
@endif @else
@endif
{!! Form::select('language_cluster[]',$languatgecluster,!empty($prog_lang)?$prog_lang:null,array('class'=>'form-control select2','multiple'=>true,'id'=>'js-languagecluster-id','data-placeholder'=>'Select')) !!}
--}}
@if($id && $question_details['question_type']==4)
{!! Form::text('problem_name',$problem_name,array('class'=>'form-control','id'=>'js_pro_problem_name','maxlength'=>150)) !!}
@else
{!! Form::text('problem_name',$problem_name,array('class'=>'form-control','id'=>'js_pro_problem_name','maxlength'=>150)) !!}
@endif
{!! Form::textarea('question',htmlentities($question_details['question']),array('class'=>' ','id'=>'js_pro_question')) !!}
    @if($essay_qus) @php $essayids = 0; @endphp @foreach($essay_qus->essayAnswerDetail as $values)
  • {{-- @if($essayids==1) --}} Essay Model {{ ($essayids+1) }} {{-- @endif --}} {!! Form::hidden('car_essay_id',$values->id,array('class'=>'form-control essay_ids','id'=>'js_pro_essay_id'))!!} {!! Form::textarea('essay_ans',htmlentities($values->essay_model),array('class'=>'js_pro_editors getvalues','id' =>'js_pro_essay_question_'.$essayids)) !!}
  • @php ++$essayids; @endphp @endforeach @else
  • Essay Model 1{!! Form::textarea('essay_ans','',array('class'=>'js_pro_editors getvalues','id'=>'js_pro_essay_question_0')) !!}
  • @endif
@if($id) @if($question_details['question_type']==4)
{!! Form::textarea('test_input',null,array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_input','placeholder'=>'text editor')) !!}

-- OR --


{!! Form::file('input_file',array('id'=>'input_file')) !!}
{!! Form::textarea('test_output',null,array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_output','placeholder'=>'text editor')) !!}

-- OR --


{!! Form::file('output_file',array('id'=>'output_file')) !!}
{!! Form::text('testcasetime',null,array('id'=>'js-pro-tescase-timestimate','class'=>'form-control','placeholder'=>'Enter Time in Seconds')) !!}
{!! Form::number('test_case_score','',array('id'=>'js-pro-test-case-score','class'=>'form-control','placeholder'=>'Enter test case score','min'=>1,'max'=>50,"step"=>"0.1")) !!}
@php $t=1 @endphp @foreach($testcases as $tetstcase) @php $t++ @endphp @endforeach
{{ $t }} Test Case {{ $t }} {!! Form::hidden('testcase_input[]',$tetstcase->input,array("id"=>'js-testcase-input-id'.$t)) !!} {!! Form::hidden('testcase_output[]',$tetstcase->output,array("id"=>'js-testcase-output-id'.$t)) !!} {!! Form::hidden('testcase_time_estimate[]',$tetstcase->time_limit,array("id"=>'js-testcase-time-estimate-id'.$t)) !!} {!! Form::hidden('testcase_id[]',$tetstcase->id,array("id"=>'js-testcase-id'.$t)) !!} {!! Form::hidden('testcase_status_id[]',($tetstcase->active_status==1)?'true':'false',array("id"=>'js-testcase-status-id'.$t)) !!} {!! Form::hidden('testcase_score_value[]',$tetstcase->score,array("id"=>"js-testcase-score-value".$t)) !!} {!! Form::hidden('inputFileUrl[]',$tetstcase->input_s3_resource,array("id"=>"testcase-input-url".$t)) !!} {!! Form::hidden('outputFileUrl[]',$tetstcase->output_s3_resource,array("id"=>"testcase-output-url".$t)) !!}
@endif @else
{!! Form::textarea('test_input','',array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_input','placeholder'=>'text editor')) !!}

-- OR --


{!! Form::file('input_file',array('id'=>'input_file')) !!}
{!! Form::textarea('test_output','',array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_output','placeholder'=>'text editor')) !!}

-- OR --


{!! Form::file('output_file',array('id'=>'output_file')) !!}
{!! Form::text('testcasetime','',array('id'=>'js-pro-tescase-timestimate','class'=>'form-control','placeholder'=>'Enter Time in Seconds')) !!}
{!! Form::number('test_case_score','',array('id'=>'js-pro-test-case-score','class'=>'form-control','placeholder'=>'Enter test case score','min'=>1,'max'=>50)) !!}
@endif @if($id) @if($question_details['question_type']==1 || $question_details['question_type']==11)
@else
@endif @else
@endif
@if(!empty($is_simulation)) @if($is_simulation == 1)
@endif @endif
@lang('core.pro_audio_video')*
{!! Form::file('audio_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-audio_question')) !!}
@lang('core.pro_video_video')*
{!! Form::file('video_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-video_question')) !!}
PDF*
{!! Form::file('pdf_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-pdf_question')) !!}
{!! Form::button('Upload', ['id'=>'js-pro-audio-video-upload','class' => 'btn btn-primary f-16 waves-effect'] ) !!}
@if($question_details['question_type'] !=7)
@if($id) @php $i=1 @endphp @foreach($question_details->options as $key)
{!! Form::textarea('options'.$i,htmlentities($key->options),array('class'=>'js_pro_editors ','id'=>'pro_edit_option'.$i.'_editor')) !!}
{!! Form::checkbox('checkbox'.$i,$key->answer ? true : false)!!} @if($key->answer) @php $label='YES';@endphp @else @php $label='No';@endphp @endif
@php $i++ @endphp @endforeach @else
{!! Form::textarea('options1',"",array('class'=>'js_pro_editors ','id'=>'pro_edit_option1_editor')) !!}
{!! Form::textarea('options2',"",array('class'=>'js_pro_editors ','id'=>'pro_edit_option2_editor')) !!}
@endif
Answer Options :
    @if($id) @php $i=1 @endphp @foreach($question_details->options as $key)
  • @if($i >=3) @endif @if($question_details['question_type'] != 11) @if($key->answer) @endif @endif
  • @php $i++ @endphp @endforeach @else
  • @endif
@endif

{!! Form::text("subjct_auto_ans",isset($question_details->subjtiveAnswer)? $question_details->subjtiveAnswer->answer : '',['class' => 'js-pro-auto_ans','id'=>'js-pro-subjct_quto_ans','style'=>'width:100%;']) !!}
@if(!empty($is_simulation)) @if($is_simulation == 1)
@endif @endif
@lang('core.pro_audio_video')*
{!! Form::file('audio_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-sub-audio_question')) !!}
@lang('core.pro_video_video')*
{!! Form::file('video_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-sub-video_question')) !!}
PDF*
{!! Form::file('pdf_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-sub-pdf_question')) !!}
Zip*
{!! Form::file('zip_question',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-sub-zip_question')) !!}
{!! Form::button('Upload', ['id'=>'js-pro-sub-audio-video-upload','class' => 'btn btn-primary f-16 waves-effect'] ) !!}
{!! Form::file('subqus_audio',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-subqus-audio')) !!}
{!! Form::file('subqus_video',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-subqus-video')) !!}
{!! Form::file('subqus_pdf',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-subqus-pdf')) !!}
{!! Form::button('Upload', ['id'=>'js-pro-subqus-audio-video-upload','class' => 'btn btn-primary f-16 waves-effect'] ) !!}
{{-- @author Dilip @abstract Remarks --}}
@if(empty($id)) {!! Form::text('remarks',isset($question_details['remarks']) ? $question_details['remarks'] : '',array('class'=>'form-control','id'=>'js_pro_remarks')) !!} @else {!! Form::text('remarks',isset($question_details['remarks']) ? $question_details['remarks'] : '',array('class'=>'form-control','id'=>'js_pro_remarks','disabled'=>true)) !!} @endif
{{-- @author Dilip @abstract Remarks --}} @if($id) @if($question_details['question_type']==7)
@else
@endif @else
@endif @if($question_details['question_type'] !=4) @endif
{!! Form::text('question_score',$question_details['score'],array('id'=>'pro_question_score', 'class'=>'form-control decimal','onpaste'=>'return false','onkeypress'=>"return isNumberKey(event)", ($question_details['question_wise_score']==1 && $subQuesScorsEditStatus==0)? 'readonly':'' )) !!}
{{-- @author Karthikaipriyan @abstract Subjective PDF Question Score --}}
@if($question_details['question_type'] ==3 || $question_details['question_type'] ==7 )
@else
@endif @if($question_details['question_type'] !=3 && $question_details['question_type'] !=5)
{!! Form::text('negative_question_score',$question_details['negative_score'],array('id'=>'pro_negative_question_score', 'class'=>'form-control','onkeypress'=>"return isNumberKey(event)")) !!}
@endif
@if($id) @if($question_details['question_type']==1 || $question_details['question_type']==11 || $question_details['question_type']==7 || $question_details['question_type']==5)
@else
@endif @else
@endif
{!! Form::text('subjective_question_minumcharacter',$question_details['min_character'],array('id'=>'subjective_question_minumcharacter', 'class'=>'form-control','placeholder'=>'1')) !!}
{!! Form::text('subjective_question_maxcharacter',$question_details['max_character'],array('id'=>'subjective_question_maxcharacter', 'class'=>'form-control','placeholder'=>'50000','onkeypress'=>"return isNumberKey(event)")) !!}
Note:Maximum {{ $max_file_size ?? 5 }}MB.
Is Mandatory:
{!! Form::submit($id ? 'Update Question' : 'Add Question', ['class' => 'btn btn-primary f-16 waves-effect'] ) !!}
{!! Form::close() !!}
{{-- @author Karthikaipriyan @abstract Subjective PDF Question Score --}}

Sub Question View