{{-- Success Message Alert --}} @if(session('success'))
{{ session('success') }}
{{-- Show generated credentials & PDF Download Button --}} @if(session('generated_password'))
Email / Login ID:
{{ session('generated_email') }}
Temporary Password:
{{ session('generated_password') }}
{{-- THIS BUTTON SECURELY PASSES THE ENCRYPTED PASSWORD --}} Download PDF
@endif
@endif {{-- Top Header Section --}}

Faculty & Teacher Hub

Manage your teaching staff, monitor account statuses, and generate credentials.

Add New Teacher
{{-- Main Data Table Card --}}
@forelse($teachers as $teacher) {{-- Name & Avatar --}} {{-- Contact Info --}} {{-- Status Badge --}} {{-- Date Added --}} {{-- Action Links --}} @empty @endforelse
Instructor Profile Contact Info Account Status Joined Date Actions
{{ strtoupper(substr($teacher->name, 0, 2)) }}
{{ $teacher->name }}
Faculty Member
@if($teacher->phone) @endif
@if(($teacher->status ?? 'active') === 'active') Active @else Inactive @endif {{ $teacher->created_at->format('M d, Y') }}
{{-- View Profile --}} {{-- Edit Profile --}} {{-- Download Credentials PDF (Without Password) --}} {{-- Regenerate Password --}}
@csrf
{{-- Delete --}}
@csrf @method('DELETE')

No teachers found.

Your faculty directory is currently empty.

+ Add your first teacher
{{-- Pagination Links --}} @if(method_exists($teachers, 'hasPages') && $teachers->hasPages())
{{ $teachers->links() }}
@endif