Manage teachers and teaching access for {{ $school->name }}.
Search, review and manage teacher accounts and class assignments.
| Teacher | Employee No. | Phone | Classes | Status | Actions | |
|---|---|---|---|---|---|---|
| {{-- Employee Number --}} | {{ $teacher->pivot->reference_number ?? '—' }} | {{-- Email --}}{{ $teacher->email }} | {{-- Phone --}}{{ $teacher->phone ?? '—' }} | {{-- Classes --}}
@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
|
{{-- Status --}}
@php $status = $teacher->pivot->status ?? $teacher->status ?? 'inactive'; $badgeClass = match($status) { 'active' => 'badge-success', 'suspended' => 'badge-warning', default => 'badge-danger', }; @endphp {{ ucfirst($status) }} | {{-- Actions --}}
No teaching staff matched "{{ request('search') }}".
Clear Search @elseAdd your teaching staff to begin assigning classes, literature resources and learner activities.
+ Add First Teacher @endif