| {{ $subject->is_activity ? '—' : $subject->code }} |
{{ $subject->name }}
@if (! $subject->is_activity && ($subject->total_hours !== null || $subject->requires_special_room))
@if ($subject->total_hours !== null)
{{ rtrim(rtrim(number_format($subject->total_hours, 2, '.', ''), '0'), '.') }} total hrs
@endif
@if ($subject->requires_special_room)
{{ $subject->total_hours !== null ? '·' : '' }} Special room
@endif
@endif
@if ($subject->pathwaySubjects->isNotEmpty())
@foreach ($subject->pathwaySubjects as $assignment)
{{ $assignment->pathway?->name }} · {{ $assignment->schoolTerm?->name ?? 'All Terms' }}
@endforeach
@endif
|
{{ $subject->gradeLevel?->name ?? '—' }} |
{{ $subjectTypeLabels[$subject->subject_type] ?? ucfirst($subject->subject_type) }} |
{{ $subject->is_activity ? '—' : rtrim(rtrim(number_format((float) $subject->weekly_hours, 2, '.', ''), '0'), '.') }} |
@php($offeringTerm = $subject->offering_type === 'term' ? $subject->pathwaySubjects->pluck('schoolTerm')->filter()->first() : null)
schoolYear) title="{{ $offeringTerm->schoolYear->name }}" @endif>
{{ $subject->is_activity ? '—' : ($subject->offering_type === 'year' ? 'Year' : ($offeringTerm?->name ?? 'Term')) }}
|
{{ $subject->is_active ? 'Active' : 'Inactive' }} |
|
@empty