{{-- Filter & Actions Panel --}}

{{ __('Users') }}

{{ __('Manage user accounts, roles, and access control.') }}

{{ __('Reset') }}
{{-- Users Table Panel --}}

{{ __('User Directory') }}

{{ __('Showing') }} {{ $users->count() }} {{ __('of') }} {{ $users->total() }} {{ __('users.') }}

{{ __('Export') }}
{{-- List View --}}
@forelse($users as $user) {{-- Delete confirmation modal --}}
@csrf @method('DELETE')

{{ __('Delete') }} "{{ $user->name }}"?

{{ __('This user and') }} {{ __('all their data') }} {{ __('will be') }} {{ __('permanently deleted') }} {{ __('from the system. This action cannot be undone.') }}

@empty @endforelse
{{ __('User') }} {{ __('Status') }} {{ __('Workspaces') }} {{ __('Joined') }} {{ __('Actions') }}
{{ $user->initials }}
{{ $user->name }}

{{ $user->email }}

{{ $user->suspended_at ? 'Suspended' : ucfirst($user->status) }} {{ $user->workspaces_count ?? $user->workspaces()->count() }} {{ $user->created_at->format('M j, Y') }}
{{ __('View') }}
{{ __('No users found.') }}
{{-- Grid View --}}
@forelse($users as $user)
{{ $user->initials }}
{{ $user->name }}

{{ $user->email }}

{{ __('Status') }}

{{ $user->suspended_at ? 'Suspended' : ucfirst($user->status) }}

{{ __('Joined') }}

{{ $user->created_at->format('M j, Y') }}

{{ __('View') }}
@empty
{{ __('No users found.') }}
@endforelse
@if($users->hasPages())
{{ $users->withQueryString()->links() }}
@endif {{-- Impersonate Confirmation Modal (inside x-data scope so :action binding works) --}}
@csrf

{{ __('Impersonate User') }}

{{ __('You are about to log in as') }} . {{ __('Enter your admin password to confirm.') }}

@error('confirm_password')

{{ $message }}

@enderror
{{-- Import Modal --}}
@csrf

{{ __('Import Users') }}

{{ __('Upload a CSV file that matches the provided template.') }}

{{-- Bulk Delete Modal --}}
@csrf

{{ __('Delete selected users?') }}

{{ __('You are about to') }} {{ __('permanently delete') }} {{ __('the selected user(s). This action cannot be undone.') }}