<?php include "include/header.php"; ?>
<section class="sec-title text-white">
  <div class="container">

            <div class="row">
    <h2><?php echo $name; ?></h2>  
  </div>
</div>
  </section>


<section class="sec-service padding-70 " style="background: #eee">
          <div class="container">

            <div class="row">

              
              <?php foreach($subproducts as $prow):
                  $purl = base_url().'product/'.rm_blank($prow->p_name).'/'.base64_encode($prow->p_id);  
                 ?>
                              <div class="col-6 col-md-3 col-lg-3 mb-3">
                <div class="card">
                  <a href="<?php echo  $purl;  ?>">
              <img src="<?php echo base_url();?>assets/uploads/news/product_<?php echo $prow->p_id.'.jpg';?>" class="card-img-top" alt="<?php echo $prow->p_name; ?>" style="height: 230px;"></a>
              <div class="card-body">              
             
                  <p class="card-text text-center"><a href="<?php echo  $purl;  ?>"><?php echo $prow->p_name; ?></a></p>
              </div>
            </div>
                
              </div>
            <?php endforeach; ?>

                             
 
              

                            
            
             
                
              </div>
              
              
            </div>

            
            
          
        </section>









<?php include "include/footer.php"; ?>