<?php $__env->startSection('page_title'); ?>
  Profile
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header_title'); ?>
  Profile
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('profile')); ?>


<div class="row">
  <div class="col-sm-12">
    <div class="card card-profile">
        <div class="card-header" style="background-image: url(/graphics/building.png);"></div>
        <div class="card-body text-center">
          <img class="card-profile-img" src="<?php echo e(EF::getFile(Auth::user()->dp)); ?>">
          <h3 class="mb-3"><?php echo e(Auth::user()->name); ?></h3>

            <?php echo e(Form::open(array('route' => 'profile.update','id'=>'form_update_employee', 'cls_form', 'enctype' => 'multipart/form-data'))); ?>


          <div class="update-profile" style="text-align: left;">
          <div class="row">

            

          <div class="col-sm-6">
              <label class="label-color" >Name:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('full_name',":message")); ?></small>

            <div class="input-group mb-3">
            
              <?php echo e(Form::Text('full_name',Auth::user()->name, ['class' => 'form-control form-control-sm  cls_fullname', 'placeholder' => 'Full name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
           </div>

          <div class="col-sm-6">
              <label class="label-color" > Father Name:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('father_name',":message")); ?></small>

            <div class="input-group mb-3">
             
              <?php echo e(Form::Text('father_name',Auth::user()->fname, ['class' => 'form-control form-control-sm  cls_fullname', 'placeholder' => 'Father name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>

          <div class="col-sm-12">

              <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('gender',":message")); ?></small>
                  <label class="radio-inline mb-3" >
                            <label class="label-color" >Gender:</label>
                      <input type="radio" name="gender" value="Male" checked> Male
                </label>
                <label class="radio-inline">
                  <input type="radio" name="gender" value="Female"> Female
                </label>
 
            </div>

          <div class="col-sm-6">
                <label class="label-color" >CNIC:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('cnic',":message")); ?></small>
            <div class="input-group mb-3">
          
              <?php echo e(Form::Text('cnic',Auth::user()->cnic, ['class' => 'form-control form-control-sm  cls_cnic', 'data-mask' => '00000-0000000-0', 'data-mask-clearifnotmatch' => 'true' ,'placeholder' => '00000-0000000-0'  , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','readonly'=>'true'])); ?>

            </div>
          </div>

          <div class="col-sm-6">
              <label class="label-color" >Contact:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('contact',":message")); ?></small>

            <div class="input-group mb-3">
         
              <?php echo e(Form::Text('contact',Auth::user()->contact, ['class' => 'form-control form-control-sm  cls_contact', 'placeholder' => 'Contact no' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>

            <div class="col-sm-6">
                <label class="label-color" >Designation:</label>
            <small class="form-errors pull-right req" value=""><?php echo e($errors->first('designation',":message")); ?></small>

            <div class="input-group mb-3">
           
              <?php echo e(Form::Text('designation',Auth::user()->designation->name, ['class' => 'form-control form-control-sm  cls_fullname', 'placeholder' => 'Designation' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'readonly' => true])); ?>

            </div>
          </div>

          <div class="col-sm-6">
             <label class="label-color"> Email:</label>
          <small class="form-errors pull-right req" value=""><?php echo e($errors->first('email',":message")); ?></small>

          <div class="input-group mb-3">
            <?php echo e(Form::Email('email',Auth::user()->email, ['class' => 'form-control form-control-sm  cls_email', 'placeholder' => 'Email' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?> 

          </div>
        </div>


        <div class="col-sm-6">
             <label class="label-color"> Password:</label>
          <small class="form-errors pull-right req" value=""><?php echo e($errors->first('password',":message")); ?></small>

          <div class="input-group mb-3">
         
            <?php echo e(Form::Password('password', ['class' => 'form-control form-control-sm  cls_pass', 'placeholder' => 'Password [8 - 16 Length] ' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','autocomplete' => 'new-password'])); ?> 

          </div>
        </div>

        <div class="col-sm-6">
             <label class="label-color"> Confirm Password:</label>
          <small class="form-errors pull-right req" value=""><?php echo e($errors->first('confirm_password',":message")); ?></small>

          <div class="input-group mb-3">
         
            <?php echo e(Form::Password('confirm_password', ['class' => 'form-control form-control-sm  cls_conf_pass', 'placeholder' => 'Confirm Password [8 - 16 Length] ' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','autocomplete' => 'new-password'])); ?> 

          </div>
        </div>

        <div class="col-sm-12">
            <label class="label-color"> Image:</label>
          <small class="form-errors pull-right req" value=""><?php echo e($errors->first('user_image',":message")); ?></small>

            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="inputGroup-sizing-default">
                  <i class="fa fa-camera "></i>
                </span>
              </div>
              <input type="file" name="user_image" class="form-control form-control-sm btn-xsm">
             <div class="input-group-prepend">
                <span class="input-group-text" id="inputGroup-sizing-default">
                  <i class ="userimage" >PNG,JPG,JPEG</i>
                </span>
              </div>

            </div>
          </div>

          <div class="col-sm-9">
            
          </div>

          <div class="col-sm-3" style="text-align:right;">
            <button class=" btn-sm btn-primary cls_submit" content="update profile">Update Profile</button>
          </div>

          </div>
        </div>
            <?php echo e(Form::close()); ?>

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


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

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

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


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

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/user/user_profile.blade.php ENDPATH**/ ?>