{{ Form::model($record, array('url' => ['staff/profile/edit/general', $record->id], 'method'=>'patch')) }}

{{ getPhrase('general_details')}}

{{ Form::label('staff_id', getphrase('staff_id')) }} * {{ Form::text('staff_id', $value = null , $attributes = array('class'=>'form-control','readonly'=>'true', 'placeholder' => 'EMP1')) }}
@if($join_date==null)
{{ Form::label('date_of_join', getphrase('date_of_join')) }} *
{{ Form::text('date_of_join', $value = date('Y/m/d') , $attributes = array('class'=>'form-control', 'placeholder' => '2015/7/17', 'id'=>'dp')) }}
@else
{{ Form::label('date_of_join', getphrase('date_of_join')) }} * {{ Form::text('date_of_join', $value =$join_date , $attributes = array('class'=>'form-control', 'placeholder' => '2015/7/17', 'id'=>'dp','readonly'=>true)) }}
@endif
@if($record->branch_id!=0&&$record->course_parent_id!=0&&$record->course_id!=0)
{{ Form::label('branch', getphrase('branch')) }} * {{ Form::text('branch_id', $value =$branch_name, $attributes = array('class'=>'form-control','readonly'=>'true')) }}
{{ Form::label('parent_course', getphrase('parent_course')) }} * {{ Form::text('course_parent_id', $value =$course_parent_name, $attributes = array('class'=>'form-control','readonly'=>'true')) }}
{{ Form::label('course', getphrase('course')) }} * {{ Form::text('course', $value =$course_name , $attributes = array('class'=>'form-control','readonly'=>'true')) }}

  

{{ Form::checkbox('gender', 'male', true, array('id'=>'free','class'=>'form-control' ,'ng-model' => 'edit_details' )) }}
@endif
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control', "id" =>"branch_id", "ng-model"=> "branch_id", "ng-change"=>"getChildCourses(branch_id, parent_course_id)" ] )}}
{{ Form::label('course_parent_id', getphrase('parent_course')) }} * {{Form::select('course_parent_id', $courses_parent_list, null, ['class'=>'form-control', "id" =>"course_parent_id", "ng-model"=> "parent_course_id", "ng-change"=>"getChildCourses(branch_id, parent_course_id)" ] )}}
{{ Form::label('course_id', getphrase('course')) }} *
@if($record->branch_id== 0 && $record->course_parent_id== 0 && $record->course_id== 0)
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control', "id" =>"branch_id", "ng-model"=> "branch_id", "ng-change"=>"getChildCourses(branch_id, parent_course_id)" ] )}}
{{ Form::label('course_parent_id', getphrase('parent_course')) }} * {{Form::select('course_parent_id', $courses_parent_list, null, ['class'=>'form-control', "id" =>"course_parent_id", "ng-model"=> "parent_course_id", "ng-change"=>"getChildCourses(branch_id,parent_course_id)" ] )}}
{{ Form::label('course_id', getphrase('course')) }} *
@endif
{{ Form::label('job_title', getphrase('job_title')) }} * {{ Form::text('job_title', $value = null , $attributes = array('class'=>'form-control','placeholder' => 'System Admin')) }}

{{getPhrase('qualification_details')}}

{{ Form::label('qualification', getphrase('qualification')) }} * {{ Form::text('qualification', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'MS')) }}
{{ Form::label('experience (Years)', getphrase('experience (Years)')) }} * {{ Form::text('total_experience_years', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '5')) }}
{{ Form::label('experience (Months)', getphrase('experience (Months)')) }} * {{ Form::text('total_experience_month', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => '5')) }}
{{ Form::label('experience_information', getphrase('experience_information')) }} * {{ Form::textarea('experience_information', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => 'Having good experience in teaching')) }}
{{ Form::label('other_information', getphrase('other_information')) }} {{ Form::textarea('other_information', $value = null , $attributes = array('class'=>'form-control','rows'=>'5', 'placeholder' => 'Microsoft certified')) }}
{!! Form::close() !!}