    <section class="section recent-part">
      <div class="container py-5">
         <div class="row">
            <div class="col-lg-12">
               <div class="section-heading">
                  <h2><?php if(isset($_GET["cid"])){$gett=mysqli_query($conn, "SELECT * FROM aalierp_catalogue WHERE catalogue_id='".$_GET["cid"]."'");$rec=mysqli_fetch_assoc($gett);echo "Products under ".$rec["catalogue_name"]; } ?></h2>
               </div>
            </div>
         </div>
         <div class="row row-cols-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-4">
            <?php $product_cat_query = mysqli_query($conn, "SELECT * FROM aalierp_product WHERE subcategory_id='".$_GET["cid"]."'");if(mysqli_num_rows($product_cat_query) > 0){
            while($row = mysqli_fetch_array($product_cat_query)){ ?>

                <div class="col">
                    <div class="product-card">
                        <div class="product-media">
                            <div class="product-label"><label class="label-text sale">Latest</label></div>
                            <a class="product-image" href="<?php echo $AaliLINK; ?>/product-detail?pid=<?php echo $row["product_id"]; ?>">
                                <img src="<?php echo $AaliSYS; ?>/uploads/products/<?php echo $row["product_image"]; ?>" alt="<?php echo $row["product_name"]; ?>">
                            </a>
                        </div>
                        <div class="product-content">
                            <h6 class="product-name"><a href="<?php echo $AaliLINK; ?>/product-detail?pid=<?php echo $row["product_id"]; ?>" style="text-transform: uppercase;"><?php echo $row["product_name"]; ?></a></h6>
                            <h6 class="product-price" style="float: right;font-weight: 700;"><span><?php echo $cur; ?><?php echo $row["product_price"]; ?></span></h6>
                            <a href="<?php echo $AaliLINK; ?>/product-detail?pid=<?php echo $row["product_id"]; ?>" style="background-color: #ED4B62;color: white;" class="product-add mb-1" title="View">
                                <i class="fas fa-clipboard"></i><span> Order Now</span>
                            </a>
                            <a href="#" pid="<?php echo $row["product_id"]; ?>" id="add_to_cart" style="background-color: #00A313;color: white;" class="product-add" title="Order By WhatsApp">
                                <i class="fas fa-whatsapp"></i><span> Order By WhatsApp</span>
                            </a>
                        </div>
                    </div>
                </div>

            <?php } }else{echo "No Product";} ?>
         </div>
    </div>
</section>