Staff Management

Teachers

Manage teachers and teaching access for {{ $school->name }}.

{{-- ===================================================== Teacher Summary ===================================================== --}}
{{ $totalTeachers ?? $teachers->total() }} Total Teachers
{{ $activeTeachers ?? 0 }} Active
{{ $classesAssigned ?? 0 }} Classes Assigned
{{-- ===================================================== Teacher Directory ===================================================== --}}

Teaching Staff

Search, review and manage teacher accounts and class assignments.

@if(request('search')) Clear @endif
@if($teachers->count())
@foreach($teachers as $teacher) {{-- Teacher --}} {{-- Employee Number --}} {{-- Email --}} {{-- Phone --}} {{-- Classes --}} {{-- Status --}} {{-- Actions --}} @endforeach
Teacher Employee No. Email Phone Classes Status Actions
Teaching Staff
{{ $teacher->pivot->reference_number ?? '—' }} {{ $teacher->email }} {{ $teacher->phone ?? '—' }} @if($teacher->teachingClasses->count())
@foreach( $teacher ->teachingClasses ->take(2) as $class ) {{ $class->name }} @endforeach @if( $teacher ->teachingClasses ->count() > 2 ) +{{ $teacher ->teachingClasses ->count() - 2 }} @endif
@else No classes @endif
@php $status = $teacher->pivot->status ?? $teacher->status ?? 'inactive'; $badgeClass = match($status) { 'active' => 'badge-success', 'suspended' => 'badge-warning', default => 'badge-danger', }; @endphp {{ ucfirst($status) }}
{{-- View --}} {{-- Edit --}} {{-- Deactivate --}} @if( ($teacher->pivot->status ?? $teacher->status) === 'active' )
@csrf @method('DELETE')
@endif
{{-- Pagination --}} @if($teachers->hasPages())
{{ $teachers ->withQueryString() ->links() }}
@endif @else
@if(request('search'))

No matching teachers

No teaching staff matched "{{ request('search') }}".

Clear Search @else

No teachers yet

Add your teaching staff to begin assigning classes, literature resources and learner activities.

+ Add First Teacher @endif
@endif