@extends('layouts.app') @section('title', '{{ $staff->full_name }} — Workload | Institution Axis') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

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

@endsection @section('breadcrumb') Home / Workload / {{ $staff->full_name }} @endsection @section('navbar-right')
5
@endsection @section('content')

Teacher Workload

Manage class-subject assignments for {{ $staff->full_name }}
Back
@foreach(['success','error'] as $msg) @if(session($msg))
{{ session($msg) }}
@endif @endforeach
{{-- Teacher Info Card --}}
{{ $staff->full_name }}
{{ $staff->designation ?? 'Teacher' }}
{{ $staff->department ?? '' }}

{{ $assignments->count() }}
Total Assignments
{{-- Assign New --}}
Assign Class/Subject
@csrf
@error('school_class_id')
{{ $message }}
@enderror
@error('subject_id')
{{ $message }}
@enderror
{{-- Current Assignments --}}
Current Assignments
@forelse($assignments as $a) @empty @endforelse
#ClassSubjectRemove
{{ $loop->iteration }} {{ $a->class_name }} {{ $a->subject_name }}
@csrf
No assignments yet. Use the form to assign classes.
@endsection