{{-- --}}
{!! Form::open(array('role' => 'form', 'files'=>'false', 'class'=>'form-horizontal form-groups')) !!}
{!! Form::label('company_id_fk', $data['attributes']['company_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('company_id_fk', $data['companyData'], $data['model']->company_id_fk, ['class' => 'form-control getProject', 'id' => 'company_id_fk', @$data['canUpdateAfterApprove'] == true ? 'disabled' : null ]) !!}

{{ $errors->error->first('company_id_fk') }}

{!! Form::label('project_id_fk', $data['attributes']['project_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('project_id_fk', array(''=>'Select any'), $data['model']->project_id_fk, ['class' => 'form-control getBranch', 'id' => 'project_id_fk', @$data['canUpdateAfterApprove'] == true ? 'disabled' : null ]) !!}

{{ $errors->error->first('project_id_fk') }}

{!! Form::label('branch_id_fk', $data['attributes']['branch_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('branch_id_fk', array(''=>'Select any'), $data['model']->branch_id_fk, ['class' => 'form-control getUser hr-select2', 'id' => 'branch_id_fk', @$data['canUpdateAfterApprove'] == true ? 'disabled' : null ]) !!}

{{ $errors->error->first('branch_id_fk') }}

{!! Form::label('users_id_fk', $data['attributes']['users_id_fk'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('users_id_fk', [''=>'Select any'], $data['model']->users_id_fk, ['class' => 'form-control', 'id' => 'users_id_fk', @$data['canUpdateAfterApprove'] == true ? 'disabled' : null ]) !!}

{{ $errors->error->first('users_id_fk') }}

{!! Form::label('position', $data['attributes']['position'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('position', $data['model']->position, ['class' => 'form-control', 'id' => 'position', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('position') }}

{!! Form::label('recruitment_type', $data['attributes']['recruitment_type'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('recruitment_type', $data['model']->recruitment_type, ['class' => 'form-control', 'id' => 'recruitment_type', 'readonly'=>'readonly']) !!}

{{ $errors->error->first('recruitment_type') }}

{!! Form::label('terminate_date', $data['attributes']['terminate_date'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('terminate_date', $data['model']->terminate_date, ['class' => 'form-control datepicker', 'id' => 'terminate_date']) !!}

{{ $errors->error->first('terminate_date') }}

{!! Form::label('emp_notice_type', $data['attributes']['emp_notice_type'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('emp_notice_type',$data['noticeTypeData'], $data['model']->emp_notice_type, ['class' => 'form-control', 'id' => 'emp_notice_type']) !!}

{{ $errors->error->first('emp_notice_type') }}

{!! Form::label('note', $data['attributes']['note'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::textarea('note', $data['model']->note, ['class' => 'form-control', 'id' => 'note', 'rows'=>3]) !!}

{{ $errors->error->first('note') }}

{!! Form::label('reason', $data['attributes']['reason'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('reason', $data['reasonData'], $data['model']->reason, ['class' => 'form-control', 'id' => 'reason']) !!}

{{ $errors->error->first('reason') }}

@if(@$data['action']=='Approve')
{!! Form::label('effect_date', $data['attributes']['effect_date'], ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('effect_date', $data['model']->effect_date, ['class' => 'form-control datepicker', 'id' => 'effect_date']) !!}

{{ $errors->error->first('effect_date') }}

@endif
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}
@section('footerAssets')