<?php $__env->startSection('content'); ?>
  <article class="content items-list-page">
                    <div class="title-search-block">
                
                        <div class="title-block">
                            <div class="row">
                                <div class="col-md-6">
                                    <h3 class="title">
                   <?php if(count($employees) > 0): ?>
				   <?php foreach($employees as $emp): ?>
					<?php echo e($emp->name); ?>

					<?php endforeach; ?>
					<?php endif; ?>	
					's Profile
                  
                </h3>
                                    <p class="title-description"> 
    
    
    <ul class='breadcrumb'>
        <li><a href="<?php echo e(URL('admin/dashboard')); ?>"><i class="fa fa-home"></i> Dashboard</a></li>
        <li><a href="<?php echo e(URL('admin/emp')); ?>"><i class="fa fa-user"></i> Employees</a></li>
        <li>Edit/View Profile</li>

    </ul>
</p>
                                </div>
                            </div>
                        </div>
                      
                        <?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>
<?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('/admin/emp/update')); ?>">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="id" value="<?php echo e($emp->id); ?>">
						
  <section class="section">
                        <div class="row sameheight-container">
                            <div class="col-md-3">
                                <div class="card card-block sameheight-item">
                                    
                                   
                                    	<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 />
Change <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 Profile</a> <br />
Change <input type="file" name="resume" value="" >
</div>
                                     
                                 
                                </div>
                            </div>
                            <div class="col-md-9">
                                <div class="card card-block sameheight-item">
                                    <div class="title-block">
                                        <h3 class="title">
						Personal Info
					</h3> </div>
                                   
	
		 <div class="form-group"> <label class="control-label">Employee Name*</label>
		 	
			
							
								<input type="text" class="form-control underlined" name="name" value="<?php echo e($emp->name); ?>">
							
						</div>
						<div class="form-group">
							<label class="control-label">Date of Birth*</label>
							
                            <div class='input-group date'>
<input type='text' class="form-control underlined" 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 class="form-group">	
							<label class="control-label">Father/Husband*</label>
							
								<input type="text" class="form-control underlined" name="father" value="<?php echo e($emp->father); ?>" >
							
						</div>
						<div class="form-group">	
							<label class="control-label">Mobile*</label>
							
								<input type="text" class="form-control underlined" name="mobile" value="<?php echo e($emp->mobile); ?>" >
							</div>
						
						<div class="form-group">	
							<label class="control-label">Email*</label>
							
								<input type="text" class="form-control underlined" name="email" value="<?php echo e($emp->email); ?>" >
							</div>
						
<div class="form-group">	
							<label class="control-label">Address*</label>
							
								<textarea name="address" class="form-control underlined"><?php echo e($emp->address); ?></textarea>
								
							</div>
						
											


<legend>Social Profiles</legend>						
						<div class="form-group">	
							<label class="control-label">Facebook*</label>
							
								<input type="text" class="form-control underlined" name="facebook" value="<?php echo e($emp->facebook); ?>" >
							</div>
						
						<div class="form-group">	
							<label class="control-label">Twitter*</label>
							
								<input type="text" class="form-control underlined" name="twitter" value="<?php echo e($emp->twitter); ?>" >
							</div>
						
						<div class="form-group">	
							<label class="control-label">Linkedin*</label>
							
								<input type="text" class="form-control underlined" name="linkedin" value="<?php echo e($emp->linkedin); ?>" >
							</div>
						
						<div class="form-group">	
							<label class="control-label">Github*</label>
							
								<input type="text" class="form-control underlined" name="github" value="<?php echo e($emp->github); ?>" >
							</div>
						


						
<legend>Job Details</legend>

						<div class="form-group">
							<label class="control-label">Date of Join*</label>
							
                            <div class='input-group date'>
<input type='text' class="form-control underlined" name="doj" 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 class="form-group">
							<label class="control-label">Posting*</label>
							
                            <select class="form-control underlined" name="posting">
                            	<option value="<?php echo e($emp->post_id); ?>" selected><?php echo e($emp->post->post); ?></option>
  <?php foreach($posts as $post): ?>
  <option value="<?php echo e($post->id); ?> "><?php echo e($post->post); ?></option>
  <?php endforeach; ?>
</select>
<!-- <p class="text-right">
<a href="<?php echo e(URL::to('admin/posting/create')); ?>">+ New Position</a>
</p> -->

							</div>
						
<div class="form-group">	
							<label class="control-label">Salary*</label>
							
								<input type="text" class="form-control underlined" name="salary" value="<?php echo e($emp->salary); ?>" >
							</div>
							
<div class="form-group">	
							<label class="control-label">Notes*</label>
							
								<input type="text" class="form-control underlined" name="notes" value="<?php echo e($emp->notes); ?>" >
							</div>
											
                        	


						<div class="form-group">
							
								<button type="submit" class="btn btn-primary">
								  Update
								</button>
							
						</div>
					</form>
<?php endforeach; ?>
<?php endif; ?>	
                                      
                                </div>
                            </div>
                        </div>
                    </section>

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