
<!--onLoad="window.print()"-->
<?php 
 $is_hand_over=0;
if($service_details->hand_over_status)
{
    $is_hand_over=1;

 } 
 ?>
 
 <?php 
$sale_id=0;
$sale_reference_no='';
//get sale id by sale id
$mod_sales=new Sales_Model();
$sale_des=$mod_sales->get_sale_info_by_sale_id($service_details->service_id);
//print_r($sale_des);
if(!empty($sale_des)){
	$sale_id=$sale_des['sale_id'];
}
$sale_reference_no=$sale_des['sale_reference_no'];
//echo "id:$sale_reference_no";
?>

<body >
	<?php $this->load->view("common/header"); ?>
	<style type="text/css">
.report_view_th{
	color:#000 !important;
	font-size:12px;	
}

.table-responsive td{

	background-color:#fff !important;
	vertical-align:top !important;	
}
h4{
	font-size:13px;
}
body{
	background-color:#fff !important;
		font-size:14px !important;

}

.body_text, td{
   	font-family:sans-serif  !important; 
   	font-size: 14px;
}
.print_header_tbl{
	font-size:5px;
	border:1px;	
}
.print_header_tbl td{
	padding-bottom:5px;
	border:1px;		
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  border-top: 1px solid #ddd;
  line-height: 1;
  padding: 3px;
  vertical-align: top;
}
input{
  margin-left: -16px !important;
  margin-top: -1px !important;
  position: fixed !important;
}
.accessories_header{
	border-bottom:1px solid #A0A0A4;
	margin-bottom:10px;
	font-weight:bold;
}
.accessories_header div{
font-size: 5px;
margin-left: -10px;
margin-right: -10px;
	
}
.logo_smart{
	margin-left:auto;
	margin-right:auto;
	width:280px;
}
.logo_smart_wap{
	text-align:center;
	
}
.site_log{
height: 40px;
margin-right: 2%;
}

.sepertor_div{
    width:100%;
    height:50px;
    background-color:gray;
    float:left;
}
td{
padding:1px;
vertical-align:top !important;
}
label {
    margin-bottom: 2px;
}
.service_table{
    border:1px solid #000;
    margin-top:3px;
}
.service_table td{
    border:1px solid #000;
    padding:2px;
    font-size:12px;
}
.service_table_wapper {
/*  background-color: red;*/
  min-height: 135px;
}
.boder_dev{
    border: 1px solid #A0A0A4;
    padding: 10px;
    border-radius:5px;
}
.selected_check_box{
  background-color: #000;
    width: 10px;
    height: 10px;
    float: left;
    margin: 5px 5px 5px 0px;
}

.nor_selected_check_box{
  border: 1px solid #000;
    width: 10px;
    height: 10px;
    float: left;
    margin: 5px 5px 5px 0px;
}
}

.sinhala-font{
    font-size:15px;
}

.item_wap{
    height:145px;
}
</style>

<?php
$print_txt='';
if($this->session->userdata('ss_user_id')==1 ){
    
    
}else {
    $print_txt="onLoad='window.print()'";
}
?>

<body <?php  //echo $print_txt; ?>>

<div class="">

         

         
            <div class="modal-body body_text" style="margin-top:-15px; padding-bottom:0">

 <!-- <div style="top:2px;" class="panel-tools open">
<button data-toggle="dropdown" class="btn btn-blue dropdown-toggle" onClick="window.print()">
<i class="fa fa-print"></i>
</button>
</div>
--> 
<div class="row">
<div class="col-xs-12">
    
 
<?php //$this->load->view("common/report_header"); ?>

 
 

   </div><!--col-xs-12-->
</div><!--row--> 
<div class="row">
<div class="col-xs-12 text-center">



  </div><!--col-xs-12-->
</div><!--row--> 
 

<div style="margin-bottom:5px; margin-top: 0px;" class="row">
  
  
  <div class="col-xs-8 pull-left" style="">
      <div class="logo_smart_wap_del text-left" style="">
