@extends('hr_main') @section('title', '| '. $data['pageTitle'] ) @section('content')
{!! $data['pageTitle'] !!}
Employee Info
{!! Form::open( [ 'url' => url('hr/reportingBossSettings/update/'.$data['model']->id), 'class'=>'form','method'=>'post' ]) !!}
{!! Form::label('group_id_fk', 'Group', ['class' => 'control-label']) !!} {!! Form::select('group_id_fk', $data['groupData'], $data['model']->group_id_fk, ['class' => 'form-control getCompany', 'id' => 'group_id_fk']) !!}

{{ $errors->first('group_id_fk') }}

{!! Form::label('company_id_fk', 'Company', ['class' => 'control-label']) !!} {!! Form::select('company_id_fk', [''=>'Select any'], $data['model']->company_id_fk, ['class' => 'form-control getProject', 'id' => 'company_id_fk']) !!}

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

{!! Form::label('project_id_fk', 'Project', ['class' => 'control-label']) !!} {!! Form::select('project_id_fk', [''=>'Select any'], $data['model']->project_id_fk, ['class' => 'form-control', 'id' => 'project_id_fk']) !!}

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

{!! Form::label('position_id_fk', 'Position', ['class' => 'control-label']) !!} {!! Form::select('position_id_fk', [''=>'Select any' ] + $data['designations'], $data['model']->position_id_fk, ['class' => 'form-control', 'id' => 'position_id_fk']) !!}

{{ $errors->first('position_id_fk') }}

{!! Form::label('department_id_fk', 'Department', ['class' => 'control-label']) !!} {!! Form::select('department_id_fk', $data['departmentList'], $data['model']->department_id_fk, ['class' => 'form-control', 'id' => 'position_id_fk']) !!}

{{ $errors->first('department_id_fk') }}

{!! Form::label('function_slug', 'Funciton', ['class' => 'control-label']) !!} {!! Form::select('function_slug', $data['functionList'], $data['model']->reportingBossfunction->slug, ['class' => 'form-control', 'id' => 'function_slug']) !!}

{{ $errors->first('function_slug') }}

{!! Form::label('effect_date', 'Effect Date', ['class' => 'control-label']) !!} {!! Form::text('effect_date',date('d-m-Y',strtotime($data['model']->effect_date)), ['class' => 'form-control datepicker', 'id' => 'function','autocomplete'=>'off']) !!}

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

@if($data['model']->reportingBossfunction->slug == 'leave') {!! Form::label('criteria_data', 'Leave Criteria', ['class' => 'control-label']) !!} {!! Form::select('criteria_data[]', ['' => 'Select One'] + $data['leaveTypeTag'], json_decode($data['model']->criteria_data)->leave_type_tag_id_list ?? [] , ['data-slug'=> $data['model']->reportingBossfunction->slug, 'class' => 'form-control select2', 'id' => 'criteria-data','multiple']) !!}

{{ $errors->first('criteria_data') }}

@endif
{!! Form::label('settings_for', 'Settings For', ['class' => 'control-label']) !!} {!! Form::select('settings_for', [''=>'Select any' ] + $data['settingsFor'], $data['model']->settings_for, ['class' => 'form-control', 'id' => 'settings_for']) !!}

{{ $errors->first('settings_for') }}


Boss Selection
@if( isset($data['reportingBossSteps']) && $data['reportingBossSteps']->count() > 0) @foreach($data['reportingBossSteps'] as $reportingBossStep) @endforeach @else @endif
Steps Designation Department Actions
{!! Form::hidden('attr[boss_step_id_fk][]',$reportingBossStep->id,['class'=>'boss-step-id']) !!} {!! Form::text('attr[step_index][]', $reportingBossStep->step_index, ['class' => 'form-control text-center js-step', 'required'=>'required','readonly' => 'readonly']) !!} {!! Form::select('attr[position_id_fk][]', ['' => 'Select any'] + $data['designations'], $reportingBossStep->position_id_fk, ['class' => 'form-control js-designation','required' => 'required']) !!} {!! Form::select('attr[department_id_fk][]', ['' => 'Select any'] + $data['departmentList'], $reportingBossStep->department_id_fk, [ 'class' => 'form-control js-employee' ]) !!}
{!! Form::text('attr[step_index][]','', ['class' => 'form-control text-center js-step', 'required'=>'required']) !!} {!! Form::select('attr[position_id_fk][]', $data['designations'], null, ['class' => 'form-control js-designation', 'required'=>'required']) !!} {!! Form::select('attr[department_id_fk][]', ['' => 'Select any'] + $data['departmentList'], null, ['class' => 'form-control js-employee']) !!}
Close
{!! Form::close() !!}
@endsection @section('footerAssets')