<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#list" data-toggle="tab"><i class="entypo-menu"></i> 
					All Houses
                    	</a></li>
			
		</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
            <div class="tab-pane box active" id="list">
				
     


 <div class="panel panel-primary" data-collapsed="0">
 
<table id="example"  cellspacing="1" class="table  table" width="100%">
             <thead>
			
         <tr>
    
    <th>House Number </th>
	<th>Plot Name</th>
	<th>Type</th>
    <th>Status</th>         
	<th>Description</th> 
	<th>Date created</th> 
	<th>Update House</th> 
<th>Allocate</th> 

<th>Invoice</th> 
<th>Pay</th> 
                 </tr>
             </thead>
<?php
 if(!is_array($house)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='1'>";
    
       echo '<div class="alert alert-warning text-center">There is no House found by now from system..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($house as $c): 

		 

             ?>



             <tr>
                
            <?php 
		$id=$c->id;
		 $houseid=$c->id;
	$plotno=$c->plotno;
$houseno=$c->houseno;
?>

             <td><?php echo $c->houseno ; ?></td> 
			 	<td><?php echo $c->plotno ; ?></td> 
				<td><?php echo $c->type ; ?></td> 

					<td><?php echo $c->status ; ?></td> 

                 <td><?php echo $c->description ; ?></td>
                     <td><?php echo $c->createdat; ?></td>  

		   <td>
                     <a class="btn btn-primary" target="_blank" id="more" href="<?php echo base_url();?>admin/editroom?randomitemidentifier=<?php   {echo  $houseid;}  ?>">Vacant/Occupied  </a>
         </td>					 
                     <td>
                     <a class="btn btn-primary"  target="_blank" id="more" href="<?php echo base_url();?>admin/allocate?randomitemidentifier=<?php   {echo  $c->houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>">Allocate  </a>
  </td>
                  <td>
                     <a class="btn btn-primary"  target="_blank" id="more" href="<?php echo base_url();?>admin/invoice?randomitemidentifier=<?php   {echo  $houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>">Invoice  </a>
         </td>
		       <td>
                     <a class="btn btn-primary" target="_blank" id="more" href="<?php echo base_url();?>admin/housepayment?randomitemidentifier=<?php   {echo  $houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>">Pay  </a>
         </td> 
             </tr>

             <?php endforeach; ?>

              <?php }?>

        </table>


</div>

</div>
	
</div>




			