@if($data)
@if($data->has_no_experience)
Applicant has declared no professional experience
@else
@if($data->existing_position || $data->existing_pay_scale || $data->date_of_joining_existing)
Current Position Details
@if($data->existing_position)
| Current Position/Cadre |
{{ $data->existing_position }} |
@endif
@if($data->existing_pay_scale)
| Current Pay Scale |
{{ $data->existing_pay_scale }} |
@endif
@if($data->date_of_joining_existing)
| Date of Joining Current Position |
{{ \Carbon\Carbon::parse($data->date_of_joining_existing)->format('F d, Y') }} |
@endif
@endif
@php
$categories = \App\Models\ExperienceSummary::getExperienceCategories();
$hasExperienceData = false;
foreach($categories as $key => $label) {
$years = $data->{$key . '_years'} ?? 0;
$months = $data->{$key . '_months'} ?? 0;
if($years > 0 || $months > 0) {
$hasExperienceData = true;
break;
}
}
@endphp
@if($hasExperienceData)
Experience Breakdown (Years and Months)
| Experience Category |
Years |
Months |
Total Duration |
@foreach($categories as $key => $label)
@php
$years = $data->{$key . '_years'} ?? 0;
$months = $data->{$key . '_months'} ?? 0;
@endphp
@if($years > 0 || $months > 0)
| {{ $label }} |
{{ $years }} |
{{ $months }} |
@if($years > 0){{ $years }} year{{ $years > 1 ? 's' : '' }}@endif
@if($years > 0 && $months > 0) @endif
@if($months > 0){{ $months }} month{{ $months > 1 ? 's' : '' }}@endif
|
@endif
@endforeach
@else
Experience Breakdown (Years and Months)
No experience breakdown data provided
@endif
@endif
@else
No experience summary available
@endif