{{ Form::label('title', getphrase('title')) }} * {{ Form::text('title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('quiz_title'), 'ng-model'=>'title', {{-- 'ng-pattern'=>'/(^[Ѐ-ӿA-Za-z0-9-. ]+$)+/', --}} 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.title.$touched && formQuiz.title.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '120', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('category_id', getphrase('category')) }} * {{Form::select('category_id', $categories, null, ['class'=>'form-control'])}}
{{ Form::label('dueration', getphrase('duration')) }} * {{ Form::number('dueration', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('enter_value_in_minutes'), 'min'=>1, 'ng-model'=>'dueration', 'required'=> 'true', 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.dueration.$touched && formQuiz.dueration.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('total_marks', getphrase('total_marks')) }} * {{ Form::text('total_marks', $value = null , $attributes = array('class'=>'form-control','readonly'=>'true' ,'placeholder' => getPhrase('It will be updated by adding the questions'))) }}
{{ Form::label('pass_percentage', getphrase('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}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('negative_mark', getphrase('negative_mark')) }} * {{ Form::number('negative_mark', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '40', '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}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('instructions_page_id', getphrase('instructions_page')) }} * {{Form::select('instructions_page_id', $instructions, null, ['class'=>'form-control'])}}
{{ Form::label('start_date', getphrase('start_date')) }} {{ Form::text('start_date', $value = $date_from , $attributes = array('class'=>'input-sm form-control', 'placeholder' => '2015/7/17')) }}
{{ Form::label('end_date', getphrase('end_date')) }} {{ Form::text('end_date', $value = $date_to , $attributes = array('class'=>'input-sm form-control', 'placeholder' => '2015/7/17')) }}
{{ Form::label('is_paid', getphrase('is_paid')) }} * {{Form::select('is_paid', $payment_options, null, ['placeholder' => getPhrase('select'),'class'=>'form-control', 'ng-model'=>'is_paid', 'required'=> 'true', 'ng-pattern' => '/(^[Ѐ-ӿA-Za-z0-9-. ]+$)+/', 'ng-minlength' => '2', 'ng-maxlength' => '20', 'ng-class'=>'{"has-error": formQuiz.is_paid.$touched && formQuiz.is_paid.$invalid}', ]) }}
{!! getValidationMessage()!!}
{{ Form::label('validity', getphrase('validity')) }} * {{ Form::number('validity', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('validity_in_days'), 'ng-model'=>'validity', 'string-to-number'=> 'true', 'min'=>'1', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.validity.$touched && formQuiz.validity.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('cost', getphrase('cost')) }} * {{ Form::number('cost', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '40', 'min'=>'0', 'ng-model'=>'cost', 'required'=> 'true', 'string-to-number'=> 'true', 'ng-class'=>'{"has-error": formQuiz.cost.$touched && formQuiz.cost.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('show_in_front', 'Take exam with out registration') }} * {{Form::select('show_in_front', $options, null, ['placeholder' => getPhrase('select'),'class'=>'form-control', 'ng-model'=>'show_in_front', 'required'=> 'true', 'ng-pattern' => '/(^[Ѐ-ӿA-Za-z0-9-. ]+$)+/', 'ng-minlength' => '2', 'ng-maxlength' => '20', 'ng-class'=>'{"has-error": formQuiz.show_in_front.$touched && formQuiz.show_in_front.$invalid}', ]) }}
{!! getValidationMessage()!!}
{{ Form::label('exam_type', getphrase('exam_type')) }} * {{Form::select('exam_type', $exam_types, null, ['class'=>'form-control','ng-model'=>'exam_type'])}}
{{ Form::label('has_language', 'It has other language?') }} * {{Form::select('has_language', $language_options, null, ['placeholder' => getPhrase('select'),'class'=>'form-control', 'ng-model'=>'has_language', 'required'=> 'true', 'ng-class'=>'{"has-error": formQuiz.has_language.$touched && formQuiz.has_language.$invalid}', ]) }}
{!! getValidationMessage()!!}