- @if(isset($activeSocialDrivers['google']))
-
-
+
+ @include('users.form', ['model' => $user, 'authMethod' => $authMethod])
+
+
+
+
+
{{ trans('settings.users_avatar_desc') }}
+
- @if($user->hasSocialAccount('google'))
-
Disconnect Account
- @else
-
Attach Account
- @endif
+ @include('components.image-picker', [
+ 'resizeHeight' => '512',
+ 'resizeWidth' => '512',
+ 'showRemove' => false,
+ 'defaultImage' => url('/http/source.bookstackapp.com/user_avatar.png'),
+ 'currentImage' => $user->getAvatar(80),
+ 'currentId' => $user->image_id,
+ 'name' => 'profile_image',
+ 'imageClass' => 'avatar large'
+ ])
- @endif
- @if(isset($activeSocialDrivers['github']))
-
-
+
+
+
+
+
+ {{ trans('settings.users_preferred_language_desc') }}
+
+
- @if($user->hasSocialAccount('github'))
-
Disconnect Account
- @else
-
Attach Account
- @endif
+
- @endif
-
- @endif
+
+
+
+
+
+ @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0)
+
+ {{ trans('settings.users_social_accounts') }}
+ {{ trans('settings.users_social_accounts_info') }}
+
+
+ @foreach($activeSocialDrivers as $driver => $enabled)
+
+
@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])
+
+
+ @endforeach
+
+
+
+ @endif
+
+ @if(($currentUser->id === $user->id && userCan('access-api')) || userCan('users-manage'))
+ @include('users.api-tokens.list', ['user' => $user])
+ @endif