{{ Form::label('title', 'Test Title') }} * {{ Form::text('title', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => 'Test Title', 'ng-model'=>'title', 'ng-pattern'=> getRegexPattern('name'), //'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.title.$touched && formQuiz.title.$invalid}', 'ng-minlength' => 4, 'ng-maxlength' => 150, 'maxlength' => 150, )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('tests_category_id', 'Test Category') }} * {{Form::select('tests_category_id', $categories, null, ['class'=>'form-control','placeholder'=>'Select'])}}
{{ Form::label('is_controlled', 'Controlled Test?') }}
{{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
{{ Form::label('duration', 'Minimum Duration') }} * {{ Form::number('min_duration', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => 'Enter value in minutes', 'ng-max' => "duration.max", 'ng-model'=>'min_duration.min', //'required'=> 'true', 'min' => 0, 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.min_duration.$touched && formQuiz.min_duration.$invalid && formQuiz.duration.lowerThan}', )) }}
{{ Form::label('duration', 'Maximum Duration') }} * {{ Form::number('duration', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => 'Enter value in minutes','ng-model'=>'duration.max', // 'required'=> 'true', 'min' => 1, 'ng-min' => "min_duration.min", 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.duration.$touched && formQuiz.duration.$invalid && formQuiz.min_duration.lowerThan}', )) }}
{{ Form::label('number_of_pauses','Number of pauses') }} * {{ Form::number('number_of_pauses', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => 'Accept the number of times the student pauses', 'min' => '0', 'ng-class'=>'{"has-error": formQuiz.number_of_pauses.$touched && formQuiz.number_of_pauses.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('total_marks','Total Marks') }} * {{ Form::text('total_marks', $value = null , $attributes = array( 'class'=>'form-control', 'readonly'=>'true' , 'placeholder' => 'It will be updated by adding the questions')) }}
{{ Form::label('pass_percentage', 'Pass Percentage') }} * {{ Form::number('pass_percentage', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => '40', 'min'=>'1', 'max' =>'100', 'ng-model'=>'pass_percentage', // 'required'=> 'true', 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.pass_percentage.$touched && formQuiz.pass_percentage.$invalid}', )) }}
{{ Form::label('answer_maximum_number','How many times can the student answer?') }} * {{ Form::number('answer_maximum_number', $record->answer_maximum_number ?? 1, $attributes = array( 'class'=>'form-control', 'ng-min' => 1, 'ng-model'=>'answer_maximum_number', // 'required' => 'true', 'min' => '1', 'max' => 50, 'ng-class'=>'{"has-error": formQuiz.answer_maximum_number.$touched && formQuiz.answer_maximum_number.$invalid}', )) }}
{{ Form::label('negative_marks', 'Negative Marks') }} * {{ Form::number('negative_mark', $value = null , $attributes = array( 'class'=>'form-control', 'placeholder' => '2', 'min'=> 0, 'max' => 100, 'ng-model'=>'negative_mark', // 'required'=> 'true', 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.negative_mark.$touched && formQuiz.negative_mark.$invalid}', )) }}
{{ Form::label('tests_instruction_id', 'Instructions Page') }} * {{Form::select('tests_instruction_id', $instructions, null, ['class'=>'form-control','placeholder'=>'Select'])}}
@php $disabled = []; if($record){ $disabled = ['disabled' => true]; } @endphp
{{ Form::label('exam_type', 'Exam Type') }} * {{Form::select('exam_type', $exam_types, null, [ 'class'=>'form-control', 'ng-model'=>'exam_type', ] + $disabled)}}
@include('common.lfm', [ 'type' => 'image', 'name' => 'Image', 'input' => 'image', 'required' => false, 'file' => $record->image ?? null, ])
@push('script') @include('common.validations') @include('master.common.script-attributes', ['url' => _route('master.ajax.ajax.search-attributes')]) @endpush