@extends('users.account.layout') @section('main')
{{ method_field('put') }} {{ csrf_field() }}

{{ trans('preferences.profile') }}

{{ trans('preferences.profile_view_public') }}

{{ trans('preferences.profile_desc') }}

{{ trans('preferences.profile_name_desc') }}

@include('form.text', ['name' => 'name'])

{{ trans('preferences.profile_email_desc') }}

@include('form.text', ['name' => 'email', 'disabled' => !userCan('users-manage')])
@if(!userCan('users-manage'))

{{ trans('preferences.profile_email_no_permission') }}

@endif

{{ trans('preferences.profile_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('preferences.delete_account') }}
@if(userCan('users-manage'))

{{ trans('preferences.profile_admin_options') }}

{{ trans('preferences.profile_admin_options_desc') }}

@endif @stop