@lang('Profile Settings')
@if(session()->has('profile_updated'))
{{session('profile_updated')}}
@endif
@include('includes.form_errors')
{!! 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']) !!}
{!! 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')]) !!}
{!! Form::submit(__('Update Profile'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button', 'id'=>'update_btn']) !!}
{!! Form::close() !!}