 <div id="carouselExampleCaptions111" class="carousel slide" data-bs-ride="carousel">
  
  <div class="carousel-inner">
    <?php
    $cnt=0;
    $carra1 = array();
    $carra2 = array();
    foreach($clients as $prow):
    
    $cnt+=1;
    if($cnt <= 6)
    {
      $carra1[] = $prow;
    } 

    else
    {
      $carra2[] = $prow;
    }
    endforeach;
    ?>
 
    <div class="carousel-item active">
      <div class="row">
             <?php foreach($carra1 as $pow):  ?>
                  <div class="col-6 col-md-2 col-lg-2">
                <div class="card" >
              <img src="<?php echo base_url();?>assets/uploads/clients/<?php echo $pow->c_id.'.jpg';?>" class="card-img-top" alt="..." style="height: 200px;">
            <!--  <div class="card-body overrelay"><a href="<?php echo $purl; ?>"><?php echo $pow->p_name;?></a></div>--> 
            </div>
                
              </div>
               
               <?php   endforeach;   ?>
             
            
              
              </div>
      
    </div>
  
 
    <div class="carousel-item">
       <div class="row">
             <?php foreach($carra2 as $pow):  ?>
                  <div class="col-6 col-md-2 col-lg-2">
                <div class="card" >
              <img src="<?php echo base_url();?>assets/uploads/clients/<?php echo $pow->c_id.'.jpg';?>" class="card-img-top" style="height: 200px;">
          <!--    <div class="card-body overrelay"><a href="<?php echo $purl; ?>"><?php echo $pow->p_name;?></a></div>-->
            </div>
                
              </div>
               
               <?php   endforeach;   ?>
             
            
              
              </div>
      
    </div>
  
 
     
  
  </div>

  <button class="carousel-control-prev top-prev" type="button" data-bs-target="#carouselExampleCaptions111" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next top-next" type="button" data-bs-target="#carouselExampleCaptions111" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>