@if($data && (($data['taught'] && $data['taught']->count() > 0) || ($data['willing_to_teach'] && $data['willing_to_teach']->count() > 0))) @if($data['taught'] && $data['taught']->count() > 0)
Subjects Taught
@foreach($data['taught'] as $subject) @endforeach
S.No. Course Name Course Code Level Type Credits
{{ $loop->iteration }} {{ $subject->course_name ?? 'N/A' }} {{ $subject->course_code ?? 'N/A' }} {{ ucfirst($subject->level ?? 'N/A') }} {{ ucfirst($subject->type ?? 'N/A') }} {{ $subject->credits ?? 'N/A' }}
@endif @if($data['willing_to_teach'] && $data['willing_to_teach']->count() > 0)
Subjects Willing to Teach
@foreach($data['willing_to_teach'] as $subject) @endforeach
S.No. Course Name Course Code Level Type Credits
{{ $loop->iteration }} {{ $subject->course_name ?? 'N/A' }} {{ $subject->course_code ?? 'N/A' }} {{ ucfirst($subject->level ?? 'N/A') }} {{ ucfirst($subject->type ?? 'N/A') }} {{ $subject->credits ?? 'N/A' }}
@endif @else
No subjects taught or willing to teach information available
@endif