      <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">Component</li>
          </ol>
        </section>
        
        <section class="content">
        	
           <div class="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url("admin/component/add");?>">ADD Component</a></h3>
             </div><!-- /.box-header -->
             <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Value</th>
                        <th>Car Type</th>
                        <th>Createby</th>
                        <th>Create date</th>
                        <th>Status</th>
                        <th></th>
                        <th></th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
					$i=0;
					foreach($component as $v)
					{
						/*if($v['detail']=="")
						{
							$detail="Sorry No Data Display";	
						}else{$detail=$v['detail'];}*/
					  $i++;
					  if($v['component_status']=="1"){$authorize = "Active";}
					  elseif($v['component_status']=="0"){$authorize="DisActive";}
					  else{$authorize="Null";};
					  
					  if($v['fullname']!=""){$car = $v['fullname'];}
					  else{$car = "Not Found";};
					 	echo'
						<tr>
						  <td>'.$i.'</td>
						  <td>'.$v['name'].'</td>
						  <td>'.$v['value'].'</td>
						  <td>'.$car.'</td>
						  <td>'.$v['username'].'</td>
						  <td>'.$v['componentdate'].'</td>
						  <td>'.$authorize.'</td>
						  <td><a href="'.site_url("admin/component/edit/".$v['component_id']."").'"><i class="fa fa-edit"></i></a></td>
						  <td><a href="'.site_url("admin/component/delete/".$v['component_id']."").'" class="confirmation"><i class="fa fa-remove"></i></a></td>
						</tr>
						';
					}
					?>
                      
                    </tbody>
                    <tfoot>
                      <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Value</th>
                        <th>Car Type</th>
                        <th>Createby</th>
                        <th>Create date</th>
                        <th>Status</th>
                        <th></th>
                        <th></th>
                      </tr>
                    </tfoot>
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
            	
        </section>
       </div>
       
       <?php if($msg = $this->session->flashdata("message")): ?>
	   <script>
       	alert("<?php echo $msg?>");
       </script>
       <?php endif; ?>