@foreach(['teaching', 'research', 'industrial'] as $type)
@if(isset($experiences[$type]) && $experiences[$type]->count() > 0)
@foreach($experiences[$type] as $experience)
{{ $experience->position_designation }}
@if($experience->is_current)
Current
@endif
@if($experience->hasDocument())
@endif
{{ $experience->institution_industry_name }}
@if($experience->department)
{{ $experience->department }}
@endif
Duration:
{{ $experience->getFormattedDuration() }}
Period:
{{ $experience->from_date->format('M Y') }} -
{{ $experience->is_current ? 'Present' : $experience->to_date?->format('M Y') }}
@if($experience->pay_amount || $experience->pay_scale || $experience->grade_pay)
Compensation:
@if($experience->pay_amount)
{{ $experience->currency }} {{ number_format($experience->pay_amount) }}
@endif
@if($experience->pay_scale)
Scale: {{ $experience->pay_scale }}
@endif
@if($experience->grade_pay)
Grade: {{ $experience->grade_pay }}
@endif
@if($experience->pay_level)
Level: {{ $experience->pay_level }}
@endif
@endif
@if($experience->description)
{{ Str::limit($experience->description, 150) }}
@endif
@if($application->status !== 'submitted')
@endif
@endforeach
@else
No {{ $type }} experience added
Add your {{ $type }} experience to strengthen your application.
@if($application->status !== 'submitted')
Add {{ ucfirst($type) }} Experience
@endif
@endif