      <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">Brand</li>
          </ol>
        </section>
        
        <section class="content">
        	
           <div class="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url('admin/post/add')?>">Add Post</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>Date</th>
                        <th>Status</th>
                        <th>By</th>
                        <th>TotalView</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
					$i = 1;
					foreach($post as $v)
					{
						if($v['postStatus'] == "1"){$authorize = "Active";}
						elseif($v['postStatus'] == "0"){$authorize = "Not Active";}
						else{$authorize = "Null";};
										
						if($v['username']!==''||$v['username']!==NULL){$admin = $v['username'];}
						else{$admin = 'Administrator';}
									
						echo'<tr>
                               <td>'.$i.'</td>
							   <td><a href="'.site_url("admin/post/edit/".$v['postID']."").'"><i class="fa fa-edit"></i>Edit</a></td>
						  	   <td><a href="'.site_url("admin/post/delete/".$v['postID']."").'" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
                               <td>'.$v['postTitle'].'</td>
                               <td>'.$v['postSlug'].'</td>
                               <td class="center">'.$v['postDate'].'</td>
							   <td>'.$authorize.'</td>
							   <td class="center">'.$admin.'</td>
							   <td class="center">'.$v['postView'].'</td>
                               </tr>';				
						$i++;
					}
					?>            
                    </tbody>
                   
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
            	
        </section>
       </div>
       
