<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <div class="row">

        <div class="col-md-10 col-md-offset-1">
            <h1>My Profile</h1>
    <ul class='breadcrumb'>
        <li><a href="<?php echo e(URL('admin/dashboard')); ?>">Home</a></li>
        <li><a href="#">Profile Tools</a></li>
        <li>View &amp; Update Profile</li>
    </ul>


            
                    <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br><br>
                            <ul>
                                <?php foreach($errors->all() as $error): ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>

                 <?php if(Session::has('message')): ?>
                        <div class="alert alert-success">
                            <strong>  <?php echo e(Session('message')); ?> </strong>
                        </div>
                    <?php endif; ?>


                     

<div class="panel panel-default">
                <div class="panel-body">
                  <?php if(count($employees) > 0): ?>
<?php foreach($employees as $emp): ?>

                    <form class="form-horizontal" role="form" enctype="multipart/form-data" method="POST" action="<?php echo e(url('/employee/profileupd')); ?>">
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                        <input type="hidden" name="id" value="<?php echo e($emp->id); ?>">
<legend>Personal Details</legend>
<div class="col-md-3" id="photo">
   
<div class="alert alert-default">
     <?php $rand=rand(1,1000);
        ?>
<img src="<?php echo e(asset('../uploads/photo/'.$emp->photo.'')); ?>?ver=<?php echo e($rand); ?>"  class="img-circle" />
<br /><br />
<input type="file" name="photo" value="" >
</div>
<div class="alert alert-default">
<a class="btn btn-primary" href="<?php echo e(URL::to('../uploads/resume/' . $emp->resume)); ?>" target="_blank"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Download </a> <br /><br />
<input type="file" name="resume" value="" >
</div>
</div>

    <div class="col-md-9">
                        <div class="form-group">
                            <label class="col-md-4 control-label">Employee Name*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="name" value="<?php echo e($emp->name); ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-4 control-label">Date of Birth*</label>
                            <div class="col-md-6">
                            <div class='input-group date'>
<input type='text' class="form-control" name="dob" id="date" data-provide="datepicker" value="<?php echo e($emp->dob); ?>" />
  <span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span></div>

                            </div>
                        </div>

                        <div class="form-group">    
                            <label class="col-md-4 control-label">Father/Husband*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="father" value="<?php echo e($emp->father); ?>" >
                            </div>
                        </div>
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Mobile*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="mobile" value="<?php echo e($emp->mobile); ?>" >
                            </div>
                        </div>
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Email*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="email" value="<?php echo e($emp->email); ?>" >
                            </div>
                        </div>
<div class="form-group">    
                            <label class="col-md-4 control-label">Address*</label>
                            <div class="col-md-6">
                                <textarea name="address" class="form-control"><?php echo e($emp->address); ?></textarea>
                                
                            </div>
                        </div>
                                            
</div>                      
<legend>Social Profiles</legend>                        
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Facebook*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="facebook" value="<?php echo e($emp->facebook); ?>" >
                            </div>
                        </div>
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Twitter*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="twitter" value="<?php echo e($emp->twitter); ?>" >
                            </div>
                        </div>
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Linkedin*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="linkedin" value="<?php echo e($emp->linkedin); ?>" >
                            </div>
                        </div>
                        <div class="form-group">    
                            <label class="col-md-4 control-label">Github*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="github" value="<?php echo e($emp->github); ?>" >
                            </div>
                        </div>

                        
                        
<legend>Job Details</legend>

                        <div class="form-group">
                            <label class="col-md-4 control-label">Date of Join*</label>
                            <div class="col-md-6">
                            <div class='input-group date'>
<input type='text'  readonly class="form-control" name="doj2" id="date2" data-provide="datepicker" value="<?php echo e($emp->doj); ?>" />
  <span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span></div>

                            </div>
                        </div>
                            
<div class="form-group">    
                            <label class="col-md-4 control-label">Salary*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="salary2" value="<?php echo e($emp->salary); ?>" 
                                readonly >
                                <input type="hidden" class="form-control" name="salary" value="<?php echo e($emp->salary); ?>" >
 <input type="hidden" class="form-control" name="doj" value="<?php echo e($emp->doj); ?>" >
 <input type="hidden" class="form-control" name="notes" value="<?php echo e($emp->notes); ?>" >
 <input type="hidden" class="form-control" name="posting" value="<?php echo e($emp->post_id); ?>" >
                            </div>
                        </div>  
<!--<div class="form-group">    
                            <label class="col-md-4 control-label">Notes*</label>
                            <div class="col-md-6">
                                <input type="text" class="form-control" name="notes2" value="<?php echo e($emp->notes); ?>" readonly >
                                
 
                            </div>
                        </div>                      -->
                            


                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="submit" class="btn btn-primary">
                                   Save Data
                                </button>
                            </div>
                        </div>
                    </form>
<?php endforeach; ?>
<?php endif; ?>                  
        </div>
    </div>
</div>


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



<?php echo $__env->make('Employee/app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>