@if (!$isLoaded)
Loading...

Loading staff...

@else

Staff Management Total Staff: {{ $staffAssociations->total() ?? 0 }}

@forelse ($staffAssociations as $association) @php $user = $association->staff; $doctor = $association->doctor; $profileImage = $user->staff?->profile_image; @endphp @empty @endforelse
Name {!! $sortField === 'name' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!} Email {!! $sortField === 'email' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!} Supervisor Status {!! $sortField === 'status' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!} Approval Status {!! $sortField === 'approval_status' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!}
{{ $user->email }} {{ $doctor ? $doctor->name : 'N/A' }} {{ ucfirst($association->status ?? 'Inactive') }}
{{ ucfirst($association->approval_status ?? 'Pending') }}
No staff found.
{{-- Pagination --}} @endif