{{ html()->modelForm($logged_in_user, 'POST', route('frontend.user.profile.update'))->class('form-horizontal update-on-ajax')->attribute('enctype', 'multipart/form-data')->open() }} @method('PATCH')
{{ html()->label('Upload Profile Picture')->for('avatar') }} {{-- {{ html()->file('avatar_location')->class('form-control') }} --}}
{{ html()->label(__('validation.attributes.frontend.first_name'))->for('first_name') }} {{ html()->text('first_name')->value($logged_in_user->first_name) ->class('text_input') ->placeholder(__('validation.attributes.frontend.first_name')) ->attribute('maxlength', 191) ->required() ->autofocus() }}
{{ html()->label(__('validation.attributes.frontend.last_name'))->for('last_name') }} {{ html()->text('last_name')->value($logged_in_user->last_name) ->class('text_input') ->placeholder(__('validation.attributes.frontend.last_name')) ->attribute('maxlength', 191) ->required() }}
@if ($logged_in_user->canChangeEmail())
@lang('strings.frontend.user.change_email_notice')
{{ html()->label(__('validation.attributes.frontend.email'))->for('email') }} {{ html()->email('email') ->class('text_input') ->placeholder(__('validation.attributes.frontend.email')) ->attribute('maxlength', 191) ->required() }}
@endif
{{ form_submit(__('labels.general.buttons.update'))->class('mt-3 my-1 quicky-btn-2 rounded-1 ')->id('update-on-ajax') }}
{{ html()->closeModelForm() }}