@extends('layouts.school') @section('title', 'Staff Dashboard') @section('header', 'Staff Management') @section('content') @php $sid = request()->route('schoolId'); @endphp

Staff Dashboard

Workforce overview across every category — teaching and non-teaching.

Mark Attendance + Add Staff

Total Staff

{{ $stats['total'] }}

Active

{{ $stats['active'] }}

On Leave

{{ $stats['on_leave'] }}

Teaching

{{ $stats['teachers'] }}

Portal Accounts

{{ $stats['accounts'] }}

@if ($today['marked'])

{{ $today['present'] }}

Present

{{ $today['absent'] }}

Absent

{{ $today['late'] }}

Late

{{ $today['excused'] }}

Excused

@else

Attendance has not been marked today. Mark it now.

@endif
@foreach ($recentHires as $m) @endforeach
NameDesignationDepartmentEmployed OnStatus
{{ $m->fullName() }} {{ $m->designation?->name ?? '—' }} {{ $m->department?->name ?? '—' }} {{ $m->employed_on?->format('d M Y') ?? '—' }} {{ str_replace('_', ' ', ucfirst($m->status)) }}
@endsection