@extends('layouts.app') @section('title', 'Edit Teacher') @section('content')
{{-- ============================================================ Page Header ============================================================ --}}

Edit Teacher

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

Update {{ $teacher->fullName() }}'s personal and employment information.

View Teacher
{{-- ============================================================ Validation Summary ============================================================ --}} @if($errors->any())

Please correct the following information.

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- ============================================================ Form ============================================================ --}}
@csrf @method('PUT')
{{-- ==================================================== Main Content ==================================================== --}}
{{-- ================================================= Personal Information ================================================= --}}

Personal Information

Update the teacher's personal information.

{{-- Teacher ID --}}
@error('teacher_id')

{{ $message }}

@enderror

Unique identification number for this teacher.

{{-- Gender --}}
@error('gender')

{{ $message }}

@enderror
{{-- First Name --}}
@error('first_name')

{{ $message }}

@enderror
{{-- Last Name --}}
@error('last_name')

{{ $message }}

@enderror
{{-- Date of Birth --}}
@error('date_of_birth')

{{ $message }}

@enderror
{{-- Profile Photo --}}
@error('profile_photo')

{{ $message }}

@enderror

Leave empty to keep the current photo. Maximum 2 MB.

{{-- ================================================= Contact Information ================================================= --}}

Contact Information

Update phone, email and residential information.

{{-- Phone --}}
@error('phone')

{{ $message }}

@enderror
{{-- Email --}}
@error('email')

{{ $message }}

@enderror
{{-- Address --}}
0 / 1000
@error('address')

{{ $message }}

@enderror
{{-- ================================================= Employment Information ================================================= --}}

Employment Information

Manage designation, qualification and employment settings.

{{-- Designation --}}
@error('designation')

{{ $message }}

@enderror
{{-- Employment Type --}}
@error('employment_type')

{{ $message }}

@enderror
{{-- Joining Date --}}
@error('joining_date')

{{ $message }}

@enderror
{{-- Qualification --}}
@error('qualification')

{{ $message }}

@enderror
{{-- Class Teacher --}}
@error('is_class_teacher')

{{ $message }}

@enderror

Class and section assignment is managed separately.

{{-- Status --}}
@error('is_active')

{{ $message }}

@enderror
{{-- ================================================= Record Information ================================================= --}}

Record Information

System information associated with this teacher.

Created

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

{{ $teacher->created_at?->format('h:i A') ?? '' }}

Last Updated

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

{{ $teacher->updated_at?->format('h:i A') ?? '' }}

Assignments

{{ $teacher->assignments_count ?? $teacher->assignments()->count() }}

Teacher assignments

{{-- ==================================================== Sidebar ==================================================== --}}
{{-- ================================================= Teacher Profile ================================================= --}}

Teacher Profile

Current profile information.

@if($teacher->hasPhoto()) {{ $teacher->fullName() }} @else
@endif

{{ $teacher->fullName() }}

{{ $teacher->designation }}

{{ $teacher->teacher_id }} @if($teacher->is_class_teacher) Class Teacher @endif
{{-- ================================================= Update ================================================= --}}

Update Teacher

Review changes before saving.

Changes to teacher information will be reflected throughout the attendance system.

Cancel
{{-- ================================================= Current Status ================================================= --}}

Current Status

Account Status @if($teacher->is_active) Active @else Inactive @endif
Class Teacher @if($teacher->is_class_teacher) Yes @else No @endif
Employment {{ str($teacher->employment_type)->replace('_', ' ')->title() }}
@endsection @push('scripts') @endpush