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

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

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

Workload Overview

Class-subject assignments per teacher
@foreach(['success','error'] as $msg) @if(session($msg))
{{ session($msg) }}
@endif @endforeach
All Active Teachers — Assignment Summary
@forelse($staffList as $s) @php $periods = $s->periods_per_week ?? 0; $loadColor = $periods > 20 ? 'bg-danger' : ($periods > 12 ? 'bg-warning text-dark' : 'bg-success'); $maxPeriods = 25; @endphp @empty @endforelse
# Teacher Department Designation Assignments Load Actions
{{ $loop->iteration }}
{{ $s->full_name }}
{{ $s->user->email }}
{{ $s->department ?? '—' }} {{ $s->designation ?? '—' }} {{ $periods }}
@if($periods > 20) @endif
Details
No active staff found.
@endsection