{{ html()->modelForm($logged_in_user, 'POST', route('frontend.user.profile.update'))->attribute('enctype', 'multipart/form-data')->open() }} @method('PATCH')
{{ html()->label('Prefix')->for('prefix_lookup_id') }} {{ html()->select('prefix_lookup_id') ->class('form-control') ->options($prefix_lookup->pluck('text', 'id')) ->placeholder('Prefix') ->required()}}
{{ html()->label(__('validation.attributes.frontend.first_name'))->for('first_name') }} {{ html()->text('first_name') ->class('form-control') ->placeholder(__('validation.attributes.frontend.first_name')) ->attribute('maxlength', 191) ->required()}}
{{ html()->label(__('validation.attributes.frontend.last_name'))->for('last_name') }} {{ html()->text('last_name') ->class('form-control') ->placeholder(__('validation.attributes.frontend.last_name')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label('Phone')->for('phone') }} {{ html()->text('phone') ->class('form-control') ->placeholder('Phone number') ->attribute('maxlength', 11) ->attribute('type', 'tel')}}
{{ html()->label('Profile picture')->for('avatar') }}
{{ html()->label('Institution')->for('institution_lookup_id') }} {{ html()->select('institution_lookup_id') ->class('form-control') ->options($institution_lookup->pluck('text', 'id')) }}
{{ html()->label('Position')->for('position_lookup_id') }} {{ html()->select('position_lookup_id') ->class('form-control') ->options($position_lookup->pluck('text', 'id')) }}
{{ html()->label('Research focus')->for('research_focus_lookup_id[]') }} {{ html()->select('research_focus_lookup_id[]') ->class('form-control') ->attribute('multiple', 'multiple') ->options($research_lookup->pluck('text', 'id')) }}
{{ html()->label('Profile visibility')->for('public') }}
{!!form_submit('Update') !!}
{{ html()->closeModelForm() }}