@extends('layouts.app') @section('title', $teacher->name . ' - Teacher Profile') @section('page-title', 'Teacher Profile') @section('content')
{{-- Header --}}
Back to Teachers Edit
{{-- Profile Card --}}
{{ strtoupper(substr($teacher->name, 0, 1)) }}

{{ $teacher->name }}

{{ $teacher->email }}@if($teacher->phone) · {{ $teacher->phone }}@endif

@if($teacher->is_active) Active @else Inactive @endif

Employee ID

{{ $teacher->teacherProfile?->employee_id ?? '—' }}

Qualification

{{ $teacher->teacherProfile?->qualification ?? '—' }}

Specialization

{{ $teacher->teacherProfile?->specialization ?? '—' }}

Joining Date

{{ $teacher->teacherProfile?->joining_date?->format('d M Y') ?? '—' }}

{{-- Assigned Classes (Class Teacher) --}}

Class Teacher Of

@if($assignedClasses->count())
@foreach($assignedClasses as $class)
{{ $class->full_name }} {{ $class->students->count() ?? 0 }} students
@endforeach
@else

Not assigned as class teacher

@endif
{{-- Subject Assignments --}}

Subject Assignments

@if($assignedSubjects->count())
@foreach($assignedSubjects as $assignment)
{{ $assignment->subject_name }} {{ $assignment->class_name }}{{ $assignment->section ? " - {$assignment->section}" : '' }}
@endforeach
@else

No subjects assigned yet

@endif
{{-- Recent Activity --}}

Recent Attendance Entries

@if($recentActivity->count())
@foreach($recentActivity as $entry)
{{ \Carbon\Carbon::parse($entry->date)->format('d M Y') }} {{ $entry->entries }} records
@endforeach
@else

No attendance records yet

@endif
@endsection