<!--<img src="<?php echo base_url();?>thems/images/opsel-logo.png" width="150" class="">-->

 <img src="<?php echo base_url();?>thems/images/logo_s.png" width="75%" class="">
<!-- <h3> <?php echo $warehouse_details['name']; ?></h3> -->
<br/>
 <?php echo $warehouse_details['address']; ?><br>
<?php echo $warehouse_details['phone']; ?>  <!-- <br>
Email: <?php echo $warehouse_details['email']; ?> -->
<div style="height:15px"></div>


<table class="">
    
    <tr>
    <td >Job No.</td>
    <td > : &nbsp <?php echo $service_details->service_reference_no ?></td>
      <td width="20px"></td>
     <td>Model No. </td>
    <td> : &nbsp <?php echo $service_details->service_rep_item_name ?></td>
  </tr>
  
   <tr>
    <td><?php if($is_hand_over) echo "Service "; ?>Date</td>
    <td> : &nbsp <?php echo site_date_time($service_details->service_datetime) ?></td>
    <td></td>
    
    
    <td>IMEI No </td>
    <td> : &nbsp <?php echo $service_details->service_rep_item_sn ?></td>
  </tr>
  
  
    
    
 
  
  
  
  </table>

 <!-- <div class="col-xs-12 pull-left" style="">&nbsp</div> -->
 
 <!-- 
 <div class="boder_dev">
<table class="table-responsive">
  <tr>
    <td>Name of Customer</td>
    <td>  : &nbsp  <?php echo $service_details->cus_name; ?></td>
  </tr>
  
  <tr>
    <td>Contact No</td>
    <td> : &nbsp  <?php echo $service_details->cus_phone; ?></td>
  </tr>
  
     
</table>
</div>

-->

 <?php if(!$is_hand_over){ ?>
<div class="col-xs-12" style="padding-left: 0; margin-top: 2px;">
<label>
    <?php 
    $power_on_status='Yes';
    if(isset($service_details->no_power) && $service_details->no_power=='No Power'){
        $power_on_status='No';
    }
    ?>
    
   Phone Power On : <?php echo $service_details->power_on_status;?></label>
   
   
</div>

<div class="col-xs-12" style="padding-left: 0;">
   <!--  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service_warranty_available-->
    
    Warranty Status :  <?php  if($service_details->service_warranty_available){ echo "Avalable"; 
        echo "&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;  Purchase Date : 22 Aug 2019   &nbsp;&nbsp;&nbsp; ";
        }
        else {
    echo "Not Avalable";
    
    }
    ?> 
    </div>
<?php } ?>
</div>
     </div>
     
     <!-- 
     <div class="col-xs-3 pull-left" style="">
      <img src="<?php echo base_url();?>thems/images/print.png" width="100%" class="">
     </div> -->



<div class="col-xs-4 pull-right">
    
<div class="text-left"><h3 style="margin-bottom:0">
    <?php if($is_hand_over){ ?>
    INVOICE
    <?php } else { ?>
    JOB SHEET
    <?php } ?>
    
    </h3></div>  

<!-- 
<div class="text-left"><h4>Job No. : <?php echo $service_details->service_reference_no ?></h4></div>  -->

<div class="table-responsive">
     <div class="boder_dev_del">
<table class="">
    
   
   
  <?php
  //print_r($sale_details);
  
  if($sale_reference_no){ ?>
   <tr>
    <td>Invoice No.</td>
    <td> : &nbsp <?php echo $sale_reference_no ?></td>
  </tr>
  <?php } ?>
  
   <tr>
    <td>Date</td>
    <td> : &nbsp <?php echo site_date($sale_details['sale_datetime']) ?><?php //echo $sale_reference_no ?></td>
  </tr>
  
   
  <!-- 
   <tr>
    <td>IMEI No </td>
    <td> : &nbsp <?php echo $service_details->service_rep_item_sn ?></td>
  </tr>
    <tr>
    <td>Model No. </td>
    <td> : &nbsp <?php echo $service_details->service_rep_item_name ?></td>
  </tr>
  -->
  <tr>
    <td>Name of Customer</td>
    <td>  : &nbsp  <?php echo $service_details->cus_name; ?></td>
  </tr>
  
  <tr>
    <td>Contact No</td>
    <td> : &nbsp  <?php echo $service_details->cus_phone; ?></td>
  </tr>
  
  <tr>
    <td> Technician</td>
    <td>  : &nbsp  <?php //echo $service_details->cus_phone; ?></td>
  </tr> 
  
   
