      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Channellimo
            <small>Preview</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Category</li>
          </ol>
        </section>
        
        <section class="content">
        	
           <div class="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url('admin/category/add')?>">Add Category</a></h3>
             </div><!-- /.box-header -->
             <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                         <th>ID</th>
                         <th></th>
                         <th></th>
                         <th>Title</th>
                         <th>Slug</th>
                   		 <th>Status</th>
                         <th>Date</th>                                       
                         <th>By</th>
                      </tr>
                    </thead>
                   <tbody>
                   <?php 
					$i = 1;
					foreach($category as $v)
					{
						if($v['catStatus'] == "1"){$authorize = "Active";}
						elseif($v['catStatus'] == "0"){$authorize = "Not Active";}
						else{$authorize = "Null";};
										
						if($v['username']!==''||$v['username'] !== NULL){$admin = $v['username'];}
						else{$admin = 'Administrator';}
									
						if($v['createddate'] ==''||$v['createddate'] == NULL){$mydate = 'No Data';}
						else{$mydate = $v['createddate'];}
										 
						echo'<tr>
                                 <td>'.$i.'</td>
								 <td><a href="'.site_url("admin/category/edit/".$v['catID']."").'"><i class="fa fa-edit"></i>Edit</a></td>
						  	     <td><a href="'.site_url("admin/category/delete/".$v['catID']."").'" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
                                 <td>'.$v['catTitle'].'</td>
                                 <td>'.$v['catSlug'].'</td>
								 <td>'.$authorize.'</td>
                                 <td>'.$mydate.'</td>
								 <td>'.$admin.'</td>
                             </tr>';			
							$i++;
						}
						?>         
                     </tbody>
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
            	
        </section>
       </div>
       
