<main>
        <!-- BREADCRUMB SECTION START -->
        <div class="ul-container">
            <div class="ul-breadcrumb">
                <h2 class="ul-breadcrumb-title"><?php echo ucfirst(str_replace("-"," ",$this->uri->segment(1)));?></h2>
                <div class="ul-breadcrumb-nav">
                    <a href="<?php echo base_url();?>"><i class="flaticon-home"></i> Home</a>
                    <i class="flaticon-arrow-point-to-right"></i>
                    <span class="current-page">Wishlist</span>
                </div>
            </div>
        </div>
        <!-- BREADCRUMB SECTION END -->

        <!-- MAIN CONTENT SECTION START -->
        <div class="ul-inner-page-container">
            <div class="ul-inner-products-wrapper">
                <div class="row ul-bs-row flex-column-reverse flex-md-row">
                    <!-- left side bar -->
                    <div class="col-lg-3 col-md-4">
                        <div class="ul-products-sidebar">
                            
                            <div class="ul-products-sidebar-widget ul-products-categories">
                                <h3 class="ul-products-sidebar-widget-title"><?php echo $cat->mcat_name;?></h3>

                                <div class="ul-products-categories-link">
                                <?php $cats=$this->db->get("mcategory")->result();
                                foreach($cats as $cat){?>
    <a href="<?php echo base_url().'shop/'.$cat->cat_slug;?>"><span><i class="flaticon-arrow-point-to-right"></i> <?php echo $cat->mcat_name;?></span></a>
                                    <?php }?>
                                </div>
                            </div>


                        </div>
                    </div>

                    <!-- right products container -->
                    <div class="col-lg-9 col-md-8">
                    <div class="row ul-bs-row row-cols-lg-3 row-cols-2 row-cols-xxs-1">
                            <!-- product card -->
                             <?php foreach($pros as $featp){?>
                            <div class="col" id="pid<?php echo $featp->pid;?>">
                            <div class="ul-product">
                                            <div class="ul-product-heading">
                                                <span class="ul-product-price">₹<?php echo $featp->oprice;?></span>
                                                
                                                <span class="ul-product-discount-tag">
                                                    <?php echo round(100-($featp->oprice*100/$featp->price));?>% Off</span>
                                            </div>
                                            <a href="<?php echo base_url().'product/'.$featp->prod_slug;?>" class="ul-product-img">
    <img src="<?php echo base_url().'assets/images/products/'.$featp->img;?>" alt="Product Image">

                                               
                             </a>

                                            <div class="ul-product-txt">
                                                <h4 class="ul-product-title"><a href="<?php echo base_url().'product/'.$featp->prod_slug;?>"><?php echo $featp->title;?></a></h4>
                                              
                                                <button type="button" class="btn btn-danger btn-sm float-end  end pull-right remove_wish" id="<?php echo $featp->pid;?>">REMOVE</button>
                                                <h5 class="ul-product-category"><a href="#"><?php echo $featp->mcat_name;?></a></h5></div>
                                        </div>
                            </div>
                            <?php }?>  
                    </div>  
                    </div>
                </div>
            </div>
        </div>
        <!-- MAIN CONTENT SECTION END -->
    </main>

    <script>
$(".remove_wish").click(function(e){e.preventDefault();
    var id=$(this).attr('id');
        $.ajax({
				 type: "POST",
				 url: '<?php echo base_url();?>home/remove_wishlist',
				 data: {pid:id},
				 success: function(response){
					 //alert(response);
                     $("#pid"+id).remove();
					 //$(".mini-cart__content").html(response);
					 //swal("Product Added to your Cart.");
				 }
			});
    });
        </script>