@extends('layouts.school') @section('title', 'Portal Account: ' . $teacher->full_name) @section('header', 'Portal Account — ' . $teacher->full_name) @section('content')
← Back to teacher profile
@if (session('account_password'))

Account created. Share these credentials securely:

{{ $teacher->user->email }}  /  {{ session('account_password') }}

@endif

Current Status

@if ($teacher->user)
Login email
{{ $teacher->user->email }}
Role
{{ $teacher->user->role->label() }}
Login enabled
{{ $teacher->user->is_active ? 'Yes' : 'No' }}
@csrf @method('PATCH')
Manage permissions Open teacher login
@csrf

Reset password

@else

This teacher has no portal account yet. Create a new one or connect an existing staff user.

@endif
@csrf

{{ $teacher->user ? 'Relink Account' : 'Create / Connect Account' }}

Mode
@error('email')

{{ $message }}

@enderror

If left empty, a secure password is generated and shown once after creation.

@endsection