{{ Form::label('subject_title', getphrase('subject_title')) }} * {{ Form::text('subject_title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'Maths', 'ng-model'=>'subject_title', 'ng-pattern' => getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.subject_title.$touched && formSubjects.subject_title.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '40', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('subject_code', getphrase('subject_code')) }} * {{ Form::text('subject_code', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'M1', 'ng-model'=>'subject_code', 'ng-pattern' => getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.subject_code.$touched && formSubjects.subject_code.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '10', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{--
{{ Form::label('is_lab', getphrase('is_lab')) }}
{{ Form::radio('is_lab', 0, true, array('id'=>'free', 'name'=>'is_lab')) }}
{{ Form::radio('is_lab', 1, false, array('id'=>'paid', 'name'=>'is_lab')) }}
{{ Form::label('is_elective_type', getphrase('is_elective')) }}
{{ Form::radio('is_elective_type', 0, true, array('id'=>'free1', 'name'=>'is_elective_type')) }}
{{ Form::radio('is_elective_type', 1, false, array('id'=>'paid1', 'name'=>'is_elective_type')) }}
--}} {{--
{{ Form::label('maximum_marks', getphrase('maximum_marks')) }} * {{ Form::number('maximum_marks', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '100', 'id'=>'maximum_marks', 'min'=>'1', 'onblur'=>'validateMarks();', 'ng-model'=>'maximum_marks', 'ng-number' => 'true', 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.maximum_marks.$touched && formSubjects.maximum_marks.$invalid}' )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('pass_marks', getphrase('pass_marks')) }} * {{ Form::number('pass_marks', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '40', 'id'=>'pass_marks','min'=>'1', 'onblur'=>'validateMarks();', 'ng-model'=>'pass_marks', 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.pass_marks.$touched && formSubjects.pass_marks.$invalid}' )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
--}}