@extends('layouts.school') @section('title', $teacher->full_name) @section('header', $teacher->full_name) @section('content')
← Back to teachers
Edit Assignments Portal Account
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- Profile header card --}}
@csrf @if ($teacher->photo) @else {{ $teacher->initials }} @endif

{{ $teacher->full_name }}

{{ $teacher->designation ?? 'Teacher' }} @if($teacher->department) · {{ $teacher->department }} @endif · {{ $teacher->employee_id }}

{{ $teacher->is_active ? 'Active record' : 'Inactive record' }} {{ str_replace('_', ' ', $teacher->employment_status) }} @if ($teacher->employment_type) {{ str_replace('_', ' ', $teacher->employment_type) }} @endif @if ($teacher->user) Portal {{ $teacher->user->is_active ? 'enabled' : 'disabled' }} @else No portal account @endif
{{-- Personal information --}}

Personal Information

Full Name
{{ $teacher->full_name }}
Gender
{{ ucfirst($teacher->gender ?? '—') }}
Date of Birth
{{ $teacher->date_of_birth?->format('d M Y') ?? '—' }}
Email
{{ $teacher->email }}
Phone
{{ $teacher->phone ?? '—' }}
Nationality
{{ $teacher->nationality ?? '—' }}
State of Origin
{{ $teacher->state_of_origin ?? '—' }}
LGA
{{ $teacher->lga ?? '—' }}
Address
{{ $teacher->address ?? '—' }}
{{-- Employment information --}}

Employment Information

Employee ID
{{ $teacher->employee_id }}
Campus
{{ $teacher->campus?->name ?? '—' }}
Department
{{ $teacher->department ?? '—' }}
Designation
{{ $teacher->designation ?? '—' }}
Qualification
{{ $teacher->qualification ?? '—' }}
Specialization
{{ $teacher->specialization ?? '—' }}
Experience
{{ $teacher->experience ?? '—' }}
Employment Date
{{ $teacher->join_date?->format('d M Y') ?? '—' }}
Employment Status
{{ str_replace('_', ' ', $teacher->employment_status ?? '—') }}
Employment Type
{{ $teacher->employment_type ? str_replace('_', ' ', $teacher->employment_type) : '—' }}
Salary
{{ $teacher->salary ? '₦' . number_format((float) $teacher->salary, 0) : '—' }}
{{-- Academic responsibilities --}}

Academic Responsibilities

Manage assignments →
@if (!$teacher->user_id)

No login account is linked yet, so no classes or subjects can be assigned. Create a portal account first.

@else

Subject / Class Combinations

@forelse ($subjects as $subject)

{{ $subject->name }} · {{ $subject->classroom?->name }}

@empty

None assigned

@endforelse

Class Teacher Of

@forelse ($classTeacherOf as $classroom)

{{ $classroom->name }} · {{ $classroom->students()->count() }} students

@empty

Not a class teacher

@endforelse

Pending Marks (current term)

@forelse ($pendingMarks as $row)

{{ $row->subject->name }} · {{ $row->subject->classroom?->name }} — {{ $row->entered }}/{{ $row->total }} students entered

@empty

All caught up

@endforelse
@endif
@endsection