@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'] }}
| Name | Staff No | Category / Designation | Department | Type | Portal | Status |
|---|---|---|---|---|---|---|
|
@if ($m->photo)
|
{{ $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. | ||||||