@extends('layouts.applicant.applicant') @section('title', 'Subject Taught/Willing to Teach') @section('breadcrumbs') @endsection @section('content')

Subject Taught/Willing to Teach

Application: {{ $application->application_number }}

@php $previousStep = $currentStep->getPreviousStep(); @endphp @if($previousStep) Previous Step @endif
@include('applicant.applications.partials.progress-indicator')
@csrf @method('PUT')
form_data['subjects-taught']['is_fresher'] ?? false) ? 'checked' : '' }} onchange="toggleSubjectSections()">
Check this box if you are a fresher and have no prior teaching experience. This will hide the "Subjects Taught" section and only show "Willing to Teach".
Minimum Requirements
Subjects Taught:
  • UG Level: Minimum 3 Core + 3 Elective courses
  • PG Level: Minimum 3 Core + 3 Elective courses
Willing to Teach:
  • UG Level: Minimum 3 Core + 3 Elective courses
  • PG Level: Minimum 3 Core + 3 Elective courses
@php $subjectsTaught = $application->subjectsTaught; $groupedSubjects = $subjectsTaught->groupBy(['category', 'level', 'type']); // Count subjects by category, level, and type $counts = []; foreach ($subjectsTaught as $subject) { $counts[$subject->category][$subject->level][$subject->type] = ($counts[$subject->category][$subject->level][$subject->type] ?? 0) + 1; } // Check missing requirements $missing = App\Models\SubjectTaught::checkMinimumRequirements($application->id); @endphp @if(!empty($missing))
Missing Requirements
@foreach($missing as $item)
{{ ucfirst(str_replace('_', ' ', $item['category'])) }} - {{ strtoupper($item['level']) }} {{ ucfirst($item['type']) }}: Need {{ $item['needed'] }} more ({{ $item['current'] }}/{{ $item['required'] }})
@endforeach
@endif
Subjects Taught
@if($application->isEditable()) @endif
@if($subjectsTaught->where('category', 'taught')->count() > 0) @foreach(['ug' => 'Undergraduate (UG)', 'pg' => 'Postgraduate (PG)'] as $level => $levelLabel) @if($subjectsTaught->where('category', 'taught')->where('level', $level)->count() > 0)
{{ $levelLabel }}
@foreach(['core' => 'Core Courses', 'elective' => 'Elective Courses'] as $type => $typeLabel) @php $subjects = $subjectsTaught->where('category', 'taught')->where('level', $level)->where('type', $type); @endphp @if($subjects->count() > 0)
{{ $typeLabel }} ({{ $subjects->count() }})
@if($application->isEditable()) @endif @foreach($subjects as $subject) @if($application->isEditable()) @endif @endforeach
Course Name Code CreditsActions
{{ $subject->course_name }} {{ $subject->course_code ?? '-' }} {{ $subject->credits ?? '-' }}
@endif @endforeach
@endif @endforeach @else
No Subjects Taught Added

Add the subjects you have taught at UG and PG levels.

@endif
Willing to Teach
@if($application->isEditable()) @endif
@if($subjectsTaught->where('category', 'willing_to_teach')->count() > 0) @foreach(['ug' => 'Undergraduate (UG)', 'pg' => 'Postgraduate (PG)'] as $level => $levelLabel) @if($subjectsTaught->where('category', 'willing_to_teach')->where('level', $level)->count() > 0)
{{ $levelLabel }}
@foreach(['core' => 'Core Courses', 'elective' => 'Elective Courses'] as $type => $typeLabel) @php $subjects = $subjectsTaught->where('category', 'willing_to_teach')->where('level', $level)->where('type', $type); @endphp @if($subjects->count() > 0)
{{ $typeLabel }} ({{ $subjects->count() }})
@if($application->isEditable()) @endif @foreach($subjects as $subject) @if($application->isEditable()) @endif @endforeach
Course Name Code CreditsActions
{{ $subject->course_name }} {{ $subject->course_code ?? '-' }} {{ $subject->credits ?? '-' }}
@endif @endforeach
@endif @endforeach @else
No Subjects Added for Willing to Teach

Add the subjects you are willing to teach at UG and PG levels.

@endif
@if($previousStep) Previous: {{ $previousStep->name }} @endif
@php $nextStep = $currentStep->getNextStep(); @endphp @if($nextStep) Next: {{ $nextStep->name }} @endif
@if($application->isEditable()) @endif @endsection