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

{{ 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)
{{ Form::label('branch', getphrase('branch')) }} * {{ Form::text('branch_name', $value =$branch_name, $attributes = array('class'=>'form-control','readonly'=>'true')) }} {{ Form::hidden('obranch_id',$value=$record->branch_id) }}
{{ Form::label('parent_course', getphrase('parent_course')) }} * {{ Form::text('course_parent_name', $value =$course_parent_name, $attributes = array('class'=>'form-control','readonly'=>'true')) }} {{ Form::hidden('ocourse_parent_id',$value=$record->course_parent_id) }}
{{ Form::label('course', getphrase('course')) }} * {{ Form::textarea('course', $value = $course_name , $attributes = array('class'=>'form-control', 'rows'=>'5', 'readonly'=>'true')) }}
* {{ Form::textarea('class_techer', $value =$class_teacher, $attributes = array('class'=>'form-control', 'rows'=>'5','readonly'=>'true')) }}

  

{{ Form::checkbox('gender', 'male', true, array('id'=>'free','class'=>'form-control' ,'ng-model' => 'edit_details' )) }}
{{ 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 @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')) }}
{{ Form::label('sign_image', getphrase('sign_image')) }}
{!! Form::file('sign_image', array('id'=>'image_input', 'accept'=>'.png,.jpg,.jpeg')) !!}

{{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() !!}