<!-- 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">Slider view</h3>                                    
                                </div>
                                <div class="box-body table-responsive">
                                 
									
                                    <table id="example1" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                                <th>SL no</th>
                                                <th>Slider Name</th>
                                                <th>Slider Image</th>
                                                <th>Main caption</th>
												<th>Sub caption</th>
                                                <th>Actions</th>
                                         
                                            </tr>
                                        </thead>
                                        <tbody>
											<?php 
										$i=1;
										    $sliders=$this->aqadmin_model->select('exp_slider','id','ASC');
											foreach($sliders as $slider){ 
                                                
                                                if($slider->slider_image == NULL || $slider->slider_image == ""){
                                                            $src2 = base_url()."../uploads/slider/no_image.png";
                                                        }
                                                        else{
                                                            $src2 = base_url()."../uploads/slider/".$slider->slider_image;
                                                        }
                                                ?>
                                            <tr>
                                                <td><?php echo $i;?></td>
                                                <td><?php echo $slider->slider_name;?></td>
                                                <td><img style="width:50px;" src="<?php echo $src2; ?>"></td>
                                                <td><?php echo $slider->main_caption;?></td>
                                                <td><?php echo $slider->sub_caption;?></td>
                                                <td>
												<a href="<?php echo site_url('aqadmin/edit_slider')."/".$slider->id;?>"><i class="fa fa-pencil"></i></a>
                                                <a href="<?php echo site_url('aqadmin/delete_slider')."/".$slider->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>
									 <a href="<?php echo site_url('aqadmin/add_slider');?>"><button class="btn btn-success btn-sm " type="button" value="Active" name="fname">Add</button></a><br><br>
                                </div><!-- /.box-body -->
                                </div>
                        </div>
                    </div><!-- /.row -->

                    <!-- top row -->
                     
                    

                    
                    
