@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(($authMethod === 'ldap' || config('services.saml.enabled') === true) && 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('components.toggle-switch', [
'name' => 'send_invite',
'value' => old('send_invite', 'true') === 'true',
'label' => trans('settings.users_send_invite_option')
])
@endif
@endif