@extends('layouts.applicant.applicant') @section('title', 'Experience') @section('breadcrumbs') @endsection @section('content') @php // Define experiences variable at the top to avoid undefined variable errors $experiences = $application->experiences()->orderBy('from_date', 'desc')->get(); $previousStep = $currentStep->getPreviousStep(); @endphp

Professional Experience

Application: {{ $application->application_number }}

@if($previousStep) Previous Step @endif
@include('applicant.applications.partials.progress-indicator')
@csrf @method('PUT') @php $hasExperiences = $experiences->count() > 0; $hasNoExperienceChecked = $application->form_data['experience']['has_no_experience'] ?? false; @endphp
@if($hasExperiences) This option is disabled because you have already added experience entries. Remove all experiences to enable this option. @else Check this box if you have no professional experience to add. This will allow you to proceed to the next step. @endif
Professional Experience
@if($experiences->count() > 0)
{{ $experiences->count() }} experience(s) added successfully. @if(!$application->isEditable())
Application is finalized and cannot be edited. @endif
{{ $experiences->where('experience_type', 'teaching')->count() }}
Teaching Experience
{{ $experiences->where('experience_type', 'research')->count() }}
Research Experience
{{ $experiences->where('experience_type', 'industrial')->count() }}
Industry Experience
@if($application->isEditable()) @endif @foreach($experiences as $experience) @if($application->isEditable()) @endif @endforeach
Type Position Institution/Organization Duration Experience DocumentActions
@if($experience->experience_type) @php $badgeClasses = [ 'teaching' => 'bg-primary', 'research' => 'bg-success', 'industrial' => 'bg-info', 'existing_position' => 'bg-warning' ]; $badgeClass = $badgeClasses[$experience->experience_type] ?? 'bg-secondary'; @endphp {{ $experience->getExperienceTypeLabel() }} @else Not Specified @endif {{ $experience->position_designation }} {{ $experience->institution_industry_name }} {{ $experience->from_date->format('M Y') }} - @if($experience->is_current) Current @else {{ $experience->to_date ? $experience->to_date->format('M Y') : 'N/A' }} @endif {{ $experience->getFormattedDuration() }} @if($experience->document_path) @else Missing Required Document @endif
@csrf @method('DELETE')
@if($application->isEditable()) Add Teaching Add Research Add Industry @else Application finalized - editing disabled @endif
@php $nextStep = $currentStep->getNextStep(); @endphp @if($nextStep) Next: {{ $nextStep->name }} @else Application Complete @endif
@else
Please add your professional experience to continue with the application process.
Teaching Experience

Academic positions in educational institutions including professor, lecturer, assistant professor, etc.

Research Experience

Research positions in academic institutions, research organizations, or R&D departments.

Industry Experience

Professional experience in private companies, government organizations, or industry.

No Experience Added

Add your professional experience including teaching, research, and industry experience.

Important: Experience proof document (certificate, appointment letter, or relieving letter) is mandatory for all experience entries.
@if($application->isEditable()) @else Application finalized - cannot add experience @endif
@endif
@endsection