@if (session()->has('message')) @endif @if (session()->has('error')) @endif

Staff List Total Staff: {{ $staffAssociations->total() }}

@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 Phone Assigned Doctor Status {!! $sortField === 'status' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!}
{{ $user->email }} {{ $user->phone_number ?? 'N/A' }} @if ($doctor) @else Not assigned @endif {{ ucfirst($association->status ?? 'Inactive') }}
No staff members found.