@if(checkRole(['owner']))
{{ Form::label ('branch_id', getphrase('branch')) }} * {{ Form::select('branch_id', $branches, $selected, [ 'class' => 'form-control', "id" => "select_branch", "ng-model" => "branch_id", 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.branch_id.$touched && formSubjects.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id) }} @endif
{{ 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' => '60', )) }}
{!! 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' => '20', )) }}
{!! 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')) }}