@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('select_branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control select2','placeholder'=>'select', 'ng-model'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.branch_id.$touched && formCourses.branch_id.$invalid}', ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id) }} @endif
{{ Form::label('parent_id', getphrase('select_parent')) }} * {{Form::select('parent_id', $course_parent_list, null, ['class'=>'form-control select2','placeholder'=>'select', 'ng-model'=>'parent_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.parent_id.$touched && formCourses.parent_id.$invalid}', 'ng-change' => 'selectedValues()' ])}}
{!! getValidationMessage()!!}
{{ Form::label('course_title', getphrase('course_title')) }} * {{ Form::text('course_title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'MBA', 'ng-model'=>'course_title', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.course_title.$touched && formCourses.course_title.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '100', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('course_code', getphrase('course_code')) }} * {{ Form::text('course_code', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'MBA', 'ng-model'=>'course_code', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.course_code.$touched && formCourses.course_code.$invalid}', 'ng-minlength' => '2', 'ng-maxlength' => '20', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('course_duration', getphrase('duration_in_years')) }} * {{Form::select('course_dueration', array('1'=>1, '2'=>2, '3'=>3, '4',4, '5'=>5,6=>'6','7'=>7,'8'=>8, '9'=>9, '10'=>10), null, ['class'=>'form-control select2', 'placeholder'=>'select', 'ng-model'=>'course_dueration', 'id' => 'course_duration', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.course_dueration.$touched && formCourses.course_dueration.$invalid}'])}}
{!! getValidationMessage()!!}
{{ Form::label('grade_system', getphrase('grade_system')) }} * {{Form::select('grade_system', array('percentage'=> 'Percentage', 'gpa'=>'GPA'), null, ['class'=>'form-control select2' , 'placeholder'=>'select', 'ng-model'=>'grade_system', 'required'=> 'true', 'ng-class'=>'{"has-error": formCourses.grade_system.$touched && formCourses.grade_system.$invalid}'])}}
{!! getValidationMessage()!!}
{{ Form::label('is_having_semister', getphrase('is_having_semesters')) }}
{{ Form::radio('is_having_semister', 0, true, array('id'=>'free', 'name'=>'is_having_semister')) }}
{{ Form::radio('is_having_semister', 1, false, array('id'=>'paid', 'name'=>'is_having_semister')) }}
{{ Form::label('is_having_elective_subjects', getphrase('is_having_electives')) }}
{{ Form::radio('is_having_elective_subjects', 0, true, array('id'=>'free1', 'name'=>'is_having_elective_subjects')) }}
{{ Form::radio('is_having_elective_subjects', 1, false, array('id'=>'paid1', 'name'=>'is_having_elective_subjects')) }}
{{ Form::label('section', getphrase('section')) }}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'description', 'rows'=>'5')) }}