{!! Form::open(['url' => action([\App\Http\Controllers\UserController::class, 'updateProfile']), 'method' => 'post', 'id' => 'edit_user_profile_form', 'files' => true]) !!}

@lang('user.edit_profile')

{!! Form::label('surname', __('business.prefix') . ':') !!} @include('partials.name_prefix_field', ['name' => 'surname', 'value' => $user->surname])
{!! Form::label('first_name', __('business.first_name') . ':') !!} {!! Form::text('first_name', $user->first_name, ['class' => 'form-control', 'required']) !!}
{!! Form::label('last_name', __('business.last_name') . ':') !!} {!! Form::text('last_name', $user->last_name, ['class' => 'form-control']) !!}
{!! Form::label('email', __('business.email') . ':') !!} {!! Form::email('email', $user->email, ['class' => 'form-control']) !!}
{!! Form::label('language', __('business.language') . ':') !!} {!! Form::select('language', $languages, $user->language, ['class' => 'form-control select2']) !!}

@lang('lang_v1.profile_photo')

{!! Form::file('profile_photo', ['id' => 'profile_photo', 'accept' => 'image/*', 'class' => 'md-profile-upload__input']) !!}

@lang('lang_v1.more_info')

@include('user.form')
{!! Form::close() !!}