@extends('admin.layouts.layouts') @section('title', 'View Employee Master') @section('page-css') @endsection @section('content')
Employee Master View
← Back
profile
{{ $showDetails->employee_name ?? '' }}

{{ $showDetails->employeeDesignation->name ?? ''}}

Employee Code:  {{ $showDetails->employee_code ?? '-' }}

Blood Group:  {{ $showDetails->blood_group ?? '-' }}

Date Of Joining:  {{ isset($showDetails->date_of_joining) ? date('d-m-Y', strtotime($showDetails->date_of_joining)) : '-' }}

Phone Number:   {{ $showDetails->phone_number ?? '-' }}

Work Email:   {{ $showDetails->work_email ?? '-' }}

Date Of Birth:   {{ isset($showDetails->date_of_birth) ? date('d-m-Y', strtotime($showDetails->date_of_birth)) : '-' }}

Permanent Address:   {{ $showDetails->address ?? '-' }}

Gender:  {{ $showDetails->gender ?? '-' }}

Reporting Person:   {{ $showDetails->reportingPerson?->short_name ?? '' }}

{{-- --}}

Personal Email:

{{ $showDetails->email ?? '-' }}

Phone Number:

{{ $showDetails->phone_number ?? '-' }}

Gender:

{{ $showDetails->gender ?? '-' }}

Permanent Address:

{{ $showDetails->address ?? '-' }}

Status:

@php $status = [ 0 => ['text' => 'Deactive', 'class' => 'badge badge-warning badge-pill'], 1 => ['text' => 'Active', 'class' => 'badge badge-info badge-pill'], ]; $current = $status[$showDetails->status] ?? [ 'text' => 'Unknown', 'class' => 'badge rounded-pill bg-secondary', ]; @endphp {{ $current['text'] }}

Mother Name:

{{ $showDetails->mother_name ?? '-' }}

Blood Group:

{{ $showDetails->blood_group ?? '-' }}

Date Of Birth:

{{ isset($showDetails->date_of_birth) ? date('d-m-Y', strtotime($showDetails->date_of_birth)) : '-' }}

Residential Address:

{{ $showDetails->residential_address ?? '-' }}

Employee Code:

{{ $showDetails->employee_code ?? '-' }}

Date Of Joining:

{{ isset($showDetails->date_of_joining) ? date('d-m-Y', strtotime($showDetails->date_of_joining)) : '-' }}

Employee Designation:

{{ $showDetails->employeeDesignation->name ?? '-' }}

Expense Limit:

{{ $showDetails->employeeDesignation?->grade?->expense_limit ?? '-' }}

Role Permission:

{{ $showDetails->employeeRole->name ?? '-' }}

Head Manager:

{{ $showDetails->headManager->name ?? '-' }}

Mod Of Travel:

{{ $showDetails->getModOfTravelNamesAttribute() ?? '-' }}

@if (in_array('Work From Home', explode(',', $showDetails->check_in_option ?? '')))

No Of Work From Home:

{{ $showDetails->no_of_wfh ?? '-' }}

@endif

Country:

{{ $showDetails->countries?->country_name ?? '-' }}

Region:

{{ $showDetails->regions?->region_name ?? '-' }}

Mediclaim Policy:

{{ ($showDetails->mediclaim_policy == '1') ? 'Yes' : 'No' }}

@if ($showDetails->mediclaim_policy == '0')

Policy Start Date:

{{ isset($showDetails->policy_start_date) ? date('d-m-Y', strtotime($showDetails->policy_start_date)) : '' }}

Policy End Date:

{{ isset($showDetails->policy_end_date) ? date('d-m-Y', strtotime($showDetails->policy_end_date)) : '' }}

Policy Number:

{{ $showDetails->policy_number }}

Policy Copy:

