@extends('layouts.app') @section('content')
{{ $staff->name }}
{{ $staff->staff_id }}
{{ $staff->email }}
{{ \Carbon\Carbon::parse($staff->dob)->format('F d, Y') }}
@if($staff->subjectMainCategory) {{ $staff->subjectMainCategory->name }} @else Not Assigned @endif
@if($staff->is_confirmed) Confirmed @else Pending Confirmation @endif
{{ $staff->created_at->format('F d, Y') }}
{{ $subjects->count() }} Subject{{ $subjects->count() !== 1 ? 's' : '' }}
Subjects currently taught by this faculty member
{{ $subject['code'] }}
{{ $subject['department'] }}
{{ $subject['semester'] }}
{{ $subject['credits'] }} Credits
{{ $subject['student_count'] }} / {{ $subject['student_limit'] }}
This staff member has not been assigned any subjects yet.
Total Students
{{ $subjects->sum('student_count') }}
Total Credits
{{ $subjects->sum('credits') }}
Avg Class Size
{{ $subjects->count() > 0 ? round($subjects->sum('student_count') / $subjects->count(), 1) : 0 }}