@extends('layouts.app') @section('title', __('profile.edit_profile')) @section('page_heading', __('profile.edit_profile')) @section('content')
{{ __('profile.security_settings') }}
@include('layouts.partials.workspace-page-styles') @php $currentEmailValue = old('email', $user->email); $showCurrentPasswordField = $currentEmailValue !== $user->email || $errors->has('current_password'); @endphp
{{-- Avatar app-card --}}
@if($user->avatar) {{ $user->name }} @else
@endif
{{ $user->name }}
{{ $user->email }}
{{ __('profile.email_two_factor') }}: {{ $user->two_factor_email_enabled ? __('profile.enabled') : __('profile.disabled') }} {{ __('profile.google_authenticator') }}: {{ $user->two_factor_app_enabled ? __('profile.enabled') : __('profile.disabled') }}
{{ __('profile.security_settings') }}
{{-- Edit form --}}

{{ __('profile.profile_information') }}

{{ __('profile.profile_edit_form_text') }}

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
{{ __('profile.email_change_password_hint') }}
@error('email')
{{ $message }}
@enderror
{{ __('profile.current_password_for_email_only') }}
@error('current_password')
{{ $message }}
@enderror
{{ __('profile.profile_avatar_hint') }}
@error('avatar')
{{ $message }}
@enderror
{{ __('dashboard.Cancel') }}
@endsection @section('scripts') @endsection