</table>
</div>
</div>
</div>

</div>     


 <!-- ..................-->
  
  

      <?php if($service_details->service_charge=='0.00'){?>
       <div class="col-xs-12">
      Fault
      </div>
      <?php } ?>
 
 
  <div class="col-xs-12"  style="padding-left: 0;">


 <?php if($service_details->service_charge=='0.00'){?>
 <?php if(isset($service_details->no_power) && $service_details->no_power=='No Power'){ ?>
<div class="col-xs-3">
<label>
    <?php if(isset($service_details->no_power)&& $service_details->no_power=='No Power'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->no_power)&& $service_details->no_power=='No Power'){echo 'checked';} ?> type="checkbox" class="radio" value="No Power" name="no_power" />--> No Power 
</label>
</div> 
<?php } ?>

<?php if(isset($service_details->auto_switch_off)&& $service_details->auto_switch_off=='Auto Switch off'){ ?>
<div class="col-xs-3">
<label>
    <?php if(isset($service_details->auto_switch_off)&& $service_details->auto_switch_off=='Auto Switch off'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->auto_switch_off)&& $service_details->auto_switch_off=='Auto Switch off'){echo 'checked';} ?> type="checkbox" class="radio" value="Auto Switch off" name="auto_switch_off" /> --> Auto Switch off
</label>
</div> 
<?php } ?>

<?php if(isset($service_details->drop)&& $service_details->drop=='Drop Damage N/P'){ ?>
<div class="col-xs-3">
<label>
    <?php if(isset($service_details->drop)&& $service_details->drop=='Drop Damage N/P'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->drop)&& $service_details->drop=='Drop Damage N/P'){echo 'checked';} ?> type="checkbox" class="checkbox" value="Drop Damage N/P" name="drop" /> -->Drop Damage N/P
</label>
</div> 
<?php } ?>

<?php if(isset($service_details->service_physical)&& $service_details->service_physical=='Physical Damage'){ ?>
<div class="col-xs-3">
<label>
     <?php if(isset($service_details->service_physical)&& $service_details->service_physical=='Physical Damage'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled  <?php if(isset($service_details->service_physical)&& $service_details->service_physical=='Physical Damage'){echo 'checked';} ?> type="checkbox" class="radio" value="Physical Damage" name="service_physical" /> -->Physical Damage</label>
</div> 
<?php } ?>

<?php if(isset($service_details->short)&& $service_details->water_damage=='Water Damage N/P') { ?>
<div class="col-xs-3">
<label>
     <?php if(isset($service_details->short)&& $service_details->water_damage=='Water Damage N/P'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->water_damage)&& $service_details->water_damage=='Water Damage N/P'){echo 'checked';} ?> type="checkbox" class="radio" value="Water Damage N/P" name="water_damage" /> -->Water Damage N/P
</label>
</div>
<?php } ?>

 <?php if(isset($service_details->speaker)&& $service_details->speaker=='Speaker') { ?>
<div class="col-xs-3">
<label>
     <?php if(isset($service_details->speaker)&& $service_details->speaker=='Speaker'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->speaker)&& $service_details->speaker=='Speaker'){echo 'checked';} ?> type="checkbox" class="radio" value="Speaker" name="speaker" /> -->Speaker
</label>
</div> 
<?php } ?>

