
<?php $__env->startSection('title'); ?>
Admin | profile edit
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extra_css'); ?>

<style type="text/css">
  
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extra_js'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
 
  <div class="container-fluid">
    <div class="row justify-content-center">
      <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      <div class="col-lg-6">
        <div class="card">
          <div class="card-header"><h4 class="m-0 font-weight-bold text-center text-primary">Profile Edit</h4></div>          
          <div class="card-body">
            <form role="form" method="post" action="<?php echo e(route('user.profile.update',['id'=>$user->id])); ?>" enctype="multipart/form-data">
              <?php echo csrf_field(); ?>
              <div class="form-group">
                <label for="name">Name <span class="text-danger">*</span></label>
                  <input  class=" form-control" name="name" value="<?php echo e($user->name); ?>" placeholder="Name" type="text" autocomplete="off" required>
                  <span class="text-danger"><?php echo e($errors->has('name') ? $errors->first('name'):''); ?></span>
              </div>

              <div class="form-group">
                <label for="email">Email <span class="text-danger">*</span></label>
                  <input class="form-control" type="email" name="email" value="<?php echo e($user->email); ?>" placeholder="Email" autocomplete="off">
                <span class="text-danger"><?php echo e($errors->has('email') ? $errors->first('email'):''); ?></span>
              </div>

              <div class="form-group">
                <label for="photo">Photo <small>(200x200)</small></label>
                <div class="custom-file">
                    <input type="file" class="custom-file-input profile-img-input"  id="photo" name="photo">
                    <label class="custom-file-label" for="customFile">Choose file</label>
                </div>
                <span class="text-danger"><?php echo e($errors->has('photo') ? $errors->first('photo'):''); ?></span>
                <div class="pt-1" id="profileLabel" for="photo">
                    <img class="profileImgShow" src="<?php echo e($user->photo? asset('/profile/'.$user->photo) : asset('defaults/avatar01.png')); ?>">
                </div>
            </div>

              <button type="submit" class="float-right btn btn-primary">Save</button>
            </form>
          </div>
        </div>
      </div> <!--col-5-->
    </div>  
  </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hotelier/public_html/resources/views/back/user/profile_edit.blade.php ENDPATH**/ ?>