@if($message = Session::get('success'))
Success! {{ $message }}
@elseif($message = Session::get('error'))
Error!{{ $message }}
@endif
Manage QMS
Please wait, Loading...
Upload your questions
@if(!empty($is_course_mapping))
@if($is_course_mapping == 1)
Download Excel
@endif
@else
Download Excel
@endif
@if($id)
@else
@if($errors->isEmpty())
@else
@endif
@endif
@if($id)
{!! 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')) !!}
QMS Settings
{!! Form::close()!!}
!
Download the Template and Fill all the required
Question details then upload Excel File to process Questions
{!! Form::file('upload_question',array('class' => 'custom-file-input','id'=>'inputGroupFile02',"style"=>"display: none;")) !!}
@if ($errors->has('upload_question'))
@endif
{!! Form::select('bulk_question_type',$question_type_master_bulk,"",array('class'=>'hme-select-style ','id'=>'js-bulk_question_type','placeholder'=>'Select a Question Type')) !!}
@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 a Question Pool')) !!}
@if ($errors->has('bulk_pool_name'))
@endif
@else
@if($errors->isEmpty())
@else
@endsection
@section('footer')
@if (Session::has('rep_excel'))
@endif
@endsection('footer')
@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('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"))!!}
@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['question_type'] !=7)
@endif
@if(!empty($is_course_mapping))
@if($is_course_mapping == 1)
@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 a Question Type')) !!}
@else
{!! Form::select('question_type',$question_type_master,$question_details['question_type'],array('class'=>'hme-select-style','id'=>'js-question_type','placeholder'=>'Select a Question Type','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 a Question Pool')) !!}
@else
{!! Form::select('pool_name',[],"",array('class'=>'hme-select-style select2','id'=>'js-pool_name','placeholder'=>'Select a Question Pool','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 a Difficulty Level')) !!}
@else
{!! Form::select('difficulty_level',$difficulty_level,$question_details['difficult_level_id'],array('class'=>'hme-select-style ','id'=>'js-difficulty_level','placeholder'=>'Select a Difficulty Level','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
{!! Form::select('bloomstaxonomy',$bloomstaxonomy,$question_details['blooms_taxonomy_id'],array('class'=>'hme-select-style ','id'=>'js-bloomstaxonomy','placeholder'=>'Select a bloomstaxonomy')) !!}
@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 Programming Language')) !!}
@if($id && $question_details['question_type']==4)
@else
@endif
@if($id)
@if($question_details['question_type']==4)
@endif
@else
@endif
@if($id)
@if($question_details['question_type']==1)
{!! Form::text('problem_name',$problem_name,array('class'=>'form-control','id'=>'js_pro_problem_name','maxlength'=>150)) !!}
{!! Form::text('problem_name',$problem_name,array('class'=>'form-control','id'=>'js_pro_problem_name','maxlength'=>150)) !!}
{!! 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
{!! Form::textarea('test_input',null,array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_input','placeholder'=>'text editor')) !!}
{!! Form::file('input_file',array('id'=>'input_file')) !!}
-- 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')) !!}
{!! Form::file('output_file',array('id'=>'output_file')) !!}
-- 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)
| {{ $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)) !!} |
{!! Form::textarea('test_input','',array('class'=>'js_pro_TestCaseEditors','id'=>'js_pro_test_input','placeholder'=>'text editor')) !!}
{!! Form::file('input_file',array('id'=>'input_file')) !!}
-- 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')) !!}
{!! Form::file('output_file',array('id'=>'output_file')) !!}
-- 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)) !!}
@else
@endif
@else
{{-- @author Dilip @abstract Remarks --}}
{{-- @author Dilip @abstract Remarks --}}
@if($id)
@if($question_details['question_type']==7)
@endif
@if($question_details['question_type'] !=7)
Answer Options :
@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')) !!}
@if($id)
@php $i=1 @endphp
@foreach($question_details->options as $key)
@php $i++ @endphp
@endforeach
@else
@endif
{!! 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
{!! 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')) !!}
-
@if($id)
@php $i=1 @endphp
@foreach($question_details->options as $key)
- @if($i >=3) @endif @if($key->answer) @endif @php $i++ @endphp @endforeach @else
- @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')) !!}
@lang('core.is_subqus_audiovideo')*
{!! Form::file('subqus_audio',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-subqus-audio')) !!}
@lang('core.is_subqus_audiovideo')*
{!! Form::file('subqus_video',array('class' => 'm-t-5 m-b-10 none','id'=>'js-pro-subqus-video')) !!}
@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
@else
@endif
@else
@endif
@if($question_details['question_type'] !=4)
@endif
@if($question_details['question_type'] ==3 && $question_details['question_type'] ==7 )
{!! Form::submit($id ? 'Update Question' : 'Add Question', ['class' => 'btn btn-primary f-16 waves-effect'] ) !!}
{!! Form::close() !!}
{!! Form::selectRange('question_score',1, 99,$question_details['score'],array('id'=>'pro_question_score','class'=>'form-control','placeholder'=>'Select answer score')) !!}
@else
@if($id)
@if($question_details['question_type']==1 || $question_details['question_type']==7 || $question_details['question_type']==5)
@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
@else
@endif
@else
@endif
@if(isset($max_file_size)) Note:Maximum {{ isset($max_file_size->max_file_size) ? $max_file_size->max_file_size : 5 }}MB data in png, jpg and pdf format. @else Note:Maximum 5MB data in png, jpg and pdf format. @endif
{!! Form::text('subjective_question_minumcharacter',$question_details['min_character'],array('id'=>'subjective_question_minumcharacter', 'class'=>'form-control','placeholder'=>'0','onkeypress'=>"return isNumberKey(event)")) !!}
{!! Form::text('subjective_question_maxcharacter',$question_details['max_character'],array('id'=>'subjective_question_maxcharacter', 'class'=>'form-control','placeholder'=>'5000','onkeypress'=>"return isNumberKey(event)")) !!}
Is Mandatory: