@include('new_layouts.header') @include('hrm.hrm_main',['hrm_header' => 'Employee Edit'])
{{ Form::model($employee, array('route' => array('employee.update', $employee->id), 'method' => 'PUT' , 'enctype' => 'multipart/form-data', 'id'=>'employee_edit_form')) }} @csrf
{{__('Personal Detail')}}
{!! Form::label('name', __('Name'),['class'=>'form-label']) !!}* {!! Form::text('name', null, ['class' => 'form-control','maxlength' => 35 ,'required' => 'required']) !!}
{!! Form::label('phone', __('Phone'),['class'=>'form-label']) !!}* {!! Form::number('phone',null, ['class' => 'form-control','maxlength' => 35,'required' => 'required']) !!}
{!! Form::label('dob', __('Date of Birth'),['class'=>'form-label']) !!}* {!! Form::date('dob', null, ['class' => 'form-control','required' => 'required']) !!}
{!! Form::label('gender', __('Gender'),['class'=>'form-label']) !!}*
gender == 'Male')?'checked':''}}>
gender == 'Female')?'checked':''}}>
{!! Form::label('address', __('Address'),['class'=>'form-label']) !!}* {!! Form::textarea('address',null, ['class' => 'form-control','required' => 'required','rows'=>2]) !!}
@if(\Auth::user()->type=='employee') {!! Form::submit('Update', ['class' => 'mt-3 btn-create btn-xs badge-blue radius-10px float-right']) !!} @endif
@if(\Auth::user()->type!='employee')
{{__('Company Detail')}}
@csrf
{!! Form::label('employee_id', __('Employee ID'),['class'=>'form-label']) !!} {!! Form::text('employee_id',$employeesId, ['class' => 'form-control','disabled'=>'disabled']) !!}
{{ Form::label('branch_id', __('Branch'),['class'=>'form-label']) }}* {{ Form::select('branch_id', $branches,null, array('class' => 'form-select','required'=>'required','id' => 'branch_id')) }}
{{ Form::label('department_id', __('Department'),['class'=>'form-label']) }}*
{{ Form::label('designation_id', __('Designation'),['class'=>'form-label']) }}*
{!! Form::label('company_doj', 'Company Date Of Joining',['class'=>'form-label']) !!}* {!! Form::date('company_doj', null, ['class' => 'form-control ','required' => 'required']) !!}
@else
{{__('Company Detail')}}
{{__('Branch')}} {{!empty($employee->branch)?$employee->branch->name:''}}
{{__('Department')}} {{!empty($employee->department)?$employee->department->name:''}}
{{__('Designation')}} {{!empty($employee->designation)?$employee->designation->name:''}}
{{__('Date Of Joining')}} {{\Auth::user()->dateFormat($employee->company_doj)}}
@endif
@if(\Auth::user()->type!='employee')
{{__('Document')}}
@php $employeedoc = $employee->documents()->pluck('document_value',__('document_id')); @endphp @foreach($documents as $key=>$document)

@php $logo=\App\Models\Utility::get_file('uploads/document/'); @endphp
@endforeach
{{__('Bank Account Detail')}}
{!! Form::label('account_holder_name', __('Account Holder Name'),['class'=>'form-label']) !!} {!! Form::text('account_holder_name', null, ['class' => 'form-control']) !!}
{!! Form::label('account_number', __('Account Number'),['class'=>'form-label']) !!} {!! Form::number('account_number', null, ['class' => 'form-control']) !!}
{!! Form::label('bank_name', __('Bank Name'),['class'=>'form-label']) !!} {!! Form::text('bank_name', null, ['class' => 'form-control']) !!}
{!! Form::label('bank_identifier_code', __('Bank Identifier Code'),['class'=>'form-label']) !!} {!! Form::text('bank_identifier_code',null, ['class' => 'form-control']) !!}
{!! Form::label('branch_location', __('Branch Location'),['class'=>'form-label']) !!} {!! Form::text('branch_location',null, ['class' => 'form-control']) !!}
{!! Form::label('tax_payer_id', __('Tax Payer Id'),['class'=>'form-label']) !!} {!! Form::text('tax_payer_id',null, ['class' => 'form-control']) !!}
@else
{{__('Document Detail')}}
@php $employeedoc = $employee->documents()->pluck('document_value',__('document_id')); @endphp @foreach($documents as $key=>$document) @endforeach
{{__('Bank Account Detail')}}
{{__('Account Holder Name')}} {{$employee->account_holder_name}}
{{__('Account Number')}} {{$employee->account_number}}
{{__('Bank Name')}} {{$employee->bank_name}}
{{__('Bank Identifier Code')}} {{$employee->bank_identifier_code}}
{{__('Branch Location')}} {{$employee->branch_location}}
{{__('Tax Payer Id')}} {{$employee->tax_payer_id}}
@endif @if(\Auth::user()->type != 'employee')
@endif
{!! Form::close() !!}
@include('new_layouts.footer')