@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
| S.No. |
Course Name |
Course Code |
Level |
Type |
Credits |
@foreach($data['taught'] as $subject)
| {{ $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' }} |
@endforeach
@endif
@if($data['willing_to_teach'] && $data['willing_to_teach']->count() > 0)
Subjects Willing to Teach
| S.No. |
Course Name |
Course Code |
Level |
Type |
Credits |
@foreach($data['willing_to_teach'] as $subject)
| {{ $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' }} |
@endforeach
@endif
@else
No subjects taught or willing to teach information available
@endif