<!-- 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">Testimonials view</h3>                                    
                                </div>
                                <div class="box-body table-responsive">
                                  <a href="<?php echo site_url('aqadmin/add_testimonials');?>"><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>Name</th>
                                                <!-- <th>Category(in Arabic)</th> -->
                                                <th>Location</th>
                                                <th>Testimonial</th>
                                                <th>Edit</th>
                                         
                                            </tr>
                                        </thead>
                                        <tbody>
											<?php 
										$i=1;
											foreach($testimonials as $testimonial){ ?>
                                            <tr>
                                                <td><?php echo $i;?></td>
                                                <td>
                                                    <?php 
                                                    if($testimonial->client_id==0)
                                                    {
                                                       echo $testimonial->name; 
                                                    }
                                                    else
                                                    {
                                                        $condn=array('id'=>$testimonial->client_id);
                                                        $client=$this->aqadmin_model->select_single('exp_clients',$condn);
                                                        echo $client->client_name;
                                                    }
                                                    ?></td>
                                                <!-- <td><?php echo $raw->b2b_category_ar;?></td> -->
                                                
                                                <td><?php echo $testimonial->location;?></td>
                                                
                                                <td><?php echo $testimonial->testimonial;?></td>
                                                
                                                <td><a href="<?php echo site_url('aqadmin/edit_testimonials')."/".$testimonial->id;?>">Edit</a></td>
                                            </tr>
                                      
                                      <?php  $i++;  } ?>
                                        </tbody>
                                       
                                    </table>
                                </div><!-- /.box-body -->
                                </div>
                        </div>
                    </div><!-- /.row -->

                    <!-- top row -->
                     
                    

                    
                    
