

 
 <div class="row">
  
   	

   	<div class="col-md-12">
	
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
									                    

				View category/group
            	</div>
            </div>
			<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >				
	<?PHP


				echo $this->session->flashdata('msg'); 
								?>	
										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	
									
									
				<table class="tablesorter table table-bordered  table-hover" id="sortable_table">			

             <thead>
         <tr>
    
     <th>Name</th>
	     <th>Description</th>
<th>Status</th>	
 <th>Old Members</th>	 
		   <th>Current Members</th> 
	

                 </tr>
             </thead>
<?php
 if(!is_array($viewcategory)) {
				    echo '<div class="alert alert-danger text-center">There was no group found. Feel free to create various groups</div>';

			 }else{
 if(!is_array($viewcategory)) 

 {


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

		 

             ?>



             <tr>
                
            <?php 
$id=$c->id;


?>

              

  <td><?php echo $c->name ; ?></td>
    <td><?php echo $c->description ; ?></td>
	  <td><?php echo $c->status ; ?></td>
        <td>
                              <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/viewmembersbygrouping?randomitemidentifier=<?php   {echo  $id;}  ?>&needed=0">Old Group  </a>

		 </td>
   <td>
                              <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/viewmembersbygrouping?randomitemidentifier=<?php   {echo  $id;}  ?>&needed=1">Current Group  </a>

		 </td>
             </tr>

	<?php endforeach;} ?>

              <?php }?>

        </table>
	
									
									
									
					</div>	

								




					
									
									
							</div>		
									
							</div>
						</div>
				

			
			</div>
		</div>
  
  </div>
			
			
			
		
		
  

 
</div>


















