<div class="row"> <div class="col-xs-12 col-sm-8 col-md-6"> <?php if(session()->has('profile_updated')): ?> <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <strong><?php echo e(session('profile_updated')); ?></strong> </div> <?php endif; ?> <?php echo $__env->make('includes.form_errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php echo Form::model($user, ['method'=>'patch', 'action'=>['ManageSettingsController@updateProfile'], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']); ?> <?php if($user->photo): ?> <div class="form-group"> <div class="has-error"> <div class="checkbox"> <label> <?php echo Form::checkbox('remove_photo'); ?> <strong><?php echo app('translator')->getFromJson('Remove Photo'); ?></strong> </label> </div> </div> </div> <?php endif; ?> <div class="form-group<?php echo e($errors->has('name') ? ' has-error' : ''); ?>"> <?php echo Form::label('name', __('Name:')); ?> <?php echo Form::text('name', null, ['class'=>'form-control', 'placeholder'=>__('Enter name'), 'required']); ?> </div> <div class="form-group<?php echo e($errors->has('username') ? ' has-error' : ''); ?>"> <?php echo Form::label('username', __('Username:')); ?> <?php echo Form::text('username', null, ['class'=>'form-control', 'placeholder'=>__('Enter username'), 'required']); ?> </div> <div class="form-group<?php echo e($errors->has('email') ? ' has-error' : ''); ?>"> <?php echo Form::label('email', __('Email:')); ?> <?php echo Form::email('email', null, ['class'=>'form-control', 'placeholder'=>__('Enter email'), 'required']); ?> </div> <div class="form-group<?php echo e($errors->has('password') ? ' has-error' : ''); ?>"> <?php echo Form::label('password', __('Password:')); ?> <?php echo Form::password('password', ['class'=>'form-control', 'placeholder'=>__('Enter password')]); ?> </div> <div class="form-group<?php echo e($errors->has('password') ? ' has-error' : ''); ?>"> <?php echo Form::label('password_confirmation', __('Confirm Password:')); ?> <?php echo Form::password('password_confirmation', ['class'=>'form-control', 'placeholder'=>__('Enter password again')]); ?> </div> <div class="form-group"> <?php echo Form::label('photo', __('Choose photo'), ['class'=>'btn btn-default btn-file']); ?> <?php echo Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']); ?> <span class='label label-info' id="upload-file-info"><?php echo app('translator')->getFromJson('No photo chosen'); ?></span> </div> <div class="form-group"> <?php echo Form::submit(__('Update Profile'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']); ?> </div> <?php echo Form::close(); ?> </div> </div>