@endif
@include('includes.form_errors')
@if(config('settings.phone_otp_verification'))
@if(!$user->mobile)
@lang('Please verify your phone number.')
{!! Form::open(['method'=>'post', 'action'=>'SendVerificationSMS@sendOtp', 'id'=>'send-otp-form']) !!}
{!! Form::submit(__('Click here to send verification code to your phone.'), ['class'=>'btn-primary btn-link', 'name'=>'submit_button', 'id'=>'send-otp-btn']) !!}
{{ Form::close() }}
{!! Form::model($user, ['method'=>'patch', 'action'=>['FrontSettingsController@updateProfile'], 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;', 'id'=>'update-profile-form']) !!}
{!! Form::label('name', __('Name:')) !!}
{!! Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter name'), 'required'])!!}
{!! Form::label('username', __('Username:')) !!}
{!! Form::text('username', null, ['class'=>'form-control', 'placeholder'=>__('Enter username'), 'required'])!!}
{!! Form::label('email', __('Email:')) !!}
{!! Form::email('email', null, ['class'=>'form-control', 'placeholder'=>__('Enter email'), 'required']) !!}
@if(config('settings.phone_otp_verification'))
{!! Form::label('phone-number','Phone Number:') !!}
@endif
{!! Form::label('password', __('Password:')) !!}
{!! Form::password('password', ['class'=>'form-control', 'placeholder'=>__('Enter password')]) !!}
{!! Form::label('password_confirmation', __('Confirm Password:')) !!}
{!! Form::password('password_confirmation', ['class'=>'form-control', 'placeholder'=>__('Enter password again')]) !!}
@lang('Update Profile')
{!! Form::close() !!}