@if(session()->has('profile_updated')) @endif @include('includes.form_errors') {!! Form::model($user, ['method'=>'patch', 'action'=>['ManageSettingsController@updateProfile'], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} @if($user->photo) Profile
@endif
{!! 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('mobile', __('Mobile:')) !!} {!! Form::text('mobile', null, ['class'=>'form-control', 'placeholder'=>__('Enter Mobile'), 'required'])!!}
{!! Form::label('email', __('Email:')) !!} {!! Form::email('email', null, ['class'=>'form-control', 'placeholder'=>__('Enter email'), 'required']) !!}
{!! Form::label('password', __('Password:')) !!} {!! Form::password('password', ['id' =>'profile-password', 'class'=>'form-control', 'placeholder'=>__('Enter password')]) !!}
{!! Form::label('password_confirmation', __('Confirm Password:')) !!} {!! Form::password('password_confirmation', ['id' =>'profile-retype-password', 'class'=>'form-control', 'placeholder'=>__('Enter password again')]) !!}
{!! Form::label('photo', __('Choose photo (100px*100px)'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!} @lang('No photo chosen')
{!! Form::submit(__('Update Profile'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}