<?php if(isset($service_details->short)&& $service_details->short=='Phone Short') { ?>
<div class="col-xs-3">
<label>
    <?php if(isset($service_details->short)&& $service_details->short=='Phone Short'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <i class="fa fa-square-o" aria-hidden="true"></i>
   <i class="fa fa-check-square" aria-hidden="true"></i> -->
   <!--  <input disabled <?php if(isset($service_details->short)&& $service_details->short=='Phone Short'){echo 'checked';} ?> type="checkbox" class="radio" value="Phone Short" name="short" /> --> Phone Short
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->service_burn)&& $service_details->service_burn=='Burn Marks'){ ?>
<div class="col-xs-3">

<label>
   <?php if(isset($service_details->service_burn)&& $service_details->service_burn=='Burn Marks'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?> 
  <!--   <input disabled  <?php if(isset($service_details->service_burn)&& $service_details->service_burn=='Burn Marks'){echo 'checked';} ?> type="checkbox" class="radio" value="Burn Marks" name="service_burn" />--> Burn Marks </label>
</div>  
<?php } ?>

 <?php if(isset($service_details->no_service)&& $service_details->no_service=='No Service'){?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->no_service)&& $service_details->no_service=='No Service'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->no_service)&& $service_details->no_service=='No Service'){echo 'checked';} ?> type="checkbox" class="radio" value="No Service" name="no_service" /> -->No Service
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->mic)&& $service_details->mic=='Mic'){?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->mic)&& $service_details->mic=='Mic'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!--  <input disabled <?php if(isset($service_details->mic)&& $service_details->mic=='Mic'){echo 'checked';} ?> type="checkbox" class="radio" value="Mic" name="mic" /> -->Mic
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->display)&& $service_details->display=='Display'){ ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->display)&& $service_details->display=='Display'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!-- <input disabled <?php if(isset($service_details->display)&& $service_details->display=='Display'){echo 'checked';} ?> type="checkbox" class="checkbox" value="Display" name="display" /> -->Display
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->service_scratch)&& $service_details->service_scratch=='Scratch Marks'){ ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->service_scratch)&& $service_details->service_scratch=='Scratch Marks'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
  <!--  <input disabled  <?php if(isset($service_details->service_scratch)&& $service_details->service_scratch=='Scratch Marks'){echo 'checked';} ?> type="checkbox" class="radio" value="Scratch Marks" name="service_scratch" /> -->Scratch Marks</label>
</div> 
<?php } ?>

<?php if(isset($service_details->service_drop)&& $service_details->service_drop=='Service Drop'){ ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->service_drop)&& $service_details->service_drop=='Service Drop'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
  <!-- <input disabled <?php if(isset($service_details->service_drop)&& $service_details->service_drop=='Service Drop'){echo 'checked';} ?> type="checkbox" class="radio" value="Service Drop" name="service_drop" /> -->Service Drop
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->ringer)&& $service_details->ringer=='Ringer') { ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->ringer)&& $service_details->ringer=='Ringer'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
 <!--   <input disabled <?php if(isset($service_details->ringer)&& $service_details->ringer=='Ringer'){echo 'checked';} ?> type="checkbox" class="radio" value="Ringer" name="ringer" /> --> Ringer
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->charging)&& $service_details->charging=='Charging') { ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->charging)&& $service_details->charging=='Charging'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
 <!--   <input disabled <?php if(isset($service_details->charging)&& $service_details->charging=='Charging'){echo 'checked';} ?> type="checkbox" class="radio" value="Charging" name="charging" /> --> Charging
</label>

</div> 
<?php } ?>

<?php if(isset($service_details->service_marks)&& $service_details->service_marks=='Marks on cover / desplay'){ ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->service_marks)&& $service_details->service_marks=='Marks on cover / desplay'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
 <!--   <input disabled  <?php if(isset($service_details->service_marks)&& $service_details->service_marks=='Marks on cover / desplay'){echo 'checked';} ?> type="checkbox" class="radio" value="Marks on cover / desplay" name="service_marks" /> --> Marks on cover / desplay</label>
</div> 
<?php } ?>


