@extends('layouts.app') @section('title', 'Staff Management | Institution Axis') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

{{ auth()->user()->school?->name ?? 'Institution Axis' }}

@endsection @section('breadcrumb') Home / Teachers & Staff @endsection @section('navbar-right')
5
@endsection @section('content')

Teachers & Staff

Manage all staff profiles, records and status
Add Staff Member
@foreach(['success','error'] as $msg) @if(session($msg))
{{ session($msg) }}
@endif @endforeach {{-- Filters --}}
Reset
{{-- Stats Row --}}
{{ $staff->total() }}
Total Staff
{{ $staff->where('status','active')->count() }}
Active
{{-- Table --}}
All Staff Members
@forelse($staff as $member) @empty @endforelse
# Staff Member Staff No. Department Designation Phone Status Actions
{{ $loop->iteration }}
{{ $member->full_name }}
{{ $member->user->email }}
{{ $member->staff_number }} {{ $member->department ?? '—' }} {{ $member->designation ?? '—' }} {{ $member->phone ?? '—' }} @php $statusClass = match($member->status) { 'active' => 'bg-success', 'inactive' => 'bg-secondary', 'suspended' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ ucfirst($member->status) }}
@csrf @method('DELETE')
No staff members found. Add one now.
@if($staff->hasPages()) @endif
@endsection