@if ($search) @endif
@if ($search || ($statusFilter !== null && $statusFilter !== '') || !empty($roleFilter)) @endif
User Profile ID Roles Status Created At Actions @forelse($users as $user)
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }}
{{ $user->email }}
{{ $user->profile_id ?? 'N/A' }}
@forelse($user->roles as $role) {{ str_replace('_', ' ', $role->name) }} @empty No role @endforelse
{{ $user->created_at?->format('M d, Y') ?? 'N/A' }}
{{ $user->created_at?->diffForHumans() ?? '' }}
@empty
No users found

No records match your search criteria. Try modifying your search term or clearing the active filters.

@endforelse
@if($userId) @else @endif

{{ $userId ? 'Edit User' : 'Create New User' }}

@if($userId && $profileId) {{ $profileId }} @endif

{{ $userId ? 'Update profile information and role permissions' : 'Add a new user with credentials and role assignment' }}

Account Status User will be able to log in when active