<?php if(isset($service_details->speaker)&& $service_details->speaker=='Speaker'){ ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->speaker)&& $service_details->speaker=='Speaker'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
   <!-- <input disabled <?php if(isset($service_details->phone_struck)&& $service_details->phone_struck=='Phone Struck'){echo 'checked';} ?> type="checkbox" class="radio" value="Phone Struck" name="phone_struck" /> -->Phone Struck
</label>

</div> 
<?php } ?>


<?php if(isset($service_details->lock)&& $service_details->lock=='Lock /Software') { ?>
<div class="col-xs-3">

<label>
    <?php if(isset($service_details->lock)&& $service_details->lock=='Lock /Software'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
  <!--  <input disabled <?php if(isset($service_details->lock)&& $service_details->lock=='Lock /Software'){echo 'checked';} ?> type="checkbox" class="radio" value="Lock /Software" name="lock" /> --> Lock /Software
</label>

</div> 
<?php } ?>

<!--<div class="col-xs-3">

<label>
    <input disabled <?php if(isset($service_details->other)&& $service_details->other=='Other'){echo 'checked';} ?> type="checkbox" class="radio" value="Other" name="other" />Other
</label>

</div>--> 










  <?php } ?>
  <!--..............-->














</div>  

</div> <!-- end fault -->

 <div style="float:left; width:100%; height:2px; clear:both;">&nbsp;</div>

