<!-- Main content -->
                <section class="content">

                    <!-- Small boxes (Stat box) -->
                    <div class="row">
                     
                        <div class="col-md-12">
                        <div class="box">
                        <div class="box-header">
                                    <h3 class="box-title">Brands view</h3>                                    
                                </div>
                                <div class="box-body table-responsive">
                                  <a href="<?php echo site_url('aqadmin/add_brands');?>"><button class="btn btn-success btn-sm " type="button" value="Active" name="fname">Add</button></a><br><br>
									
                                    <table id="example1" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                                <th>SL no</th>
                                                <th>Brand Name</th>
                                                
                                                <th>Brand Logo</th>
                                                <th>Actions</th>
                                         
                                            </tr>
                                        </thead>
                                        <tbody>
											<?php 
										$i=1;
											foreach($brands as $brand){ 
                                                if($brand->brand_logo == NULL || $brand->brand_logo == ""){
                                                            $src = base_url()."../uploads/brand_logo/no_logo.png";
                                                        }
                                                        else{
                                                            $src = base_url()."../uploads/brand_logo/thumbs/".$brand->brand_logo;
                                                        }
                                                
                                                ?>
                                            <tr>
                                                <td><?php echo $i;?></td>
                                                <td><?php echo $brand->brand_name;?></td>
                                               
                                                
                                                <td><img style="width:50px;" src="<?php echo $src; ?>"></td>
                                                <td><a href="<?php echo site_url('aqadmin/edit_brands')."/".$brand->id;?>"><i class="fa fa-pencil"></i></a>
                                                    <a href="<?php echo site_url('aqadmin/delete_brand')."/".$brand->id;?>" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash-o delete-icon"></i></a>
                                                </td>
                                            </tr>
                                      
                                      <?php  $i++;  } ?>
                                        </tbody>
                                       
                                    </table>
                                </div><!-- /.box-body -->
                                </div>
                        </div>
                    </div><!-- /.row -->

                    <!-- top row -->
                     
                    

                    
                    
