@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) @endif @if($data->existing_pay_scale) @endif @if($data->date_of_joining_existing) @endif
Current Position/Cadre {{ $data->existing_position }}
Current Pay Scale {{ $data->existing_pay_scale }}
Date of Joining Current Position {{ \Carbon\Carbon::parse($data->date_of_joining_existing)->format('F d, Y') }}
@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)
@foreach($categories as $key => $label) @php $years = $data->{$key . '_years'} ?? 0; $months = $data->{$key . '_months'} ?? 0; @endphp @if($years > 0 || $months > 0) @endif @endforeach
Experience Category Years Months Total Duration
{{ $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
@else
Experience Breakdown (Years and Months)
No experience breakdown data provided
@endif @endif @else
No experience summary available
@endif