<!--Start Accessories Attached-->
<div class="">


      
 <div class="col-xs-12">
     <?php if($service_details->service_charge=='0.00'){?>
     <div class="col-xs-12">
         
      Accessories / Items taken with phone
      </div>
      <?php } ?>
 
 	
     <?php if($service_details->service_charge=='0.00'){?>
     <!-- <div class="col-sm-12 accessories_header text-left">&nbsp</div> -->
 <!-- 	<div class="col-sm-12 accessories_header text-left">&nbsp</div>
   
   <p class="text-left">Accessories</p> -->
   
   <?php if(isset($service_details->aa_battery)&& $service_details->aa_battery=='Battery') { ?>
 	<div class="col-xs-3">
 	    
 	    <?php if(isset($service_details->aa_battery)&& $service_details->aa_battery=='Battery'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
  <!--  <input disabled <?php if(isset($service_details->aa_battery)&& $service_details->aa_battery=='Battery'){echo 'checked';} ?> type="checkbox" class="checkbox" value="Battery" name="aa_battery" /> -->Battery</label>
    </div>
    <?php } ?>
    
     <?php if(isset($service_details->aa_charger)&& $service_details->aa_charger=='Charger'){?>
    <div class="col-xs-3">
        <?php if(isset($service_details->aa_charger)&& $service_details->aa_charger=='Charger'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
    <!-- <input disabled <?php if(isset($service_details->aa_charger)&& $service_details->aa_charger=='Charger'){echo 'checked';} ?> type="checkbox" class="checkbox" value="Charger" name="aa_charger" />-->Charger</label>
    </div>
    <?php } ?>
    
    <?php if(isset($service_details->aa_back_cover)&& $service_details->aa_back_cover=='Back Cover') { ?>
    <div class="col-xs-3">
        <?php if(isset($service_details->aa_back_cover)&& $service_details->aa_back_cover=='Back Cover'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
    <!-- <input disabled <?php if(isset($service_details->aa_back_cover)&& $service_details->aa_back_cover=='Back Cover'){echo 'checked';} ?> type="checkbox" class="checkbox" value="Back Cover" name="aa_back_cover" />-->Back Cover</label>
    </div><?php } ?>
    
     <?php if(isset($service_details->aa_mem_card)&& $service_details->aa_mem_card=='Mem Card'){?>
    <div class="col-xs-3">
        <?php if(isset($service_details->aa_mem_card)&& $service_details->aa_mem_card=='Mem Card'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
     <!--<input disabled  <?php if(isset($service_details->aa_mem_card)&& $service_details->aa_mem_card=='Mem Card'){echo 'checked';} ?> type="checkbox" class="radio" value="Mem Card" name="aa_mem_card" />-->Mem Card</label>
    </div><?php } ?>
    
    <?php if(isset($service_details->aa_others)&& $service_details->aa_others=='Others'){?>
    <div class="col-xs-3">
        <?php if(isset($service_details->aa_others)&& $service_details->aa_others=='Others'){echo '<i class="fa fa-check-square" aria-hidden="true"></i>'; } else { echo ' <i class="fa fa-square-o" aria-hidden="true"></i>';} ?>
    <!-- <input disabled <?php if(isset($service_details->aa_others)&& $service_details->aa_others=='Others'){echo 'checked';} ?> type="checkbox" class="radio" value="Others" name="aa_others" /> -->
    Full Box</label>
    </div><?php } ?>
    
    <?php if(isset($service_details->aa_others)&& $service_details->aa_others=='Others'){?>
    <div class="col-xs-3">

<label>
    <input disabled  <?php if(isset($service_details->service_tempered)&& $service_details->service_tempered=='Tempered'){echo 'checked';} ?> type="checkbox" class="radio" value="Tempered" name="service_tempered" />Tempered</label>
</div> <?php } ?>

 

<!-- 
<div>
<br>
<div class="col-sm-12">&nbsp</div>

Description of repair : <?php echo $service_details->service_remark;?></div> -->

    <?php }?>
    <div class="col-sm-12" style="padding-left: 0; padding-right: 0;">
   
 <?php
  $sale_mod=new Sales_Model();
 
 if($service_details->service_charge!='0.00'){?>
 <div class="service_table_wapper">
   
   <div class="item_wap">  
 <table width="100%" class="service_table">
     <tr>
         <td width="40%" align="left"><strong>Description</strong></td>
         <td align="center"><strong>Serial No.</strong></td>
         <td align="center"><strong>Qty</strong></td>
         <td align="center"><strong>Charge</strong></td>
     </tr>
  <?php 
		//print_r($sale_item_list);
        $tmpcount=0;
		$Subtotal=0;
        foreach ($sale_item_list as $row)
        {?>    
     <tr>
         <td style="border-left:1px solid white;border-bottom:1px solid white; border-right: 1px solid white;"><?php echo $row['product_name'];
         if($row['product_w']) echo " <br/> Warranty: ".$row['product_w']. " Months";
         
         ?>
        
         
         
         </td>
         
         <td align="left" style="border-left:1px solid white; border-bottom:1px solid white; border-right: 1px solid white;">
              <?php 
 $sn_list=$sale_mod->get_sales_serial_by_id($sale_id,$row['id']);
 
 //print_r($sn_list);
if(!empty($sn_list)){
//echo " Serial No. ";
foreach ($sn_list as $sn) { 
echo "$sn->sis_number <br/> ";

}
}

?> 
             
         </td>
         <td align="right" style="border-left:1px solid white; border-bottom:1px solid white; border-right: 1px solid white;"><?php echo number_format($row['quantity'], 0, '.', ''); ?></td>
         <td align="right" style="border-left:1px solid white; border-bottom:1px solid white; border-right: 1px solid white;"><?php echo number_format($row['gross_total'], 2, '.', ',') ?></td>
     </tr>
     <?php }?>
     
     </table>
     </div>
     <table width="100%" class="service_table">
     <tr>
         <td width="60%" style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"></td>
         <td align="" style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"><strong>Net Total</strong></td>
         <td align="right" style="border-left:1px solid white; border-right: 1px solid white;"><strong><?php echo number_format($sale_total, 2, '.', ',') ?></strong></td>
     </tr>
     <tr style="display:none">
         <td width=""></td>
         <td align="right">
		 <?php //echo $service_details->service_remark;?>
         Paid Amount
         </td>
         <td valign="top" align="right"><?php //echo $service_details->service_charge;?>
         <?php
		// print_r($service_payments_list);
		 $tot=0;
		    foreach ($service_payments_list as $row){
				 $tot=$tot+$row->sale_pymnt_amount;
				?>
         <?php echo number_format($row->sale_pymnt_amount, 2, '.', ',') ?><br>

          <?php }?>
          
          
         </td>
     </tr>
     <tr>
          <td width="" style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"></td>
         <td align=""  style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"><strong>Total Paid</strong></td>
         <td align="right" style="border-left:1px solid white; border-right: 1px solid white;"><strong><?php echo number_format($tot, 2, '.', ',') ?></strong></td>
     </tr>
     <?php 
	 $balance_amount=$sale_total-$tot;
	 //if($balance_amount>0)
	 {
	 ?>
     <tr>
          <td width="" style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"></td>
         <td align=""  style="border-left:1px solid white;border-bottom:1px solid white; border-right:1px solid white;"><strong>Balance Amount</strong></td>
         <td align="right" style="border-left:1px solid white; border-right: 1px solid white;"><strong><?php echo number_format($balance_amount, 2, '.', ',') ?></strong></td>
     </tr>
     <?php }?>
 </table>
  </div>
 <?php }?>

    
   
 
    </div>
 
 </div>

</div>
<!--End Accessories Attached-->


<div class="">


<div class="" style="float:left; width:100%; clear:both">
    
    <?php if(!$is_hand_over){ ?>
   <div class="col-xs-12"> 
<div class="col-xs-12 pull-left boder_dev" style="margin-left:px; margin-right:px; margin-top:10px;">
Description of repair : <?php echo $service_details->service_remark;?>
</div>
</div>
<?php } ?>




<div class="col-xs-4 pull-left">
..................................<br>

Customer Signature <br>
</div>

<div class="col-xs-4 pull-left">
..................................<br>

Authorized Signature<br><br>
</div>



<div class="" style="float:left; width:100%; clear:both;"></div>

</div>

</div>
<div class="row">
<div style="width:100; float:left; height:1px; clear:both;">&nbsp; <br/></div>
<div class="col-sm-12" style="margin-top: 0px;">


<?php if(!$service_details->hand_over_status)
{?>
<p class="text-center" style="margin-bottom:0">
     <br/>
<strong>Important : </strong>Equipment could be collected only on Production of the <strong>"ORGINAL JOB SHEET"</strong> We shall not to be responsible for the mobile phones which have not been colected within 30 days. <br/> <span class="" style="font-size:17px">
මෙම බිල්පත දුරකථනය නැවත රැගෙන යාමෙදි අත්‍යවශ්‍ය බව කරුණාවෙන් සලකන්න. අළුත්වැඩියාව සඳහා ලබා දෙන දුරකථනවලට දින 30 කට පසු වගකියනු නොලැබේ. </span>
</p>
<?php }else {
?>
<div class="col-xs-12 text-center text-bold"><b>THANK YOU COME AGAIN</b></div>
<?php } ?>
</div>
</div>
<!-- 
 <div class="col-sm-12 text-center">
<img src="<?php echo base_url();?>thems/images/sm/samsung.png" height="20px" class="">
<img src="<?php echo base_url();?>thems/images/sm/nokia.png" width="" class="site_log">
<img src="<?php echo base_url();?>thems/images/sm/lg.png"  height="25px" class="">
<img src="<?php echo base_url();?>thems/images/sm/iphone.png" width="" class="site_log">
<img src="<?php echo base_url();?>thems/images/sm/htc.png" width="" class="site_log">
<img src="<?php echo base_url();?>thems/images/sm/opo.png" width="90px" class=""> &nbsp; &nbsp;
<img src="<?php echo base_url();?>thems/images/sm/huawei.png" width="65px" class="">
 </div>
    -->
<!--<div class="row">

<div class="col-xs-5 pull-right">
<div class="well-sm">
<p>
Created by:  <?php echo $this->session->userdata('ss_user_first_name'); ?> (<?php echo $this->session->userdata('ss_user_group_name'); ?>)</p> <p>
Date: <?php echo display_date_time_format(date("Y-m-d H:i:s")); ?> </p>
</div>
</div>-->
</div>

             
                 <!--/.col-md-12-->

</body>

