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

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

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

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

@include('components.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' ])

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

@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'))

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

@if(userCan('access-api')) {{ trans('settings.users_api_tokens_create') }} @endif
@if (count($user->apiTokens) > 0) @foreach($user->apiTokens as $token) @endforeach
{{ trans('common.name') }} {{ trans('settings.users_api_tokens_expires') }}
{{ $token->name }}
{{ $token->token_id }}
{{ $token->expires_at->format('Y-m-d') ?? '' }} {{ trans('common.edit') }}
@else

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

@endif
@endif
@stop