<!-- 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">Clients view</h3>                                    
                                </div>
                                <div class="box-body table-responsive">
                                  <a href="<?php echo site_url('aqadmin/add_clients');?>"><button class="btn btn-success btn-sm " type="button" value="Active" name="fname">Add</button></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo site_url('aqadmin/add_gallery');?>"><button class="btn btn-success btn-sm " type="button" value="Active" name="fname">Add Gallery</button></a><br><br>
									
                                    <table id="example1" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                                <th>SL no</th>
                                                <th>Client Name</th>
                                                <th>Client Logo</th>
                                                <th>Gallery</th>
                                                <th>Actions</th>
                                         
                                            </tr>
                                        </thead>
                                        <tbody>
											<?php 
										$i=1;
											foreach($clients as $client){ 
                                                if($client->client_logo == NULL || $client->client_logo == ""){
                                                            $src = base_url()."../uploads/client_logo/no_logo.png";
                                                        }
                                                        else{
                                                            $src = base_url()."../uploads/client_logo/thumbs/".$client->client_logo;
                                                        }
                                                
                                                ?>
                                            <tr>
                                                <td><?php echo $i;?></td>
                                                <td><?php echo $client->client_name;?></td>
                                                <td><img style="width:50px;" src="<?php echo $src; ?>"></td>
                                                <td><a href="<?php echo site_url('aqadmin/view_gallery?id='.$client->id);?>"><i class="fa fa-eye"></i></a>
                                                    
                                                </td>
                                                <td><a href="<?php echo site_url('aqadmin/edit_clients')."/".$client->id;?>"><i class="fa fa-pencil"></i></a>
                                                    <a href="<?php echo site_url('aqadmin/delete_client')."/".$client->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 -->
                     
                    

                    
                    
