User Management

Quick Navigation

Patients Employees Agents My Logs

All Users

{{ $users->total() ?? 0 }} total users
{{ $item->name }}
{{ $item->email }}
@if($item->roles->isNotEmpty()) {{ $item->roles->first()->name }} @else No role @endif {{ ucfirst($item->status) }}
{{ $item->created_at->format('M j, Y') }}
{{ $item->created_at->format('g:i A') }}
View @if($item->hasAnyRole(['patient', 'employee', 'agent'])) Edit @php $canImpersonate = false; $currentUser = Auth::user(); // Staff can only impersonate patients, employees, and agents if ($currentUser->hasRole('staff') && $item->hasAnyRole(['patient', 'employee', 'agent'])) { $canImpersonate = true; } // Cannot impersonate yourself if ($currentUser->id === $item->id) { $canImpersonate = false; } @endphp @if ($canImpersonate) @endif @endif