@extends('layouts.simple') @section('body')
@include('settings.parts.navbar', ['selected' => 'users'])

{{ $user->id === user()->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}

id}") }}" method="post" enctype="multipart/form-data"> {!! csrf_field() !!}
@include('users.parts.form', ['model' => $user, 'authMethod' => $authMethod])

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

@include('form.image-picker', [ 'resizeHeight' => '512', 'resizeWidth' => '512', 'showRemove' => false, 'defaultImage' => url('/user_avatar.png'), 'currentImage' => $user->getAvatar(80), 'currentId' => $user->image_id, 'name' => 'profile_image', 'imageClass' => 'avatar large' ])
@include('users.parts.language-option-row', ['value' => old('language') ?? $user->getLocale()->appLocale()])

{{ 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(count($activeSocialDrivers) > 0)

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

@if(user()->id === $user->id) {{ trans('common.manage') }} @endif

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

@foreach($activeSocialDrivers as $driver => $driverName)
@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])

{{ $driverName }}

@if($user->hasSocialAccount($driver))

Connected

@else

Disconnected

@endif
@endforeach
@endif @if((user()->id === $user->id && userCan('access-api')) || userCan('users-manage')) @include('users.api-tokens.parts.list', ['user' => $user]) @endif
@stop