@if (isset($bank))
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['question-bank-update', $bank->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data', 'id' => 'question_bank']) }}
@else
@if (userPermission('question-bank-store'))
{{ Form::open([
'class' => 'form-horizontal',
'files' => true,
'route' => 'question-bank-store',
'method' => 'POST',
'enctype' => 'multipart/form-data',
'id' => 'question_bank',
]) }}
@endif
@endif
@if ($errors->has('group'))
{{ $errors->first('group') }}
@endif
@if(moduleStatusCheck('University'))
@if(isset($editData))
@includeIf('university::common.session_faculty_depart_academic_semester_level',
[
'required' => ['USN', 'UD', 'UA', 'US', 'USL','USEC'],
'hide'=>['USUB'],
'div'=>'col-lg-12','row'=>1,'mt'=>'mt-0' ,'subject'=>false,
])
@else
@includeIf('university::common.session_faculty_depart_academic_semester_level',
[
'required' => ['USN', 'UD', 'UA', 'US', 'USL','USEC'],
'hide'=>['USUB'],
'div'=>'col-lg-12','row'=>1,'mt'=>'mt-0' ,'subject'=>false,
'multipleSelect' => 1,
])
@endif
@else
@if ($errors->has('class'))
{{ $errors->first('class') }}
@endif
@if (!isset($bank))
@if ($errors->has('section'))
{{ $errors->first('section') }}
@endif
@else
@if ($errors->has('section'))
{{ $errors->first('section') }}
@endif
@endif
@endif
{{--
@if ($errors->has('group'))
{{ $errors->first('group') }}
@endif
--}}
@if ($errors->has('group'))
{{ $errors->first('group') }}
@endif
@if ($errors->has('question'))
{{ $errors->first('question') }}
@endif
@php
if (!isset($bank)) {
if (old('question_type') == 'M') {
$multiple_choice = '';
}
} else {
if ($bank->type == 'M' || old('question_type') == 'M') {
$multiple_choice = '';
}
}
@endphp
@php
if (!isset($bank)) {
if (old('question_type') == 'M') {
$multiple_options = '';
}
} else {
if ($bank->type == 'M' || old('question_type') == 'M') {
$multiple_options = '';
}
}
@endphp
@php
$i = 0;
$multiple_options = [];
if (isset($bank)) {
if ($bank->type == 'M') {
$multiple_options = $bank->questionMu;
}
}
@endphp
@foreach ($multiple_options as $multiple_option)
@php $i++; @endphp
@endforeach
@php
if (!isset($bank)) {
if (old('question_type') == 'T') {
$true_false = '';
}
} else {
if ($bank->type == 'T' || old('question_type') == 'T') {
$true_false = '';
}
}
@endphp
@php
if (!isset($bank)) {
if (old('question_type') == 'F') {
$fill_in = '';
}
} else {
if ($bank->type == 'F' || old('question_type') == 'F') {
$fill_in = '';
}
}
@endphp
@if ($errors->has('suitable_words'))
{{ $errors->first('suitable_words') }}
@endif
{{-- Start Multiple Images Question --}}
@php
if (!isset($bank)) {
if (old('question_type') == 'MI') {
$multiple_image = '';
}
} else {
if ($bank->type == 'MI' || old('question_type') == 'MI') {
$multiple_image = '';
}
}
@endphp
@if ($errors->has('answer_type'))
{{ $errors->first('answer_type') }}
@endif
@php
$i = 0;
$multiple_options = [];
if (isset($bank)) {
if ($bank->type == 'MI') {
$multiple_options = $bank->questionMu;
}
}
@endphp
@foreach ($multiple_options as $multiple_option)
@php $i++; @endphp
@endforeach
{{-- End Multiple Images Question --}}
{{ Form::close() }}
@php
$tooltip = '';
if (userPermission('question-bank-store') || userPermission('question-bank-edit')) {
$tooltip = '';
} else {
$tooltip = 'You have no permission to add';
}
@endphp