
<table id="tech-companies-2" class="table table-small-font table-bordered table-striped">
  <thead>
    <tr>
      <th>Date Service</th>
      <th>Company Name</th>
      <th>Guest Name</th>
      <th>Driver Name</th>
      <th>Car Type</th>
      <th>Service Details</th>
      <th>Vocher Number</th>
      <th>Invoice Number</th>
      <th>Remark</th>
      <th>CreatedDate</th>
      <th>CreatedBy</th>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody align="center">
    <?php 
	foreach($sort as $v){										
		if($v['Status'] == 0){
			$font = 'style="background-color:#CCCCCC;"';	
		}else{
			$font = '';	
		}
	?>
    <tr <?php echo $font;?>>
      <td><?php echo date("Y-M-d", strtotime($v['Date']));?></td>
      <td><?php echo $v['Company'];?></td>
      <td><?php echo $v['GuestName'];?></td>
      <td><?php echo $v['DriverName'];?></td>
      <td><?php echo $v['CarType'];?></td>
      <td><?php echo $v['ServiceDetail'];?></td>
      <td><?php echo $v['VocherNumber'];?></td>
      <td><?php echo $v['InvoiceNumber'];?></td>
      <td><?php echo $v['Remark'];?></td>
      <td><?php echo date("Y-M-d", strtotime($v['CreatedDate']));?></td>
      <td><?php echo $v['fullname'];?></td>
      <?php if($v['Status'] == 1){?>
      <td><a href="<?php echo site_url('site/report/edit/'.$v['id']);?>">Edit</a></td>
      <td><a href="<?php echo site_url('site/report/delete/'.$v['id']);?>" style="color:red;" class="confirmation">Delete</a></td>
      <?php }?>
    </tr>
    <?php }?>
  </tbody>
</table>
<script type="text/javascript">
	$(document).ready(function() {
		$('#tech-companies-2').DataTable({
			"paging": true,
          	"lengthChange": true,
          	"searching": true,
          	"ordering": true,
          	"info": true,
          	"autoWidth": false	
		});
	});
</script>