{{ __('accounts.create') }}
@forelse ($users as $user) @php $isSelf = $user->getKey() === $currentId; @endphp
$isSelf, 'border-line bg-inset text-ink-3' => ! $isSelf, ])>

{{ $user->name }}

@if ($isSelf) {{ __('accounts.you') }} @endif {{ $user->role->label() }}

{{ $user->email }}

@can('manage-users') {{-- Role selector. For self it is disabled: you cannot change your own role (and the last-admin guard would refuse a self-demotion anyway). The server-side confirmRoleChange + last-admin guard is the real protection. --}} @endcan @unless ($isSelf) {{ __('accounts.logout') }} {{ __('accounts.remove') }} @endunless
@empty

{{ __('accounts.none') }}

@endforelse