@extends('layouts.app') @section('title', $teacher->fullName()) @section('content') @php $assignmentsCount = $teacher->assignments_count ?? $teacher->assignments()->count(); $employmentType = match ($teacher->employment_type) { 'full_time' => 'Full Time', 'part_time' => 'Part Time', 'contract' => 'Contract', 'temporary' => 'Temporary', default => ucfirst(str_replace('_', ' ', $teacher->employment_type ?? '')), }; $gender = match ($teacher->gender) { 'male' => 'Male', 'female' => 'Female', 'other' => 'Other', default => '—', }; $age = $teacher->date_of_birth ? $teacher->date_of_birth->age : null; $serviceDuration = $teacher->joining_date ? $teacher->joining_date->diffForHumans( now(), true ) : null; $hasAssignments = $assignmentsCount > 0; @endphp
Teacher profile, employment information and academic assignments.
Assignments
{{ number_format($assignmentsCount) }}
Employment
{{ $employmentType ?: '—' }}
Joined
{{ $teacher->joining_date?->format('d M Y') ?? '—' }}
Class Teacher
{{ $teacher->is_class_teacher ? 'Yes' : 'No' }}
Personal and contact information for this teacher.
{{ $teacher->designation }}
Address
@if($teacher->address){{ $teacher->address }}
@elseNo address has been added for this teacher.
@endifCurrent employment configuration.
{{ $teacher->designation }}
{{ $employmentType }}
Qualification
@if($teacher->qualification){{ $teacher->qualification }}
@elseNo qualification information added.
@endifClasses and sections assigned to this teacher.
| Academic Year | Class | Section | Assignment |
|---|---|---|---|
|
@if($assignment->academicYear)
{{ $assignment->academicYear->name }}
@if($assignment->academicYear->is_current)
Current
@endif
@else
—
@endif
|
{{-- Class --}}
@if($assignment->schoolClass) {{ $assignment->schoolClass->name }} @else — @endif | {{-- Section --}}@if($assignment->section) {{ $assignment->section->name }} @else All / — @endif | {{-- Assignment --}}@if($teacher->is_class_teacher) Class Teacher @else Teacher @endif |
{{ number_format($assignmentsCount) }} {{ Str::plural('assignment', $assignmentsCount) }}
Assignment details are not currently loaded.
@can('teacher-assignments.view') View Assignments @endcanNo Assignments
This teacher has not been assigned to any class or section yet.
Teacher Identity
Unique teacher identification used throughout the attendance system.
{{ $teacher->teacher_id }}
Employment
Current designation and employment arrangement.
{{ $teacher->designation }}
Assignments
Academic class and section assignments connected to this teacher.
@can('teacher-assignments.view') View Assignments @endcanService Duration
Time since this teacher joined the school.
{{ $serviceDuration ?: '—' }}
System information for this teacher record.
Manage or remove this teacher.
Edit Teacher
Update personal information, employment details, status or profile photo.
Teacher protected from deletion
This teacher has academic assignments. Set the teacher to inactive instead of deleting the record.
@if($teacher->is_active) @can('teachers.edit') Change Status @endcan @endif