@php $usesKeycloakIdentity = config('services.keycloak.enabled') && config('services.keycloak.login_only'); @endphp
@if($usesKeycloakIdentity) {{ __('Manage Users in Keycloak') }} @else @endif
{{ __('Name') }} {{ __('Email') }} {{ __('Role') }} {{ __('Organization') }} {{ __('Status') }} {{ __('Actions') }} @forelse(($users ?? collect()) as $userItem) @php $roleKey = \App\Support\WorkflowPermission::normalizeRole((string) ($userItem->role ?? 'user')); $organizationRaw = trim((string) ($userItem->organization_name ?? '')); $organizationLabel = $organizationRaw !== '' ? ($allOrganizationDisplayMap[$organizationRaw] ?? $organizationRaw) : '-'; $roleLabel = __($userRoleOptions[$roleKey] ?? ucwords(str_replace(['-', '_'], ' ', $roleKey))); $employeeCode = (string) $userItem->id; @endphp @php $isRemovedFromKeycloak = $usesKeycloakIdentity && $userItem->keycloak_deleted_at !== null; $userStatusKey = $isRemovedFromKeycloak ? 'removed' : (($userItem->is_active ?? true) ? 'active' : 'inactive'); @endphp

{{ $userItem->name }}

{{ $userItem->email }} {{ $organizationLabel }} @php $activeLabel = $isRemovedFromKeycloak ? 'Removed from Keycloak' : (($userItem->is_active ?? true) ? 'Active' : 'Inactive'); @endphp @empty {{ __('No users found.') }} @endforelse
{{-- Edit User Modal --}} {{-- Reset User Password Modal --}} {{-- Hidden form for toggle status --}} {{-- Hidden form for delete user --}}