@extends('layouts.school') @section('title', 'All Staff') @section('header', 'Staff Management') @section('content') @php $sid = request()->route('schoolId'); $statusLabels = ['active' => 'Active', 'inactive' => 'Inactive', 'on_leave' => 'On Leave', 'suspended' => 'Suspended', 'resigned' => 'Resigned', 'retired' => 'Retired']; @endphp

Total Staff

{{ $stats['total'] }}

Active

{{ $stats['active'] }}

Teachers

{{ $stats['teachers'] }}

On Leave

{{ $stats['on_leave'] }}

Inactive

{{ $stats['inactive'] }}

Reset + Add Staff
@forelse ($staffMembers as $m) @empty @endforelse
Name Staff No Category / Designation Department Type Portal Status
@if ($m->photo) @else {{ Str::of($m->first_name)->substr(0, 1) . Str::of($m->last_name)->substr(0, 1) }} @endif {{ $m->fullName() }} {{ $m->email ?? '' }}@if($m->teacher_id) ยท linked teacher record @endif {{ $m->staff_no ?? 'โ€”' }} {{ $m->designation?->name ?? 'โ€”' }}{{ $m->category?->name }} {{ $m->department?->name ?? 'โ€”' }} {{ str_replace('_', ' ', $m->employment_type) }} @if ($m->user) {{ $m->user->is_active ? 'Enabled' : 'Disabled' }} @else No account @endif {{ $statusLabels[$m->status] ?? ucfirst($m->status) }}
No staff records found.
{{ $staffMembers->links() }}
@endsection