<?php  $this->load->view('top'); 
$gal= $this->db->query("SELECT * from wps_gallery")->result_array(); 
?>
<div class="clearfix"></div>
 
<section class="banner_category" style="background-image: url('https://www.webpulse.co/life-opto/assets/designer/themes/default/images/listing/listing-banner2.jpg');">
		<div class="container">
			<h1 class="banner_title">Clientele</h1>
		</div>
	</section>
<div class="page_breadcrumbs">
		<div class="container">
			<ul>
            <li><a href="<?php echo site_url();?>" title="Home">Home</a></li>
            <li>Clientele</li>
			</ul>
		</div>
	</div>


         <section class="wps_home_about about_page">
            <div class="container">
                <h1 class=" wow zoomIn" data-wow-duration="1s">Clientele</h1>
                <div class="row">
                  <?php 
                       foreach ($our_achievements as $key => $subval) { ?>
                  <div class="col-lg-2 col-md-3 col-sm-6 col-xs-6 projet-item text-center">
                     <!--  <div class="portfolio_block">
                        <a href="<?php echo get_image_with_name($subval['gallery_name'], 'gallery', $subval['gallery_image'], '', '', 'R'); ?>" data-fancybox="gallery" title="<?php echo $subval['gallery_name'];?>">
                            <div class="image-box">
                                <figure class="image">
                                    <img src="<?php echo get_image_with_name($subval['gallery_name'], 'gallery', $subval['gallery_image'], '370', '280', 'R'); ?>" alt="<?php echo $subval['gallery_name'];?>" title="<?php echo $subval['gallery_name'];?>">
                                </figure>
                                <div class="overlay">
                                    <span class="fa fa-expand"></span>
                                    <div class="title-box">
                                        <h5><?php echo $subval['gallery_name'];?></h5>
                                    </div>
                                </div>
                            </div>
                        </a>
                        </div>-->
                      <a class="btn-detail" href="javascript:void(0);" title="">
                          <img src="<?php echo theme_url();?>images/logo.png" alt="" title=""/>                        
                    </a>
                    </div>
                    <?php } ?>
             
                    
                </div>

</div>

        </section>

<!-- <section class="photo_gallery">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="listing_right_1">
<h1 class="text-center">Photo Gallery</h1>

<div class="photo">
    <ul class="nav nav-tabs photo_navigation">
        <?php $i=1;
        foreach($gallery_category as $galCat){ ?>
        <li class="<?= ($i=='1')?'active':'';?>"><a href="#<?php echo $galCat['friendly_url'];?>" data-toggle="tab"><?php echo $galCat['name'];?></a></li>
      <?php $i++;}?>  
    </ul>

    <div class="panel-body">
        <div class="tab-content">
     <?php $i=1;
        foreach($gallery_category as $galCat){ ?>
            <div class="tab-pane fade in <?= ($i=='1')?'active':'';?>" id="<?php echo $galCat['friendly_url'];?>">
                <div class="photo_row">
                    <ul class="grid effect-2" id="grid">
                        <?php $sub_cat = $this->db->query("SELECT * from wps_gallery_category where parent_id='$galCat[category_id]'")->result_array();
                        if(count($sub_cat)>0){
                            foreach ($sub_cat as $key => $subval) {
                                echo '<h3 class="heading_three">'.$subval['name'].'</h3><hr class="line_1"/>';
                                ?>
                                <div class="row">
                                    <?php  $gal_image= $this->db->query("SELECT * from wps_gallery where gallery_parent_id='$subval[category_id]'")->result_array();
                            foreach ($gal_image as $val) { ?>
                        <li>
                            <div class="f-box2">
                                <div class="gallery_item">
                                    <a class="hover_effect h_yellow" data-fancybox="photo-gallery" href="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '', '', 'R'); ?>" tabindex="-1" title="<?php echo $val['gallery_name']; ?>">
                                        <img src="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '363', '272', 'R'); ?>" alt="<?php echo $val['gallery_name']; ?>" title="<?php echo $val['gallery_name']; ?>">
                                    </a>
                                </div>
                            </div>
                        </li>
                        <?php } ?>
                        </div>
                       <?php }
                        }else{
                            $gal_image= $this->db->query("SELECT * from wps_gallery where gallery_parent_id='$galCat[category_id]'")->result_array();
                            foreach ($gal_image as $val) { ?>
                        <li>
                            <div class="f-box2">
                                <div class="gallery_item">
                                    <a class="hover_effect h_yellow" data-fancybox="photo-gallery" href="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '', '', 'R'); ?>" tabindex="-1" title="<?php echo $val['gallery_name']; ?>">
                                        <img src="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '363', '272', 'R'); ?>" alt="<?php echo $val['gallery_name']; ?>" title="<?php echo $val['gallery_name']; ?>">
                                    </a>
                                </div>
                            </div>
                        </li>
                        <?php } ?>
                       <?php } ?>
                        
                    </ul>
                </div>
            </div>
            
           <?php $i++;}?>    
        </div>
    </div>
</div>
            
				
</div>
</div>
</div>

</div>
</section> -->


<?php $this->load->view('bottom'); ?>
