<?php
header("Vary: User-Agent");
?>
<!-- header top start -->
<?php include('header_top.php');?>
<!-- header top end -->
<?php 
$query_meta = "SELECT * FROM meta_data WHERE meta_name='static_home'";
$res = mysqli_query($con, $query_meta);

while($row = mysqli_fetch_array($res)) {
?>
    <?php echo $row['content']; ?>
<?php 
}
?>

<link href='https://couponclap.com/static/css/store1-min8d36.css?v=2024111902' rel="stylesheet" />
<link href='https://couponclap.com/static/css/store1-minaa58.css?v=2024111902' rel="stylesheet" />
<link href='https://couponclap.com/static/css/favourite-icon-rating-min8d36.css?v=20240422' rel="stylesheet" />
<link href='https://couponclap.com/static/css/favourite-icon-rating-min839a.css?v=20240422' rel="stylesheet" />
<link href='https://couponclap.com/static/css/frontend/index.css' rel="stylesheet" />
<!-- header bottom start -->
<?php include('header_buttom.php');?>
<!-- header bottom end -->

<style>
    /* Default: Hide */
.offer-percentage.redeemOffer.redeemCoupon.mobileviewlist {
    display: none;
}

/* Show only on mobile screens */
@media (max-width: 767px) {
    .offer-percentage.redeemOffer.redeemCoupon.mobileviewlist {
        display: block;
    }
    .grab-deal-mob {
        display: block;
        margin-top: -23px;
        text-align: center;
        padding: 5px 0 !important;
        cursor: pointer;
        width: 61% !important;
        margin-left: 19.5%;
    }
    .offer-title-div.redeemCoupon {
    text-align: center;
}
}
</style>
<body style="background-color: #e2e2e1">
    <!-- header menu start -->
    <?php include('header.php');?>
    <!-- header menu end -->
    <div class="container home-page-content col-xs-12 col-md-12 col-lg-12 col-sm-12">
        <h1 class="col-xs-12 col-md-12 col-lg-12 col-sm-12 cc-main-title">Couponclap: India's Top Cashback &amp; Coupon Destination</h1>
        <!-- slider start code -->
        <section class="col-xs-12 col-md-12 col-lg-12 col-sm-12">
            <div class="row">
                <div class="col-xs-6 col-md-6 col-lg-6 col-sm-12">
                    <div class="slideShowHolder desktopSlideShowHolder ">
                        <div class="slideShowContent col-xs-12 col-md-12 col-lg-12 col-sm-12">
                            <div class="carousalSection">
                                <div class="nextCarousalSlide"></div>
                                <div class="prevCarousalSlide"></div>
                                <div id="carousalViewer">
                                    <div class='carousalSlidesHolder'>
                                        <!-- loops -->
                                        <?php 
                                         $sql_slider = "SELECT * FROM sliders_banner WHERE add_placement = 'home_page' AND device_type = 'web' ORDER BY id DESC";
                                         $res_slider = mysqli_query($con, $sql_slider);
                                         $sl=0;
                            		     while($row_slider=mysqli_fetch_assoc($res_slider)){?>
            
                                        <div class="carousalSlide">
                                            <a href="<?php echo $row_slider['link'];?>" target="_blank">
                                                <img src='https://couponclap.com/images/icon-image/logoweb.jpg' alt="<?php echo $row_slider['banner_type'];?>"
                                                    title="<?php echo $row_slider['banner_type'];?>"
                                                    data-title="<?php echo $row_slider['banner_type'];?>" data-pos="<?php echo $sl++;?>"
                                                    data-id="#" data-type="ccURL" data-location="MAIN"
                                                    data-src="https://couponclap.com/images/uploads/sliders_banner/<?php echo $row_slider['banner_image'];?>"
                                                    class="carousalSlideImg" data-forceload="true" />
                                            </a>
                                        </div>
                                        <?php } ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-md-6 col-lg-6 col-sm-12">
                   <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1954073605941434"
                         crossorigin="anonymous"></script>
                    <!-- couponclap Header -->
                    <ins class="adsbygoogle"
                         style="display:inline-block;width:625px;height:300px"
                         data-ad-client="ca-pub-1954073605941434"
                         data-ad-slot="5635064112"></ins>
                    <script>
                         (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                </div>
            </div>
            
        </section>

        <section class="slideShowHolder mobSlideShowHolder col-xs-12 col-md-12 col-lg-12 col-sm-12">
            <div class="slideShowContent col-xs-12 col-md-12 col-lg-12 col-sm-12">
                <div class="carousalSection">
                    <div class="nextCarousalSlide"></div>
                    <div class="prevCarousalSlide"></div>
                    <div id="mobCarousalViewer">
                        <div class='carousalSlidesHolder'>
                            <!-- loops -->
                            <?php 
                             $sql_slider = "SELECT * FROM sliders_banner WHERE add_placement = 'home_page' AND device_type = 'app' ORDER BY id DESC";
                             $res_slider = mysqli_query($con, $sql_slider);
                             $sl=0;
                		     while($row_slider=mysqli_fetch_assoc($res_slider)){?>
                            <div class="carousalSlide" onClick="redirectFun('#','_self')">
                                <a href="<?php echo $row_slider['link'];?>" target="_blank">
                                <img src='https://couponclap.com/images/icon-image/logoapp-copy.jpg'
                                    alt="<?php echo $row_slider['banner_type'];?>"
                                    title="<?php echo $row_slider['banner_type'];?>"
                                    data-src="https://couponclap.com/images/uploads/sliders_banner/<?php echo $row_slider['banner_image'];?>"
                                    class="carousalSlideImg" data-title="<?php echo $row_slider['banner_type'];?>"
                                    data-pos="<?php echo $sl++;?>" data-id="#" data-type="ccURL" data-location="MAIN"
                                    data-forceload="true" />
                                    </a>
                            </div>
                            <?php } ?>

                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <?php
            /* =========================
        GET FILTER VALUES
        ========================= */

        $type_filter = isset($_GET['type']) ? $_GET['type'] : 'ALL';
        $brand_filter = [];
        $category_filter = [];
        if(isset($_GET['category']) && $_GET['category'] != ''){
            $category_filter = explode(',', $_GET['category']);
        }

        if(isset($_GET['brand']) && $_GET['brand'] != ''){
            $brand_filter = explode(',', $_GET['brand']);
        }

        /* =========================
        BUILD WHERE CONDITION
        ========================= */
        $where = "WHERE p.status = 'published' AND unpaused='0'";
        if($type_filter != 'ALL'){
            $where .= " AND p.type = '".mysqli_real_escape_string($con,$type_filter)."'";
        }

        /* MULTIPLE CATEGORY FILTER */
        if(!empty($category_filter)){
            $cat_ids = array_map('intval',$category_filter);
            $cat_ids = implode(',',$cat_ids);
            $where .= " AND p.category_id IN ($cat_ids)";
        }

        /* MULTIPLE brand FILTER */
        if(!empty($brand_filter)){
            $brd_ids = array_map('intval',$brand_filter);
            $brd_ids = implode(',',$brd_ids);
            $where .= " AND p.category_brand_id IN ($brd_ids)";
        }

        /* =========================
        GET POSTS
        ========================= */
        
        $limit = 6;
        $page = 1;
        $start = ($page - 1) * $limit;

        $query = "
        SELECT p.*, c.name as category_name
        FROM posts p
        LEFT JOIN categories c ON c.id = p.category_id
        $where
        ORDER BY p.id DESC LIMIT $start,$limit
        ";
        $result = mysqli_query($con,$query);

        /* =========================
        GET TAB COUNTS
        ========================= */
        	$count_query = "
					SELECT COUNT(*) as total 
					FROM posts p
					$where
				";
				
        $count_all = mysqli_fetch_assoc(mysqli_query($con, $count_query));
        
        ?>

    <div class="container-fluid store-main-container col-xs-12 col-md-12 col-lg-12 col-sm-12">
        <section class="coupons-main-section col-md-9 col-lg-9 col-xs-12 col-sm-9">
            <section class="coupons-category col-md-12 col-lg-12 col-xs-12 col-sm-12">
                <article class="coupons-heading col-md-12 col-lg-12 col-xs-12 col-sm-12">
                    <ul class="nav nav-tabs">
                        <li class="filter <?php if($type_filter=='ALL') echo 'active-tab'; ?> all navigation-tab col-sm-4 col-xs-4 col-md-2 col-lg-2"
                            data-rel="ALL">
                            <a>All <span class="all-offers-count">(
                                    <?php echo $count_all['total']; ?>)
                                </span></a>
                        </li>
                        <!--<li class="filter </?php if($type_filter=='DEAL') echo 'active-tab'; ?> deals navigation-tab col-sm-4 col-xs-4 col-md-2 col-lg-2"-->
                        <!--    data-rel="DEAL">-->
                        <!--    <a>Deals <span class="deals-count">(-->
                        <!--            </?php echo $count_deal['total']; ?>)-->
                        <!--        </span></a>-->
                        <!--</li>-->
                    </ul>
                </article>
            </section>
            <ul class="coupons-main-section-ul col-md-12 col-lg-12 col-xs-12 col-sm-12" id="offersContainer">
                <?php if(mysqli_num_rows($result)>0){ ?>
                <?php
                $count = 0;
                while($post = mysqli_fetch_assoc($result)){ 
                      $count++;
                      $stores_id = $post['stores_id'];
                    // store details
                    $sql_stores_s = "SELECT * FROM stores WHERE id = '$stores_id'";
                    $res_stores_s = mysqli_query($con, $sql_stores_s);
                    $result_stores_d=mysqli_fetch_assoc($res_stores_s);
                     $slug = strtolower(str_replace(' ','-',$post['slug']));
                    ?>
                    
                <li class="offer1 col-md-12 col-lg-12 col-xs-12 col-sm-12">
                    <article class="store-coupons col-md-12 col-lg-12 col-xs-12 col-sm-12">
                        <div class="offer-percent-section coupon-section col-md-3 col-lg-3 col-sm-4 col-xs-12">
                            <div class="share-symbol share-social">
                                <img src="https://couponclap.com/images/icons/icon-share.png">
                            </div>

                            <div class="store-vertical-line">
                                <a class='goToStoresFromOfferPage' href="https://couponclap.com/deals/<?php echo $slug; ?>">
                                    <div class="offer-percentage redeemOffer redeemCoupon text-center"
                                        data-coupon="<?php echo $post['code']; ?>"
                                        data-type="<?php echo $post['type']; ?>">
                                        <img src="https://couponclap.com/images/blogs/coupon/<?php echo $post['image_big']; ?>" style="width:100%;">
                                       
                                    </div>
                                </a>
                            </div>
                            
                        </div>
                        <div class="coupon-section offer-desc-section col-md-9 col-lg-9 col-xs-12 col-sm-12">
                            
                            <div class="row coupon-head-row">
                                <div class="cc-how-it-works cc-how-it-works-mobile"
                                    id="hw-offer-<?php echo $post['id']; ?>">HOW IT WORKS
                                </div>
                                <div class="editors_choice">
                                    <span class="cc-choice">
                                        <span class="editors-choice-text"> <img src="https://couponclap.com/images/favicon.ico"> Recommended</span>
                                    </span>
                                </div>
                                <div class="user-share-count">
                                    <div class="storeLogo" style="text-align: right; margin-right: 10px;">
                                        <img style="max-width: 100px;" class="delayed-image"
                                            src="https://couponclap.com/images/brand/2logo.jpg"
                                            data-src="https://couponclap.com/images/uploads/stores/<?php echo $result_stores_d['store_image']; ?>"
                                            alt="storeLogo" width="50%" />
                                    </div>
                                    <div class="user-count">
                                        <span>
                                            <img class="count-logo" src="https://couponclap.com/images/icons/people.png">
                                        </span>
                                        <span class="count"><?php echo $post['usedno']; ?> people used till this date </span>
                                    </div>
                                </div>
                                <div class="share-symbol share-mob">
                                    <img src="https://couponclap.com/images/icons/icon-share.png">
                                </div>
                            </div>
                            
                            <a class='goToStoresFromOfferPage' href="https://couponclap.com/deals/<?php echo $slug; ?>"
                                data-logo='https://couponclap.com/images/uploads/stores/<?php echo $result_stores_d['store_image']; ?>'
                                data-store='<?php echo $result_stores_d['store_name']; ?>' data-coupon='<?php echo $post['code']; ?>'
                                data-type='<?php echo $post['type']; ?>' data-title='<?php echo $post['title']; ?>'>
                                <div class="offer-title-div redeemCoupon" data-coupon="<?php echo $post['code']; ?>" data-type="<?php echo $post['type']; ?>">
                                    <div class="offer-percentage redeemOffer redeemCoupon mobileviewlist text-center"
                                        data-coupon="<?php echo $post['code']; ?>"
                                        data-type="<?php echo $post['type']; ?>">
                                        <img src="https://couponclap.com/images/blogs/coupon/<?php echo $post['image_big']; ?>" style="width:50%;height:89px">
                                    </div>
                                    <div class="offer-title"><?php echo $post['title']; ?></div>
                                    <div class="offer-cashback-title"><?php echo $post['coupon_code']; ?></div>
                                </div>
                            </a>
                            
                            
                            <br>
                            <?php if(!empty($post['code'])){?>
                                <a class='goToStoresFromOfferPage copy-btn-grap' href="https://couponclap.com/deals/<?php echo $slug; ?>"
                                    data-logo='https://couponclap.com/images/uploads/stores/<?php echo $result_stores_d['store_image']; ?>'
                                    data-store='<?php echo $result_stores_d['store_name']; ?>' data-coupon='<?php echo $post['code']; ?>'
                                    data-title='<?php echo $post['title']; ?>' data-type='<?php echo $post['type']; ?>'
                                    data-src="https://couponclap.com/images/blogs/coupon/<?php echo $post['image_big']; ?>"
                                    data-slug="<?php echo $post['slug']; ?>"
                                    data-click-type="coupon">
                                    <div class="grab-deal-div grab-deal-mob btn-orange grab-deal-btn col-xs-12 col-lg-4 col-sm-4 col-md-4">Get Coupon</div>
                                </a>
                           <?php }else{ ?>
                                <a class="goToStoresFromOfferPageset copy-btn-grap"
                                  href="javascript:void(0);"
                                   data-slug="<?php echo $slug; ?>"
                                   data-store-url="<?php echo $result_stores_d['store_url']; ?>"
                                   data-logo="https://couponclap.com/images/uploads/stores/<?php echo $result_stores_d['store_image']; ?>"
                                   data-store="<?php echo $result_stores_d['store_name']; ?>"
                                   data-title="<?php echo $post['title']; ?>"
                                   data-type="<?php echo $post['type']; ?>"
                                   data-click-type="grab"
                                   data-image="https://couponclap.com/images/blogs/coupon/<?php echo $post['image_big']; ?>">
                                    <div class="grab-deal-div grab-deal-mob btn-orange grab-deal-btn col-xs-12 col-lg-4 col-sm-4 col-md-4">
                                        Grab Deal
                                    </div>
                                </a>
                           <?php } ?>
                            
                            
                            <div class="couponfoot col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <span class="expiry col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                    <img src="https://couponclap.com/images/icons/icon-calendar.png" alt="calendar" class="calendar-image">
                                    <?php echo "Expires on " . date("M j, Y", strtotime($post['end_date']));?>
                                </span>
                                <span class="expiry expiry-mob col-lg-6 col-md-6 col-sm-6 col-xs-4">
                                    <img src="https://couponclap.com/images/icons/icon-calendar.png" alt="calendar" class="calendar-image">
                                    <?php echo date("M j, Y", strtotime($post['end_date']));?>
                                </span>
                                <span class="verification col-lg-6 col-md-6 col-sm-6 col-xs-4 redeemCoupon"
                                    data-coupon="<?php echo $post['code']; ?>" data-type="<?php echo $post['type']; ?>">
                                    <img src="https://couponclap.com/images/icons/icon-verified.png" alt="verified" class="verified-image">
                                    <a class='goToStoresFromOfferPage'> Verified</a>
                                </span>
                            </div>
                            
                        </div>
                    </article>
                </li>
                <?php
                    // Display ads after every 2 items
                    if ($count % 2 == 0) { ?>
                    <li class="offer1 col-md-12 col-lg-12 col-xs-12 col-sm-12">
                    <article class="store-coupons col-md-12 col-lg-12 col-xs-12 col-sm-12">
                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1954073605941434"
                             crossorigin="anonymous"></script>
                        <!-- Couponclap Display after coupon -->
                        <ins class="adsbygoogle"
                             style="display:block"
                             data-ad-client="ca-pub-1954073605941434"
                             data-ad-slot="9883617075"
                             data-ad-format="auto"
                             data-full-width-responsive="true"></ins>
                        <script>
                             (adsbygoogle = window.adsbygoogle || []).push({});
                        </script>
                        </article>
                        </li>
                   <?php } ?>
                <?php } ?>
                <?php } else { ?>
                <li class="offer1 col-md-12 col-lg-12 col-xs-12 col-sm-12">
                    <article class="store-coupons col-md-12 col-lg-12 col-xs-12 col-sm-12">
                        <div class="offer-percent-section coupon-section col-md-3 col-lg-3 col-sm-4 col-xs-12">
                            No offers found.
                        </div>
                    </article>
                </li>
                <?php } ?>

            </ul>
            <div style="text-align:center;margin-top:20px;">
                <button id="loadMore" class="btn btn-dark btn-md"><img src="https://couponclap.com/images/icon-image/loading.gif" style="width:10%"> Load More</button>
            </div>
        </section>
        
        <section class="offers-deals-section col-md-3 col-lg-3 col-xs-12 col-sm-3">
            <div class="mobile-container category-fix" id="mobile-container-id">
                <div>
                    
                    <article class="categories-container left-widget">
                        <h3>Categories</h3>
                        <div class="item-list-div">
                            <ul class="item-list search-list" id="cat-filters">

                                <?php
                                $cat_query = "
                                SELECT c.id, c.name,
                                COUNT(p.id) AS total_posts
                                FROM categories c
                                LEFT JOIN posts p ON p.category_id = c.id AND p.status='published' AND p.unpaused='0'
                                GROUP BY c.id, c.name
                                ORDER BY c.name ASC
                                ";

                                $result_cat = mysqli_query($con,$cat_query);
                                while($row = mysqli_fetch_assoc($result_cat)){
                                $checked = (in_array($row['id'],$category_filter)) ? 'checked' : '';
                                ?>

                                <li class="category-item">
                                    <input type="checkbox" class="list-check category-check"
                                        value="<?php echo $row['id']; ?>" <?php echo $checked; ?>>
                                    <?php echo $row['name']; ?>
                                    <span>(
                                        <?php echo $row['total_posts']; ?>)
                                    </span>
                                </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </article>
                    <article class="categories-container left-widget">
                        <h3>Brand</h3>
                        <div class="item-list-div">
                            <ul class="item-list search-list" id="brand-filters">
                                <?php
                                $brand_where = "WHERE b.status = 1";
                                /* FILTER BRANDS BASED ON SELECTED CATEGORY */
                                if(!empty($category_filter)){
                                    $cat_ids = array_map('intval',$category_filter);
                                    $cat_ids = implode(',',$cat_ids);
                                    $brand_where .= " AND categories_id IN ($cat_ids)";
                                }
                                
                               $brand_query = "
                                SELECT b.id, b.name, COUNT(p.id) as total_posts
                                FROM brands b
                                LEFT JOIN posts p ON p.category_brand_id = b.id AND p.status='published' AND p.unpaused='0'
                                $brand_where
                                GROUP BY b.id, b.name
                                ORDER BY b.name ASC
                                ";
                                
                                $result_brand = mysqli_query($con,$brand_query);
                                while($row_brand = mysqli_fetch_assoc($result_brand)){
                                $checked = (in_array($row_brand['id'],$brand_filter)) ? 'checked' : '';
                                ?>
                                <li class="category-item">
                                <input type="checkbox"
                                class="list-check brand-check"
                                value="<?php echo $row_brand['id']; ?>"
                                <?php echo $checked; ?>>
                                <?php echo $row_brand['name']; ?> (<?php echo $row_brand['total_posts']; ?>)
                                </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </article>
                </div>
                <div>
                    
                </div>
                <span class="mobile-filter-apply" id="go_apply_filter" data-type="cat">Apply </span>
            </div>

            <article class="popular-store-cont left-widget">
                <h2>Popular Stores</h2>
                <ul class="row popular-stores">
                 <?php
                 $sql_s = "SELECT * FROM stores WHERE store_types = 'trending_stores' ORDER BY id DESC LIMIT 6";
                 $res_s = mysqli_query($con, $sql_s);
                 $i=1;
                 while($row_s=mysqli_fetch_assoc($res_s)){
                    $store_slug = strtolower(trim($row_s['store_name']));
                    $store_slug = preg_replace('/[^a-z0-9]+/', '-', $store_slug);
                    $store_slug = trim($store_slug, '-');
                 ?>
                    <li class="pop-store-dtls col-xs-6 col-sm-6 col-md-6 col-lg-6">
                        <a href="https://couponclap.com/<?php echo $store_slug; ?>" target="_blank">
                            <div class="pop-store-logo">
                                <img src="https://couponclap.com/images/uploads/stores/<?php echo $row_s['store_image']; ?>" class="store-img" alt="<?php echo $row_s['store_name']; ?>">
                            </div>
                            <div class="pop-store-cb"><?php echo $row_s['store_name']; ?></div>
                        </a>
                    </li>
                    <?php } ?>
                </ul>
            </article>

        </section>
        <article class="filt-mob col-xs-12">
            <img class="filter-mob" src="https://couponclap.com/images/icon-image/filter.png">
        </article>
        <div class="mobile-overlay col-xs-12"></div>
    </div>
    
    <!--contact home pages start-->
    <section id="about-us-footer" class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 about-us-content">
            <h3 style="font-weight: 600;">Best Discount Coupons & Amazon Coupon Code India – Today’s Coupons</h3>
            <p>Finding the best <a href="https://couponclap.com/flipkart">discount coupons</a> is one of the smartest ways to save money while shopping online. With the rise of e-commerce in India, 
            users are constantly searching for today’s coupons and verified deals to get maximum discounts on their purchases. 
            Whether you are buying electronics, fashion items, or groceries, using the right coupon code can significantly reduce your total cost..</p>
            <h3>Discover the Latest Discount Coupons for Every Store</h3>
            
            <p>Online shoppers today rely heavily on <a href="https://couponclap.com/makemytrip-buses">store coupon codes</a> to unlock special discounts and exclusive offers. Popular platforms like Amazon,
            Flipkart, Myntra, and Ajio regularly provide deals that can be applied at checkout.</p>
            <h6 style="font-size: 19px;font-weight: 500;">Using updated <a href="https://couponclap.com/flipkart">discount coupons</a> ensures:</h6>
            <ol>
                <li>
                    <p>Instant savings on purchases</p>
                </li>
                <li>
                    <p>Access to limited-time deals</p>
                </li>
                <li>
                    <p>Better shopping value</p>
                </li>
            </ol>
            <p>Instead of paying full price, users can simply apply a coupon and enjoy reduced costs on their favorite products.</p>
            <h3 style="font-weight: 600;">Amazon Coupon Code India – Save Big on Every Order</h3>
            <p>When it comes to online shopping, Amazon coupon code India is among the most searched keywords. Millions of 
            users look for active coupon codes to save on daily purchases</p>
            <h6 style="font-size: 19px;font-weight: 500;">🔹 Types of Amazon Coupons Available</h6>
            <ol>
                <li>
                    <p> Bank discounts and card offers</p>
                </li>
                <li>
                    <p>Festive and seasonal deals</p>
                </li>
                <li>
                    <p> Lightning deals and flash sales</p>
                </li>
                <li>
                    <p>Cashback and wallet offers</p>
                </li>
            </ol>
            <p>By applying the right Amazon coupon code India, users can maximize their savings and take advantage of exclusive deals that are not available otherwise.</p>
            <h3 style="font-weight: 600;">Free Coupon Codes – Easy and Cost-Free Savings</h3>
            <p>One of the biggest advantages of online coupons is that most of them are completely free. Free coupon codes do not require any
            subscription or payment and can be used by anyone.</p>
           <h6 style="font-size: 19px;font-weight: 500;">🔹 Benefits of Free Coupon Codes</h6>
            <ol>
                <li>
                    <p>No registration required</p>
                </li>
                <li>
                    <p>Instant discount at checkout</p>
                </li>
                <li>
                    <p>Available for multiple categories</p>
                </li>
                <li><p>Easy to use and apply</p></li>
            </ol>
            <p>These free coupon codes make online shopping more affordable and accessible for everyone.</p>
            <h3 style="font-weight: 600;">Today’s Coupons – Never Miss Daily Deals</h3>
            <p>TChecking today’s coupons before making a purchase is a smart habit that can help you save money every day.
            Deals change frequently, and many offers are available only for a limited time.</p>
            <h6 style="font-size: 19px;font-weight: 500;">With updated today’s coupons, you can:</h6>
            <ol>
                <li>
                    <p>Grab time-sensitive offers</p>
                </li>
                <li>
                    <p>Access fresh discounts daily</p>
                </li>
                <li>
                    <p>Save more during sales and promotions</p>
                </li>
            </ol>
            <p>Staying updated ensures you never miss out on valuable deals.</p>
            <h3 style="font-weight: 600;">How to Use Store Coupon Codes Effectively</h3>
            <p>Using store coupon codes is simple and requires just a few steps:</p>
            <h6 style="font-size: 19px;font-weight: 500;">🔹 Steps to Apply Coupon Codes</h6>
            <ol>
                <li><p>Choose your preferred store or deal</p></li>
                <li><p>Copy the coupon code</p></li>
                <li><p>Visit the store website</p></li>
                <li><p>Apply the code at checkout</p></li>
                <li><p>Enjoy instant savings</p></li>
            </ol>
            <p>Following these steps helps you get the best value from your online purchases</p>
            <h3 style="font-weight: 600;">Shop Smarter with Verified Coupons</h3>
            
            <p>To get the best experience, always use trusted sources that provide verified and updated discount coupons. Expired codes can waste time, 
            so choosing reliable platforms ensures success.</p>
            
            <p>Whether you are searching for Amazon coupon code India, exploring free coupon codes, or browsing today’s coupons, using coupons is
            the easiest way to shop smarter and save more.
            </p>
            <h3 style="font-weight: 600;">Conclusion</h3>
            <p>In today’s digital shopping world, discount coupons have become an essential tool for saving money. From store coupon codes to
            Amazon coupon code India, there are endless opportunities to reduce your expenses. Make it a habit to check today’s 
            coupons before every purchase and enjoy consistent savings on all your online orders.</p>
        </div>
    </section>
    <!--contact home pages end-->

    <!-- footer code start -->
    <?php include('footer.php');?>
   <!-- <script>

function applyFilters() {
    var checked = document.querySelectorAll('.category-check:checked');
    var categories = [];
    checked.forEach(function (el) {
        categories.push(el.value);
    });
    var params = new URLSearchParams();
    <'?php if ($type_filter != 'ALL') { ?>
        params.append('type', '<'?php echo $type_filter; ?>');
    <'?php } ?>
    if (categories.length > 0) {
        params.append('category', categories.join(','));
    }
    window.location = '?' + params.toString();
}


/* Desktop Auto Apply */
if (window.innerWidth > 991) {
    document.querySelectorAll('.category-check').forEach(function (checkbox) {
        checkbox.addEventListener('change', function () {
            applyFilters();
        });
    });
}

/* Mobile Button Apply */
var applyBtn = document.getElementById('go_apply_filter');
if (applyBtn) {
    applyBtn.addEventListener('click', function () {
        applyFilters();
    });
}
</script> -->

    <script>
        function applyFilters() {

            /* =========================
            GET SELECTED CATEGORIES
            ========================= */
            var categoryChecked = document.querySelectorAll('.category-check:checked');
            var categories = [];

            categoryChecked.forEach(function (el) {
                categories.push(el.value);
            });


            /* =========================
            GET SELECTED BRANDS
            ========================= */
            var brandChecked = document.querySelectorAll('.brand-check:checked');
            var brands = [];

            brandChecked.forEach(function (el) {
                brands.push(el.value);
            });


            /* =========================
            BUILD URL PARAMS
            ========================= */
            var params = new URLSearchParams();

            <?php if ($type_filter != 'ALL') { ?>
                params.append('type', '<?php echo $type_filter; ?>');
            <?php } ?>

            if (categories.length > 0) {
                params.append('category', categories.join(','));
            }

            if (brands.length > 0) {
                params.append('brand', brands.join(','));
            }

            window.location = '?' + params.toString();
        }


        /* =========================
        DESKTOP AUTO APPLY
        ========================= */
        if (window.innerWidth > 991) {

            document.querySelectorAll('.category-check, .brand-check').forEach(function (checkbox) {
                checkbox.addEventListener('change', function () {
                    applyFilters();
                });
            });

        }


        /* =========================
        MOBILE BUTTON APPLY
        ========================= */
        var applyBtn = document.getElementById('go_apply_filter');

        if (applyBtn) {
            applyBtn.addEventListener('click', function () {
                applyFilters();
            });
        }
    </script>
    
    <script>
        let page = 1;
        $("#loadMore").on("click", function(){
            let btn = $(this);
            btn.text("Loading...");
            page++;
            $.ajax({
                url:"load-more-offers.php",
                type:"POST",
                data:{
                    page:page,
                    type:"<?php echo $type_filter; ?>",
                    category:"<?php echo implode(',', $category_filter); ?>",
                    brand:"<?php echo implode(',', $brand_filter); ?>"
                },
                success:function(data){
        
                    if($.trim(data) != ''){
                        $(".coupons-main-section-ul").append(data);
                        btn.text("Load More Offers");
                    }else{
                        btn.hide();
                    }
                }
            });
        });
    </script>
    
    

    <!-- footer code end -->
    <script src="https://couponclap.com/static/bootstrap/3.3.6/js/bootstrap.min.js"></script>
    <script src='https://couponclap.com/static/javascripts/store1-mina8e7.js?v=2024121802'></script>

    <!-- footer url link start code -->
    <?php include('footer_url.php');?>
    <!-- footer url link end code -->