@extends('layouts.teacher-portal') @section('title', 'My Profile') @section('header', 'My Profile') @section('content')
{{-- Profile card + photo --}}
@if ($teacher->photo) @else {{ $teacher->initials }} @endif

{{ $teacher->full_name }}

{{ $teacher->designation ?? 'Teacher' }}

@csrf @error('photo')

{{ $message }}

@enderror
Staff ID
{{ $teacher->employee_id }}
Department
{{ $teacher->department ?? '—' }}
Joined
{{ optional($teacher->join_date)->format('j M Y') ?? '—' }}
Status
{{ ucfirst($teacher->employment_status) }}
Login
{{ $ctx->user->email }}

To change your name, contact details or other records, please contact the school administrator.

{{-- Editable details --}}

Contact Details

@unless ($perm['manage_profile'])
Profile editing is disabled by your administrator.
@endunless
@csrf
@error('phone')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror
@if ($perm['manage_profile']) @endif
{{-- Read-only record snapshot --}}

Qualification

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

Specialization

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

Experience

{{ $teacher->experience ?? '—' }}

Employment Type

{{ str_replace('_', ' ', $teacher->employment_type ?? '—') }}

Email

{{ $teacher->email ?? '—' }}

Gender

{{ $teacher->gender ?? '—' }}

@if ($teacher->bio)

Bio

{{ $teacher->bio }}

@endif
@endsection