@extends('hr_main') @section('title', '| ' . $data['pageTitle']) @section('content')
{!! $data['pageTitle'] !!}
Employee Info
{!! Form::open([ 'url' => url('hr/reporting-boss-config-update/'), 'id' => 'formId', 'class' => 'form', 'method' => 'post', ]) !!}
{!! Form::label('group_id_fk', 'Group', ['class' => 'control-label']) !!} * {!! Form::select('group_id_fk', ['' => 'Select any'] + $data['groupData'], $data['model']->group_id_fk, [ 'class' => 'form-control getCompany', 'id' => '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', ]) !!}

{!! 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', ]) !!}

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

{!! Form::label('applicableFor', 'Applicable For', ['class' => 'control-label']) !!} {!! Form::select('applicableFor', $data['applicableFor'], $data['model']->applicable_for, [ 'class' => 'form-control', 'id' => 'applicableFor', ]) !!}

{!! Form::label('employee_or_position_for', 'Type Of Position / Employee', ['class' => 'control-label']) !!} {!! Form::select('employee_or_position_for', $data['employeeOrPosition'], $data['selectedEmployeeOrPosition'], [ 'class' => 'form-control', 'id' => 'employee_or_position_for', ]) !!}

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

employee_id_fk <= 0) hidden @endif> {!! Form::label('employee_id_fk', 'Employee', ['class' => 'control-label']) !!} * {!! Form::select('employee_id_fk', ['' => 'Select any'] + $data['employees'], $data['model']->employee_id_fk, [ 'class' => 'select2 form-control', 'id' => 'employee_id_fk', ]) !!}

{!! 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', ]) !!}

{!! Form::label('effect_until', 'Effect Until Date', ['class' => 'control-label']) !!} {!! Form::text( 'effect_until', $data['model']->effect_until ? date('d-m-Y', strtotime($data['model']->effect_until)) : null, [ 'class' => 'form-control datepicker', 'autocomplete' => 'off', 'id' => 'effect_until', $data['model']->employee_id_fk <= 0 ? 'disabled' : '', ], ) !!}

{!! Form::label('configuration_for', 'Configuration For', ['class' => 'control-label']) !!} * {!! Form::select( 'configuration_for', ['' => 'Select any'] + $data['configurationFor'], $data['model']->configuration_for, ['class' => 'form-control'], ) !!}


Boss Selection
@foreach ($details->configDetails as $detail) @endforeach
Steps Applicable For Position / Employee Department Designation Employee Action
{!! Form::text('step_index[]', '', [ 'class' => 'form-control text-center js-step', 'required' => 'required', 'readonly' => 'readonly', ]) !!} {!! Form::select('boss_applicableFor[]', $data['applicableFor'], $detail->employee_from, [ 'class' => 'form-control boss_applicableFor', 'required' => 'required', ]) !!} {!! Form::select( 'boss_employee_or_position[]', $detail->reportingBossEmployeeOrPositionList(), $detail->reportingBossCheckEmployeeOrPosition(), ['class' => 'form-control boss_employee_or_position', 'required' => 'required'], ) !!} {!! Form::select( 'boss_department_id_fk[]', ['' => 'Select any'] + $data['departmentList'], $detail->boss_department_id_fk, ['class' => 'select2 form-control js-employee'], ) !!} {!! Form::select( 'boss_position_id_fk[]', ['' => 'Select any'] + $data['designations'], $detail->boss_position_id_fk, ['class' => 'select2 form-control js-designation', !$detail->boss_position_id_fk ? 'disabled' : ''], ) !!} {!! Form::select( 'boss_employee_id_fk[]', $detail->reportingBossEmployeeList() && count($detail->reportingBossEmployeeList()) > 1 ? ['' => 'Select any'] + $detail->reportingBossEmployeeList() : ['' => 'Select any'], $detail->boss_employee_id_fk, ['class' => 'select2 form-control boss_employee_id_fk', !$detail->boss_employee_id_fk ? 'disabled' : ''], ) !!}
{!! Form::submit('Update', ['id' => 'update', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection @section('footerAssets')