<style>
.control-label {  
  padding-top: 0 !important;
}
.prof_img {
  border: 1px solid #aaa;
  margin: 4px;
  padding: 2px;
  width: 150px;
}
</style>
<div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title">View Technician</div>                                
                            </div>
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.php?page=home">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="index.php?page=manage_technician">Technician</a>&nbsp;<i class="fa fa-angle-right"></i></li><li class="active">View Technician</li>
                            </ol>
                        </div>
                    </div>
<div class="row">
                        <div class="col-md-12 col-sm-12">
                            <div class="card card-box">
                                <div class="card-head">
                                    <header>View Technician</header>  
                                    <div style="float:right;">
	                                	<a class="btn btn-info" href="index.php?page=manage_technician">Back</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=add_technician&id=<?php echo $editId; ?>">Edit</a>&nbsp;
	                                	<a class="btn btn-info" target="_blank" href="index.php?page=technician_category&tech_id=<?php echo $editId; ?>">Category</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=technician_availability&tech_id=<?php echo $editId; ?>">Availability</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=tech_location&tech_id=<?php echo $editId; ?>">Location</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=manage_user_tasks&tech_id=<?php echo $editId; ?>">Tasks</a>&nbsp;
	                                	<?php if($isOperator){ ?>
	                                	<a target="_blank" class="btn btn-info" href="index.php?page=manage_technician&operator_id=<?php echo $editId; ?>">Sub Technicians</a>&nbsp;
	                                	<?php } ?>
	                                	<a class="btn btn-info" href="index.php?page=tech_accounts&id=<?php echo $editId; ?>">Accounts</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=tech_transactions&tech_id=<?php echo $editId; ?>">Transaction</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=tech_reviews&tech_id=<?php echo $editId; ?>">Reviews</a>&nbsp;
	                                	<!--<a class="btn btn-info" href="index.php?page=technician_transaction&tech_id=<?php echo $editId; ?>">Transaction</a>&nbsp;
	                                	<a class="btn btn-info" href="index.php?page=technician_reviews&tech_id=<?php echo $editId; ?>">Reviews</a>&nbsp;-->
	                                	<a target="_blank" class="btn btn-info" href="index.php?page=admin_login&action=tech_login&tech_id=<?php echo $editId; ?>">Login</a>&nbsp;
	                                </div>                                  
                                </div>
                                <div class="card-body" id="bar-parent1">
                                	
                                	<?php if(isset($error) && $error!='') { ?> 
                                	<div class="alert alert-danger"><?php echo $error; ?></div>
                                	<?php } ?>                                		
                                		                                      	                          	                                	
                                    <form action="" id="form_staff_add" class="form-horizontal" method="post">
                                    	<div class="form-body div-right">                                                                                    	
		                                        <div class="">
		                                        	<?php if(isset($resEdit['image1']) && $resEdit['image1']!=''){ ?>
		                                        		<img src="<?php echo TECH_IMG_URL.$resEdit['image1']; ?>" class="prof_img" >
		                                        	<?php } ?>
		                                        	<?php if(isset($resEdit['image2']) && $resEdit['image2']!=''){ ?>
		                                        		<img src="<?php echo TECH_IMG_URL.$resEdit['image2']; ?>" class="prof_img" >
		                                        	<?php } ?>
		                                        	<?php if(isset($resEdit['image3']) && $resEdit['image3']!=''){ ?>
		                                        		<img src="<?php echo TECH_IMG_URL.$resEdit['image3']; ?>" class="prof_img" >
		                                        	<?php } ?>		                                        	
		                                        </div>		                                    
                                        </div>
                                        <div class="form-body div-left">                                        	                                        	 
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Name</label>
                                                <div class="col-md-4">                                                    
                                                    <?php echo $resEdit['name'];?>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Type</label>
                                                <div class="col-md-4">                                                    
                                                    <?php if($resEdit['type']=='own'){ echo 'Own'; } else { echo 'Loop'; }?>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Operator</label>
                                                <div class="col-md-4">                                                    
                                                    <?php if($resEdit['operator']=='yes'){ echo 'Yes'; } else { echo 'No'; }?>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Email Address</label>
                                                <div class="col-md-4">                                                                                                                                                                   
                                                    <?php echo $resEdit['email'];?>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Phone Number</label>
                                                <div class="col-md-4">                                                    
                                                    <?php echo $resEdit['phone'];?>
                                                </div>
                                            </div>                                            
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">House Name</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['house_name'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Street</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['street'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Place</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['place'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Pin</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['pin'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">City</label>
                                                <div class="col-md-4">        
                                                	<?php echo getCityName($resEdit['city']);?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Mobile2</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['mobile2'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Bike & License</label>
                                                <div class="col-md-4">        
                                                	<?php echo ucfirst($resEdit['bike_license']);?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Smart Phone</label>
                                                <div class="col-md-4">        
                                                	<?php echo ucfirst($resEdit['smartphone']);?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Birth Year</label>
                                                <div class="col-md-4">        
                                                	<?php echo $resEdit['birth_year'];?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Licensed</label>
                                                <div class="col-md-4">        
                                                	<?php echo ucfirst($resEdit['licensed']);?>                                            
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Night Work</label>
                                                <div class="col-md-4">        
                                                	<?php echo ucfirst($resEdit['night_work']);?>                                            
                                                </div>
                                            </div>
                                            
                                            
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Added By / Date</label>
                                                <div class="col-md-4">                                                    
                                                    <?php echo getAdminUserName($resEdit['added_by']).' / '; getFormattedDate($resEdit['date']);?>   
                                                </div>
                                            </div>
                                            <?php if($resEdit['updated_by']>0){ ?>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Updated By / Date</label>
                                                <div class="col-md-4">                                                    
                                                    <?php echo getAdminUserName($resEdit['updated_by']).' / '; getFormattedDate($resEdit['updated_on']);?>   
                                                </div>
                                            </div> 
                                            <?php } ?> 
                                        </div> 
                                    </form>
                                </div>
                            </div>
                        </div>
                        
                        
                        <div class="col-md-12">
                            <div class="card card-topline-red">
                                <div class="card-head">
                                    <header>Payments</header>
                                    <div class="tools">                                        
	                                    <a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>
	                                    <a class="t-close btn-color fa fa-times" href="javascript:;"></a>
                                    </div>
                                </div> 
                                    <?php if(isset($execDetails) && mysqli_num_rows($execDetails)>0) { ?>
                                    <table class="table table-striped table-bordered table-hover table-checkable order-column" style="width: 100%" id="example4">
                                        <thead>
                                            <tr>                                                
                                                <th> S.No. </th>
                                                <th> Amount </th>
                                                <th> Date </th>
                                                <th> Added By </th>                                                                                           
                                                <th> Actions </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        	<?php
                                        	if(isset($_GET['p']) && is_numeric($_GET['p']) && ($_GET['p'] > 1)) {
												$slNo = ($_GET['p']*30-29);
											} else {
												$slNo = 1;
											}
												while($resDetails = mysqli_fetch_array($execDetails)) {	?>
                                            <tr class="odd gradeX">                                                
                                                <td><?php echo $slNo; ?></td>
                                                <td><?php echo $resDetails['amount']; ?></td>
                                                <td><?php echo getFormattedDateTime($resDetails['date']); ?></td>
                                                <td><?php echo getAdminUserName($resDetails['added_by']); ?></td>                                                                                                                                               
                                                <td class="valigntop">
                                                    <div class="btn-group">
                                                        <button class="btn btn-xs deepPink-bgcolor dropdown-toggle no-margin" type="button" data-toggle="dropdown" aria-expanded="false"> Actions
                                                            <i class="fa fa-angle-down"></i>
                                                        </button>
                                                        <ul class="dropdown-menu pull-left" role="menu">                                                        	
                                                            <!--<li>
                                                                <a  onclick="return confirm('Are you sure to delete this item?');" href="index.php?page=view_technician&action=delete_payment&del_id=<?php echo $resDetails['id']; ?>&p=<?php echo $p; ?>">
                                                                    <i class="icon-docs"></i> Delete </a>
                                                            </li> -->                                                          
                                                        </ul>
                                                    </div>
                                                </td>
                                            </tr>
                                            <?php ++$slNo; } ?>                                            
                                        </tbody>
                                    </table>
                                    <div style="float: left; width: 25%;"> <?php echo $pageNums; ?> </div>
                                    <?php } else { ?>
                                    	<div class="alert alert-danger">Sorry! No Results Found.</div>					        		
					        		<?php }	?> 
                                </div>
                         </div>
                        
                    </div>
	</div>
</div>
