@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 ?? '-' }}

Email:   {{ $showDetails->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?->name ?? '' }}

{{-- --}}

Employee Code:

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

Date Of Joining:

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

Phone Number:

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

Permanent Address:

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

Reporting Person:

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

Gender:

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

Employee Department:

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

Employee Designation:

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

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'] }}

Blood Group:

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

Email:

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

Date Of Birth:

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

Residential Address:

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

Role Permission:

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

Shift Type:

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

Reporting Person:

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

Cold Storage:

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

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

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