@extends('index') @section('content')

Employee Info

Employee No: {{$employee['employee_no']}} Department: {{$employee['dname']}} Type: {{$employee['etname']}}
Name: {{$employee['name']}} Short Name: {{$employee['sname']}} Father Name: {{$employee['fname']}}
CNIC: {{$employee['cnic']}} Contact No: {{$employee['phone1']}} Emergency No: {{$employee['phone2']}}
City: {{$employee['cname']}} Current Status: @if($employee['employee_status']) Active @else Inactive @endif Joining Date: {{\Carbon\Carbon::parse($employee['joining_date'])->format('d-m-Y')}}
Current Salary: Rs. {{number_format($employee['salary'])}} Attendance No: {{$employee['attendance_id']}} Address: {{$employee['address']}}, {{$employee['cname']}}
Designation: {{$employee['designation']}}
Details:
@php echo $employee['description'] @endphp
@if($employee['marital_status'] || $employee['siblings_count'])
Personal Information
@if($employee['marital_status']) @endif @if($employee['siblings_count']) @endif
Marital Status: {{ ucfirst($employee['marital_status']) }}
Number of Siblings: {{ $employee['siblings_count'] }}
@endif @if($employee['children_details'] && count($employee['children_details']) > 0)
Children Details
@foreach($employee['children_details'] as $child) @if(!empty($child['name'])) @endif @endforeach
Name Gender Age
{{ $child['name'] }} {{ ucfirst($child['gender'] ?? '-') }} {{ $child['age'] ?? '-' }}
@endif @if($employee['education'] && count($employee['education']) > 0)
Education
@foreach($employee['education'] as $edu) @if(!empty($edu['institution_name'])) @endif @endforeach
Institution Name Degree/Qualification Year of Passing Percentage
{{ $edu['institution_name'] }} {{ $edu['degree'] ?? '-' }} {{ $edu['year_of_passing'] ?? '-' }} {{ $edu['percentage'] ? $edu['percentage'] . '%' : '-' }}
@endif @if($employee['additional_skills'])
Additional Skills
{{ $employee['additional_skills'] }}
@endif @if($employee['employment_history'] && count($employee['employment_history']) > 0)
Employment History
@foreach($employee['employment_history'] as $emp) @if(!empty($emp['company_name'])) @endif @endforeach
Company Name Designation From Date To Date Salary Reason for Leaving
{{ $emp['company_name'] }} {{ $emp['designation'] ?? '-' }} {{ $emp['from_date'] ? \Carbon\Carbon::parse($emp['from_date'])->format('d-m-Y') : '-' }} {{ $emp['to_date'] ? \Carbon\Carbon::parse($emp['to_date'])->format('d-m-Y') : '-' }} {{ $emp['salary'] ? 'Rs. ' . number_format($emp['salary']) : '-' }} {{ $emp['reason_for_leaving'] ?? '-' }}
@endif @if($image->count())
Images
@foreach($image as $item)
@csrf
@endforeach
@else
No Images
@endif
@endsection