@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['active' => 'green', 'on_leave' => 'amber', 'inactive' => 'slate']; $daysPresent = $timetableSlots->pluck('day_of_week')->unique()->sort()->values(); $timeBands = $timetableSlots->pluck('start_time')->map(fn ($t) => $t->format('H:i'))->unique()->sort()->values(); @endphp
@if($teacher->photo_path) {{ $teacher->fullName() }} @else @endif

{{ $teacher->fullName() }}

{{ $teacher->teacher_code }}

Back to list

Teacher Details

{{ str_replace('_', ' ', ucfirst($teacher->status)) }}
Designation
{{ $teacher->designation ?? '—' }}
Branch
{{ $teacher->branch->name }}
Department
{{ $teacher->department?->name ?? '—' }}
Joining Date
{{ $teacher->joining_date?->format('M j, Y') ?? '—' }}
Phone
{{ $teacher->phone ?? '—' }}
Email
{{ $teacher->email ?? '—' }}

Signature

@if($teacher->signature_path) {{ $teacher->fullName() }} signature @else

No signature uploaded yet. Add one from the Teachers list — used on class routines and other documents where this teacher signs as Class Teacher.

@endif @if($teacher->employee)

Linked Employee Record

{{ $teacher->employee->fullName() }} ({{ $teacher->employee->employee_code }}) — for payroll, leave, and HR records.

@endif

Class Teacher Of

@if($teacher->classTeacherSections->isEmpty())

Not assigned as class/homeroom teacher for any section.

@else
    @foreach($teacher->classTeacherSections as $section)
  • {{ $section->schoolClass->name }} - {{ $section->name }}
  • @endforeach
@endif
user) x-data="{ revealed: false, password: null, loading: false, reveal() { if (this.revealed) { this.revealed = false; return; } if (this.password) { this.revealed = true; return; } this.loading = true; fetch('{{ route('tenant.admin.teachers.reveal-password', $teacher) }}', { headers: { 'Accept': 'application/json' } }) .then(r => r.json()) .then(data => { this.password = data.password; this.revealed = true; this.loading = false; }) .catch(() => { this.loading = false; }); } }" @endif>

Login Access

@if($teacher->user && $teacher->user->is_active) Active @elseif($teacher->user) Deactivated @else No Login @endif
@if($teacher->user)
Email:
{{ $teacher->user->email }}
Password:
@csrf @method('PUT') @if($teacher->user->is_active) @else @endif
@else

This teacher doesn't have a portal login yet.

@endif

Salary & Payroll

@if(! $teacher->employee)

No linked employee record, so payroll isn't tracked for this teacher.

@else
Current Gross
{{ $teacher->employee->currentSalaryStructure ? \App\Support\Money::format($teacher->employee->currentSalaryStructure->grossCents(), $currency).'/mo' : '—' }}
Last Payslip
{{ $latestPayslip?->pay_period ?? '—' }}
@if($latestPayslip)
Status
{{ ucfirst($latestPayslip->status) }}
Net Pay
{{ \App\Support\Money::format($latestPayslip->net_cents, $currency) }}
@endif
View Full Payroll History → @endif

Weekly Timetable

@if(! $teacher->user_id)
This teacher doesn't have a portal login, so no classes can be assigned yet.
@elseif($timetableSlots->isEmpty() || $timetableEntries->isEmpty())
No classes scheduled for this teacher yet.
@else
@foreach($daysPresent as $day) @endforeach @foreach($timeBands as $band) @foreach($daysPresent as $day) @php $slot = $timetableSlots->first(fn($s) => $s->day_of_week === $day && $s->start_time->format('H:i') === $band); @endphp @endforeach @endforeach
Time{{ $days[$day] }}
{{ $band }} @if($slot) @foreach(($timetableEntries[$slot->day_of_week.'-'.$slot->id] ?? []) as $entry)

{{ $entry->courseOffering->subject->name }}

{{ $entry->courseOffering->section->label() }}

@endforeach @else — @endif
@endif

Attendance

@csrf @method('PUT') Governs this teacher's check-in/check-out late cutoff. Manage windows in HR & Payroll → Staff Shifts.
@if(! $teacher->user_id)
This teacher doesn't have a portal login, so self check-in isn't available.
@else @php $attendanceStatusColors = ['present' => 'green', 'late' => 'amber', 'absent' => 'red']; @endphp

{{ $weekStart->format('M j') }} – {{ $weekEnd->format('M j') }} · {{ $presentCount }}/{{ $workingDaysSoFar }} days present · {{ $weeklyPercentage }}%

@foreach(\Carbon\CarbonPeriod::create($weekStart, $weekEnd) as $day) @php $record = $weekRecords->get($day->toDateString()); @endphp @endforeach
Day Check In Check Out Status
{{ $day->format('D, M j') }} {{ $record?->check_in_at?->format('g:i A') ?? '—' }} @if($record?->checkInMapUrl()) @endif {{ $record?->check_out_at?->format('g:i A') ?? '—' }} @if($record?->checkOutMapUrl()) @endif @if($record) {{ $record->statusLabel() }} @elseif($day->lt(today())) Absent @else — @endif
{{ $month->format('F Y') }} {{ $monthPresentCount }} present {{ $monthLateCount }} late {{ $monthAbsentCount }} absent {{ $monthlyPercentage }}% attendance
@for($day = 1; $day <= $month->daysInMonth; $day++) @php $date = $month->copy()->day($day); @endphp @endfor @for($day = 1; $day <= $month->daysInMonth; $day++) @php $date = $month->copy()->day($day); $record = $monthRecords->get($date->toDateString()); $short = ['present' => 'P', 'late' => 'La', 'absent' => 'A'][$record->status ?? ''] ?? ($date->lt(today()) ? 'A' : '—'); @endphp @endfor
{{ $day }}
{{ $short }}
@endif
@csrf

Auto-generated as a unique institutional address. You can edit it if you prefer a different one.

@error('email')

{{ $message }}

@enderror

Grants the permissions that role carries. A random password will be generated and shown once — save it before leaving this page.

@error('role')

{{ $message }}

@enderror