@extends('layouts.school') @section('title', 'Assignments: ' . $teacher->full_name) @section('header', 'Assignments — ' . $teacher->full_name) @section('content')
← Back to teacher profile
@if (!$teacher->user_id)
This teacher has no login account yet. Academic assignments are tied to the teacher's user account. Create one now →
@else
@csrf

Subject Teacher

Tick every subject/class combination this teacher should teach. Unticking removes the assignment (another teacher may then take it).

@forelse ($allSubjects as $className => $subjects)

{{ $className }}

@foreach ($subjects as $subject) @php($ownedByThis = $subject->teacher_id === $teacher->user_id) @php($ownerName = $subject->teacher_id && !$ownedByThis ? \App\Models\User::find($subject->teacher_id)?->name : null) @endforeach
@empty

No subjects configured yet.

@endforelse

Class Teacher

The class teacher sees all students of the class, takes attendance and completes result comments.

@foreach ($classes as $classroom) @php($held = $classroom->class_teacher_id === $teacher->user_id) @endforeach
Cancel
@endif @endsection