@if ($showDetails->policy_file && file_exists(public_path('storage/' . $showDetails->policy_file))) @php $extension = strtolower(pathinfo($showDetails->policy_file, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; $fileName = basename($showDetails->policy_file); @endphp @if (in_array(strtolower($extension), $isImage)) Pan File @else @endif @else

Not uploaded

@endif
@endif

Work Email:

{{ $showDetails->work_email ?? '-' }}

Employee Department:

{{ $showDetails->employeeDepartment->name ?? '-' }}

Grade:

{{ $showDetails->employeeDesignation?->grade?->grade ?? '-' }}

Shift Type:

{{ $showDetails->shiftType->name ?? '-' }}

Reporting Person:

{{ $showDetails->reportingPerson?->short_name ?? '-' }}

Cold Storage:

{{ $showDetails->coldStorage->storage_name ?? '-' }}

Check In Option:

{{ $showDetails->check_in_option ? str_replace(',', ', ', $showDetails->check_in_option) : '-' }}

Area Location:

{{ $showDetails->area_location ?? '-' }}

Base Location:

{{ $showDetails->base_location ?? '-' }}

Welcome Kit Given:

{{ ($showDetails->welcome_kit == '1') ? 'Yes' : 'No' }}

Medical Disability:

{{ ($showDetails->medical_disability == '1') ? 'Yes' : 'No' }}

@if ($showDetails->medical_disability == '1')

Disability:

{{ $showDetails->medical_disability_name }}

@endif

Aadhar Card Number:

@php $aadharNumber = $showDetails->aadhar_number ?? ''; $cleanAadhar = preg_replace('/\D/', '', $aadharNumber); $formattedAadhar = trim(chunk_split($cleanAadhar, 4, ' ')); @endphp

{{ $formattedAadhar }}

Aadhar Front:

@if ($showDetails->aadhar_front && file_exists(public_path('storage/' . $showDetails->aadhar_front))) @php $extension = strtolower(pathinfo($showDetails->aadhar_front, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; $fileName = basename($showDetails->aadhar_front); @endphp @if (in_array(strtolower($extension), $isImage)) Aadhar Front @else @endif @else

Not uploaded

@endif
@if (isset($showDetails->aadhar_back))

Aadhar Back:

@if ($showDetails->aadhar_back && file_exists(public_path('storage/' . $showDetails->aadhar_back))) @php $extension = strtolower(pathinfo($showDetails->aadhar_back, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; $fileName = basename($showDetails->aadhar_back); @endphp @if (in_array(strtolower($extension), $isImage)) Aadhar Back @else @endif @else

Not uploaded

@endif
@endif

Pan Card Number:

{{ strtoupper($showDetails->pan_number) ?? '-' }}

Pan Image:

@if ($showDetails->pan_file && file_exists(public_path('storage/' . $showDetails->pan_file))) @php $extension = strtolower(pathinfo($showDetails->pan_file, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; $fileName = basename($showDetails->pan_file); @endphp @if (in_array(strtolower($extension), $isImage)) Pan File @else @endif @else

Not uploaded

@endif
{{--

Bank Name:

{{ $showDetails->bank_name ?? '-' }}

Account No:

{{ $showDetails->account_no ?? '-' }}

IFSC Code:

{{ $showDetails->ifsc_code ?? '-' }}

Cheque No:

{{ $showDetails->cheque_number ?? '-' }}

Cheque Image:

@if ($showDetails->blank_cheque && file_exists(public_path('storage/' . $showDetails->blank_cheque))) @php $extension = strtolower(pathinfo($showDetails->blank_cheque, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; $fileName = basename($showDetails->blank_cheque); @endphp @if (in_array(strtolower($extension), $isImage)) Blank Cheque @else @endif @else

Not uploaded

@endif
--}}
Personal Bank Detail:

Bank Name:

{{ $showDetails->bank_name ?? '-' }}

Account No:

{{ $showDetails->account_no ?? '-' }}

IFSC Code:

{{ $showDetails->ifsc_code ?? '-' }}

Cheque No:

{{ $showDetails->cheque_number ?? '-' }}

Cheque Image:

@if ($showDetails->blank_cheque && file_exists(public_path('storage/' . $showDetails->blank_cheque))) @php $extension = strtolower(pathinfo($showDetails->blank_cheque, PATHINFO_EXTENSION)); $isImage = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($extension, $isImage)) Blank Cheque @else @endif @else

Not uploaded

@endif

{{-- Company Bank Detail --}}
Company Bank Detail:

Bank Name:

{{ $showDetails->company_bank_name ?? '-' }}

Account No:

{{ $showDetails->company_account_no ?? '-' }}

IFSC Code:

{{ $showDetails->company_ifsc_code ?? '-' }}

Emergency Contact No. 1:

{{ $showDetails->emergency_contact_1 ?? '-' }}

Name:

{{ $showDetails->name_1 ?? '-' }}

Name of Relationship:

{{ $showDetails->name_relation_1 ?? '-' }}

Address:

{{ $showDetails->address_1 ?? '-' }}

Emergency Contact No. 2:

{{ $showDetails->emergency_contact_2 ?? '-' }}

Name:

{{ $showDetails->name_2 ?? '-' }}

Name of Relationship:

{{ $showDetails->name_relation_2 ?? '-' }}

Address:

{{ $showDetails->address_2 ?? '-' }}

@if(count($showDetails->employeeWorkExperiences) > 0) @foreach ($showDetails->employeeWorkExperiences as $employeeWorkExperience)

Employer Name:

{{ $employeeWorkExperience->employer_name ?? '-' }}

Starting Salary:

{{ $employeeWorkExperience->starting_salary ?? '-' }}

Starting Designation:

{{ $employeeWorkExperience->starting_designation ?? '-' }}

From Date:

{{ isset($employeeWorkExperience->from_date) ? date('d-m-Y', strtotime($employeeWorkExperience->from_date)) : '-' }}

Reason For Leaving:

{{ $employeeWorkExperience->leaving_reason ?? '-' }}

Location:

{{ $employeeWorkExperience->location ?? '-' }}

Leaving Salary:

{{ $employeeWorkExperience->leaving_salary ?? '-' }}

Leaving Designation:

{{ $employeeWorkExperience->leaving_designation ?? '-' }}

To Date:

{{ isset($employeeWorkExperience->to_date) ? date('d-m-Y', strtotime($employeeWorkExperience->to_date)) : '-' }}

@if (!$loop->last)
@endif @endforeach @else

No Record Found

@endif
Employee Master History
@can('employee-master-salary-create') @endcan
No Salary Start Date End Date Action
@endsection @section('page-js') @endsection