@extends('admin.layout.app') @section('title','Employee Detail') @push('headerscript') @endpush @section('content')

Employee Detail

{{$employee->employee_code}}

{{$employee->name}}

{{$employee->hrmsDepartment?->department_name}}

{{$employee->personal_code}}

{{$employee->work_permit_no}}

{{$employee->work_permit_expiry ? date('d-M-Y', strtotime($employee->work_permit_expiry)): ''}}

{{$employee->nationality}}

{{$employee->home_country_contact_no}}

{{$employee->additional_home_country_contact_no}}

{{$employee->uae_contact_no}}

{{$employee->additional_uae_contact_no}}

{{$employee->d_o_b ? date('d-M-Y', strtotime($employee->d_o_b)): ''}}

{{$employee->wps_debit_card_no}}

{{$employee->wps_expiry ? date('d-M-Y', strtotime($employee->wps_expiry)): ''}}

{{$employee->passport_no}}

{{$employee->passport_expiry_date ? date('d-M-Y', strtotime($employee->passport_expiry_date)): ''}}

{{$employee->employee_id}}

{{$employee->emirates_id_no}}

{{$employee->emirates_id_expiry_date ? date('d-M-Y', strtotime($employee->emirates_id_expiry_date)): ''}}

{{$employee->visa_uid_no}}

{{$employee->visa_expiry_date ? date('d-M-Y', strtotime($employee->visa_expiry_date)): ''}}

{{$employee->visa_uid_no}}

{{$employee->labour_card_expiry_date ? date('d-M-Y', strtotime($employee->labour_card_expiry_date)): ''}}

{{$employee->job_loss_ins_no}}

{{$employee->jobloss_ins_exp_date ? date('d-M-Y', strtotime($employee->jobloss_ins_exp_date)): ''}}

{{$employee->insurance_company_name}}

{{$employee->insurance_no}}

{{$employee->insurance_expiry_date ? date('d-M-Y', strtotime($employee->insurance_expiry_date)): ''}}

{{date('d-M-Y', strtotime($employee->joining_date))}}

{{$employee->basic_salary}}

{{$employee->transportation}}

{{$employee->accommodation}}

{{$employee->insurance}}

{{$employee->others}}

{{$employee->status}}

{{$employee->home_country_address}}

{{$employee->uae_address}}

{!! Form::open(['route'=>array($employee->employeeBankDetail? 'employee-bank-detail.update' : 'employee-bank-detail.store', $employee->employeeBankDetail ? $employee->employeeBankDetail->id : ''), 'onsubmit'=>'BtnSubmit.disabled = true','method' => $employee->employeeBankDetail ? 'put': 'post']) !!}
{!! Form::select("employee_id", [$employee->id=>$employee->name], old("employee_id"), ['class'=>'form-control', 'required', 'id'=>'employee_id'] ) !!}
{{$errors->first() ? 'Employee bank details already exists':''}}
{{$errors->first('account_no')}}
{{$errors->first('iban_code')}}
{{$errors->first('bank_name')}}
{{$errors->first('bank_branch')}}
{!! Form::close() !!}
{!! Form::open(['route'=>array($employee->employeeDocument ? 'employee-document.update' : 'employee-document.store', $employee->employeeDocument ? $employee->employeeDocument->id : ''), 'onsubmit'=>'BtnSubmit.disabled = true','method' => $employee->employeeDocument ?'put':'post', 'files'=>true]) !!}
{!! Form::select("employee_id", [$employee->id=>$employee->name], old("employee_id"), ['class'=>'form-control', 'required', 'id'=>'employee_id'] ) !!}
{{$errors->first() ? 'Employee document already exists':''}}
{{$errors->first('img_photo')}}
{{$errors->first('img_emirates_id')}}
{{$errors->first('img_passport')}}
{{$errors->first('img_health_insurance_card')}}
{{$errors->first('img_labour_card')}}
{{$errors->first('img_visa')}}
{{$errors->first('job_loss_ins')}}
{!! Form::close() !!}
{!! Form::open(['route'=>array( $employee->employeeDocument ? 'employee-family-detail.update' :'employee-family-detail.store', $employee->employeeFamilyDetail ? $employee->employeeFamilyDetail->id :''), 'onsubmit'=>'BtnSubmit.disabled = true','method' =>$employee->employeeFamilyDetail? 'put': 'post', 'files'=>true]) !!}
{!! Form::select("employee_id", [$employee->id=>$employee->name], old("employee_id"), ['class'=>'form-control', 'required', 'id'=>'employee_id'] ) !!}
{{$errors->first() ? 'Employee family detail already exists':''}}
{{$errors->first('mother_name')}}
{{$errors->first('father_name')}}
{!! Form::select("marital_status", [''=>'Select','single'=>'Single', 'married'=>'Married', 'widowed'=>'Widowed', 'divorced'=>'Divorced', 'separated'=>'Separated'], old("marital_status", $employee->employeeFamilyDetail ? $employee->employeeFamilyDetail->marital_status : ''), ['class'=>'form-control', 'required', 'id'=>'marital_status'] ) !!}
{{$errors->first('marital_status')}}
{{$errors->first('family_photo')}}
{!! Form::close() !!}
@endsection @push('footerscript') {{-- --}} @endpush