@if($data) @if($data->has_no_experience) @else @endif
No Experience Declared
Existing Position: {{ $data->existing_position ?? 'N/A' }} Pay Scale: {{ $data->existing_pay_scale ?? 'N/A' }}
Date of Joining (Existing): {{ $data->date_of_joining_existing ? \Carbon\Carbon::parse($data->date_of_joining_existing)->format('F d, Y') : 'N/A' }}
@if(!$data->has_no_experience)
Experience Breakdown
@php $categories = [ 'total_experience' => 'Total Experience', 'experience_after_phd' => 'Experience after Ph.D.', 'experience_after_agp_6000' => 'Experience after AGP 6000', 'experience_after_agp_7000' => 'Experience after AGP 7000', 'experience_after_agp_8000' => 'Experience after AGP 8000', 'experience_after_agp_9000' => 'Experience after AGP 9000', 'experience_after_agp_9500' => 'Experience after AGP 9500', 'experience_after_agp_10000' => 'Experience after AGP 10000', 'experience_after_agp_10500' => 'Experience after AGP 10500', ]; @endphp @foreach($categories as $key => $label) @php $years = $data->{$key . '_years'} ?? 0; $months = $data->{$key . '_months'} ?? 0; $totalMonths = ($years * 12) + $months; @endphp @if($totalMonths > 0) @endif @endforeach
Experience Category Years Months Total (in months)
{{ $label }} {{ $years }} {{ $months }} {{ $totalMonths }}
@endif @else
No experience summary available
@endif