@extends('admin.layouts.layouts') @section('title', 'View Employee Master') @section('page-css') @endsection @section('content') {{-- Employee History Modal --}}
Employee Master View
← Back
@if (isset($showDetails->loginUser->profile_photo_path) && !empty($showDetails->loginUser->profile_photo_path) && file_exists(public_path('storage/' . $showDetails->loginUser->profile_photo_path))) profile @else profile @endif
{{ $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)) : '-' }}

Job Status:  {{ $showDetails->job_status ?? '' }}

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?->employeeMaster?->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 bg-danger text-white'], 1 => ['text' => 'Active', 'class' => 'badge bg-success text-white'], ]; $current = $status[$showDetails->status] ?? [ 'text' => 'Unknown', 'class' => 'badge 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)) : '-' }}
Designation:
{{ $showDetails->employeeDesignation->name ?? '-' }}
Expense Limit:
{{ $showDetails->employeeDesignation?->grade?->expense_limit ?? '-' }}
Role Permission:
{{ $showDetails->employeeRole->name ?? '-' }}
Head Manager:
{{ $showDetails->headManager->name ?? '-' }}
Mode Of Travel:
{{ !empty($showDetails->getModOfTravelNamesAttribute()) ? $showDetails->getModOfTravelNamesAttribute() : '-' }}
@if (in_array('Work From Home', explode(',', $showDetails->check_in_option ?? '')))
No. Of WFH:
{{ $showDetails->no_of_wfh ?? '-' }}
@endif
Country:
{{ $showDetails->countries?->country_name ?? '-' }}
Region:
{{ $showDetails->regions?->region_name ?? '-' }}
Medical Disability:
{{ $showDetails->medical_disability == '1' ? 'Yes' : 'No' }}
@if ($showDetails->medical_disability == '1')
Disability:
{{ $showDetails->medical_disability_name }}
@endif
Work Email:
{{ $showDetails->work_email ?? '-' }}
Department:
{{ $showDetails->employeeDepartment->name ?? '-' }}
Grade:
{{ $showDetails->employeeDesignation?->grade?->grade ?? '-' }}
Shift Type:
{{ $showDetails->shiftType->name ?? '-' }}
Reporting Person:
{{ $showDetails->reportingPerson?->employeeMaster?->short_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' }}
Location:
{{ $showDetails->location->name ?? '-' }}
PF Number:
{{ $showDetails->pf_no ?? '-' }}
UAN Number:
{{ $showDetails->uan_no ?? '-' }}
ESIC Number:
{{ $showDetails->esic_no ?? '-' }}
Aadhar 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 $ext = strtolower(pathinfo($showDetails->aadhar_front, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Aadhar Front @else @endif @else Not uploaded @endif
Aadhar Back @if ($showDetails->aadhar_back && file_exists(public_path('storage/' . $showDetails->aadhar_back))) @php $ext = strtolower(pathinfo($showDetails->aadhar_back, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Aadhar Back @else @endif @else Not uploaded @endif
PAN Number {{ strtoupper($showDetails->pan_number ?? '-') }}
PAN Card @if ($showDetails->pan_file && file_exists(public_path('storage/' . $showDetails->pan_file))) @php $ext = strtolower(pathinfo($showDetails->pan_file, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) PAN Card @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 $ext = strtolower(pathinfo($showDetails->blank_cheque, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Blank Cheque @else @endif @else Not uploaded @endif
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 ?? '-' }}
Relationship:
{{ $showDetails->name_relation_1 ?? '-' }}
Address:
{{ $showDetails->address_1 ?? '-' }}
Emergency Contact No. 2:
{{ $showDetails->emergency_contact_2 ?? '-' }}
Name:
{{ $showDetails->name_2 ?? '-' }}
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
{{-- Signature --}}
Signature @if ($showDetails->signature && file_exists(public_path('storage/' . $showDetails->signature))) @php $ext = strtolower(pathinfo($showDetails->signature, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Aadhar Front @else @endif @else Not uploaded @endif
{{-- Address Proof --}}
Address Proof @if ($showDetails->address_proof && file_exists(public_path('storage/' . $showDetails->address_proof))) @php $ext = strtolower( pathinfo($showDetails->address_proof, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Pan Card @else @endif @else Not uploaded @endif
{{-- Recent Passport Size Photo --}}
Recent Passport Size Photo @if ($showDetails->passport_size_photo && file_exists(public_path('storage/' . $showDetails->passport_size_photo))) @php $ext = strtolower( pathinfo($showDetails->passport_size_photo, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Pan Card @else @endif @else Not uploaded @endif
{{-- Driving License --}}
Driving License @if ($showDetails->driving_license && file_exists(public_path('storage/' . $showDetails->driving_license))) @php $ext = strtolower( pathinfo($showDetails->driving_license, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Driving License @else @endif @else Not uploaded @endif
{{-- Last ITR 1 --}}
Last ITR 1 @if ($showDetails->last_itr_1 && file_exists(public_path('storage/' . $showDetails->last_itr_1))) @php $ext = strtolower(pathinfo($showDetails->last_itr_1, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Driving License @else @endif @else Not uploaded @endif
{{-- Last ITR 2 --}}
Last ITR 2 @if ($showDetails->last_itr_2 && file_exists(public_path('storage/' . $showDetails->last_itr_2))) @php $ext = strtolower(pathinfo($showDetails->last_itr_2, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Driving License @else @endif @else Not uploaded @endif
{{-- Last ITR 3 --}}
Last ITR 3 @if ($showDetails->last_itr_3 && file_exists(public_path('storage/' . $showDetails->last_itr_3))) @php $ext = strtolower(pathinfo($showDetails->last_itr_3, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Driving License @else @endif @else Not uploaded @endif
{{-- 10th Marksheet --}}
10th Marksheet @if ($showDetails->ten_marksheet && file_exists(public_path('storage/' . $showDetails->ten_marksheet))) @php $ext = strtolower( pathinfo($showDetails->ten_marksheet, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) 10th Marksheet @else @endif @else Not uploaded @endif
{{-- 12th Marksheet --}}
12th Marksheet @if ($showDetails->twelve_marksheet && file_exists(public_path('storage/' . $showDetails->twelve_marksheet))) @php $ext = strtolower( pathinfo($showDetails->twelve_marksheet, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) 12th Marksheet @else @endif @else Not uploaded @endif
{{-- Graduation Certificate --}}
Graduation Certificate @if ($showDetails->graduation_certi && file_exists(public_path('storage/' . $showDetails->graduation_certi))) @php $ext = strtolower( pathinfo($showDetails->graduation_certi, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Post-Graduation Certificate --}}
Post-Graduation Certificate @if ($showDetails->p_graduation_certi && file_exists(public_path('storage/' . $showDetails->p_graduation_certi))) @php $ext = strtolower( pathinfo($showDetails->p_graduation_certi, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Professional / Additional Certificate --}}
Additional Certificate @if ($showDetails->additional_certi && file_exists(public_path('storage/' . $showDetails->additional_certi))) @php $ext = strtolower( pathinfo($showDetails->additional_certi, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Relieving Letter --}}
Relieving Letter @if ($showDetails->relieving_letter && file_exists(public_path('storage/' . $showDetails->relieving_letter))) @php $ext = strtolower( pathinfo($showDetails->relieving_letter, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Experience Letter --}}
Experience Letter @if ($showDetails->experience_letter && file_exists(public_path('storage/' . $showDetails->experience_letter))) @php $ext = strtolower( pathinfo($showDetails->experience_letter, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Resume --}}
Resume @if ($showDetails->resume && file_exists(public_path('storage/' . $showDetails->resume))) @php $ext = strtolower(pathinfo($showDetails->resume, PATHINFO_EXTENSION)); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Signed Appointment --}}
Signed Appointment @if ($showDetails->signed_appointment && file_exists(public_path('storage/' . $showDetails->signed_appointment))) @php $ext = strtolower( pathinfo($showDetails->signed_appointment, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Signed Offer Letter --}}
Signed Offer Letter @if (isset($showDetails->signed_offer_letter) && !empty($showDetails->signed_offer_letter) && file_exists(public_path('storage/' . $showDetails->signed_offer_letter))) @php $ext = strtolower( pathinfo($showDetails->signed_offer_letter, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Gratuity Nomination Form --}}
Gratuity Nomination Form @if ( $showDetails->gratuity_nomination_form && file_exists(public_path('storage/' . $showDetails->gratuity_nomination_form))) @php $ext = strtolower( pathinfo($showDetails->gratuity_nomination_form, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Last 3 Month Salary Slip --}}
Last 3 Month Salary Slip @if ($showDetails->last_3_month_salary && file_exists(public_path('storage/' . $showDetails->last_3_month_salary))) @php $ext = strtolower( pathinfo($showDetails->last_3_month_salary, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Post Graduation Certificate @else @endif @else Not uploaded @endif
{{-- Last 3 Month Bank Statement --}}
Last 3 Month Bank Statement @if ($showDetails->bank_statement && file_exists(public_path('storage/' . $showDetails->bank_statement))) @php $ext = strtolower( pathinfo($showDetails->bank_statement, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Last 3 Month Bank Statement @else @endif @else Not uploaded @endif
{{-- Last Resignation Acceptance --}}
Last Resignation Acceptance @if ($showDetails->resign_acceptance && file_exists(public_path('storage/' . $showDetails->resign_acceptance))) @php $ext = strtolower( pathinfo($showDetails->resign_acceptance, PATHINFO_EXTENSION), ); $isImg = ['jpeg', 'png', 'jpg']; @endphp @if (in_array($ext, $isImg)) Last 3 Month Bank Statement @else @endif @else Not uploaded @endif
@if ($showDetails->mediclaim_policy !== null) @if ($showDetails->mediclaim_policy == 1)
Personal Insurance Details
Insurance Company:
{{ $showDetails->insurance_company ?? '-' }}
Policy Number:
{{ $showDetails->policy_number ?? '-' }}
Sum Insured:
{{ $showDetails->sum_insured ?? '-' }}
@else
Dependent Details
Relation:
{{ $showDetails->dependent_relation ?? '-' }}
Name:
{{ $showDetails->dependent_name ?? '-' }}
Date Of Birth:
{{ $showDetails->dependent_date_of_birth ? date('d-m-Y', strtotime($showDetails->dependent_date_of_birth)) : '-' }}
Children Details
@if (!empty($showDetails->mediclaimNominee)) @php $children = $showDetails->mediclaimNominee ?? []; @endphp @foreach ($children as $child) @endforeach
# Name Gender Date Of Birth
{{ $loop->iteration }} {{ $child->child_name ?? '-' }} {{ $child->child_gender ?? '-' }} {{ $child->child_dob ? date('d-m-Y', strtotime($child->child_dob)) : '-' }}
@else

No children details provided.

@endif
@endif @else

Policy details not found!

@endif
@endsection @section('page-js') @endsection