@if($authMethod === 'system' && $user->system_name == 'public')

{{ trans('settings.users_system_public') }}

@endif
@if($authMethod === 'standard')

{{ trans('settings.users_details_desc') }}

@endif @if($authMethod === 'ldap' || $authMethod === 'system')

{{ trans('settings.users_details_desc_no_email') }}

@endif
@include('form.text', ['name' => 'name'])
@if($authMethod !== 'ldap' || userCan('users-manage')) @include('form.text', ['name' => 'email', 'disabled' => !userCan('users-manage')]) @endif
@if(in_array($authMethod, ['ldap', 'saml2', 'oidc']) && userCan('users-manage'))

{{ trans('settings.users_external_auth_id_desc') }}

@include('form.text', ['name' => 'external_auth_id'])
@endif @if(userCan('users-manage'))

{{ trans('settings.users_role_desc') }}

@include('form.role-checkboxes', ['name' => 'roles', 'roles' => $roles])
@endif @if($authMethod === 'standard')
@if(!isset($model))

{{ trans('settings.users_send_invite_text') }}

@include('form.toggle-switch', [ 'name' => 'send_invite', 'value' => old('send_invite', 'true') === 'true', 'label' => trans('settings.users_send_invite_option') ]) @endif

{{ trans('settings.users_password_desc') }}

@if(isset($model))

{{ trans('settings.users_password_warning') }}

@endif
@include('form.password', ['name' => 'password', 'autocomplete' => 'new-password'])
@include('form.password', ['name' => 'password-confirm'])
@endif