@extends('layouts.school') @section('title', 'Staff Profile') @section('header', 'Staff Management') @section('content') @php $sid = request()->route('schoolId'); $statusLabels = ['active' => 'Active', 'inactive' => 'Inactive', 'on_leave' => 'On Leave', 'suspended' => 'Suspended', 'resigned' => 'Resigned', 'retired' => 'Retired']; @endphp
{{ $member->designation?->name ?? '—' }} · {{ $member->category?->name }}
{{ $statusLabels[$member->status] ?? ucfirst($member->status) }}
{{ $attendanceStats['present_30d'] }}
Present
{{ $attendanceStats['absent_30d'] }}
Absent
{{ $attendanceStats['late_30d'] }}
Late
No attendance records yet.
@endifAccount: {{ $member->user->email }} · Role: {{ $member->user->role instanceof \App\Enums\UserRole ? $member->user->role->label() : ucfirst((string) $member->user->role) }} · {{ $member->user->is_active ? 'Enabled' : 'Disabled' }}
@elseNo portal account yet. Create one from the Portal Account page to give this member staff-login access.
@endif