{{ __('dashboard.Users') }}

{{ __('dashboard.People in this workspace and their access role.') }}

@if ($directoryHasUsers) {{ __('dashboard.CSV') }} @if ($canAdvancedExport) {{ __('dashboard.TSV') }} {{ __('dashboard.JSON') }} @endif @endif @allows('users.compose') @endallows
@if ($users->isEmpty())

{{ filled($search) ? __('dashboard.No results.') : __('dashboard.No users yet.') }}

@else {{ __('dashboard.Username') }} {{ __('dashboard.Email') }} {{ __('dashboard.Role') }} {{ __('dashboard.Pack') }} {{ __('dashboard.Status') }} {{ __('dashboard.Country') }} @foreach ($users as $user) @php $status = $user->statusEnum(); $statusColor = match ($status) { \App\Enums\UserStatus::Active => 'teal', \App\Enums\UserStatus::Invited => 'amber', \App\Enums\UserStatus::Disabled => 'red', }; $countryLabel = \App\Support\Geography\Countries::label($user->country); @endphp

{{ $user->name }}

@if (filled($user->username))

{{ $user->username }}

@endif
{{ $user->email }} {{ $user->accessRole?->title ?? __('dashboard.Unassigned') }} {{ $user->entitlement?->plan?->title ?? __('dashboard.Free') }} {{ $status->label() }} {{ $countryLabel ?: '—' }} @allows('users.revise') @endallows
@endforeach
@endif