- @include('users.form', ['model' => $user, 'authMethod' => $authMethod])
+ @include('users.parts.form', ['model' => $user, 'authMethod' => $authMethod])
@@ -22,7 +20,7 @@
{{ trans('settings.users_avatar_desc') }}
- @include('components.image-picker', [
+ @include('form.image-picker', [
'resizeHeight' => '512',
'resizeWidth' => '512',
'showRemove' => false,
@@ -35,26 +33,11 @@
-
-
-
-
- {{ trans('settings.users_preferred_language_desc') }}
-
-
-
-
-
-
-
+ @include('users.parts.language-option-row', ['value' => setting()->getUser($user, 'language', config('app.default_locale'))])
-
{{ trans('common.cancel') }}
+
{{ trans('common.cancel') }}
@if($authMethod !== 'system')
id}/delete") }}" class="button outline">{{ trans('settings.users_delete') }}
@endif
@@ -63,7 +46,28 @@
- @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0)
+
+ {{ trans('settings.users_mfa') }}
+ {{ trans('settings.users_mfa_desc') }}
+
+
+ @if ($mfaMethods->count() > 0)
+ @icon('check-circle')
+ @else
+ @icon('cancel')
+ @endif
+ {{ trans_choice('settings.users_mfa_x_methods', $mfaMethods->count()) }}
+
+
+ @if($user->id === user()->id)
+
{{ trans('settings.users_mfa_configure') }}
+ @endif
+
+
+
+
+
+ @if(user()->id === $user->id && count($activeSocialDrivers) > 0)
{{ trans('settings.users_social_accounts') }}
{{ trans('settings.users_social_accounts_info') }}
@@ -74,8 +78,11 @@
@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])
@if($user->hasSocialAccount($driver))
-
{{ trans('settings.users_social_disconnect') }}
+
@else
{{ trans('settings.users_social_connect') }}
@@ -88,8 +95,8 @@
@endif
- @if(($currentUser->id === $user->id && userCan('access-api')) || userCan('users-manage'))
- @include('users.api-tokens.list', ['user' => $user])
+ @if((user()->id === $user->id && userCan('access-api')) || userCan('users-manage'))
+ @include('users.api-tokens.parts.list', ['user' => $user])
@endif