@if (session()->has('message'))
{{ session('message') }}
@endif
@if (session()->has('error'))
{{ session('error') }}
@endif
Staff List
Total Staff: {{ $staffAssociations->total() }}
|
Name
{!! $sortField === 'name' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!}
|
Email |
Phone |
Assigned Doctor |
Status
{!! $sortField === 'status' ? ($sortDirection === 'asc' ? '↑' : '↓') : '' !!}
|
|
@forelse ($staffAssociations as $association)
@php
$user = $association->staff;
$doctor = $association->doctor;
$profileImage = $user->staff?->profile_image;
@endphp
|
|
{{ $user->email }} |
{{ $user->phone_number ?? 'N/A' }} |
@if ($doctor)
@else
Not assigned
@endif
|
{{ ucfirst($association->status ?? 'Inactive') }}
|
|
@empty
| No staff members found. |
@endforelse