<?php 
include_once("include/main.inc.php"); 
@extract($_REQUEST);
if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {
    $match1=$match[1];
    $vanity_url='http://'.$_SERVER['HTTP_HOST'];
}
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee=explode('/',$actual_link);
$ca_nam1=$ee[3];
$ca_nam1=ucwords(str_replace("-"," ",$ca_nam1));
$pid=ucwords(str_replace("-"," ",$_REQUEST['pid']));
$cat_s="select catImage, catName, displayName, catDesc, catID, catDesc1,catBanner, keyword1, keyword2, keyword3, parentID, headingh1, headingh2,alttag from category_tbl where catName='$pid'";
$cat_q=mysqli_query($GLOBALS['dbconn'],$cat_s);
$num=mysqli_num_rows($cat_q);
$cat_r=mysqli_fetch_array($cat_q);
$category_id=$cat_r['catID'];
$hover='category';
$catn=$cat_r['catName'];
$cat_sql="select catImage, catName, displayName, catDesc, catID, catDesc1,catBanner, parentID from category_tbl where parentID='$category_id' and status='Y'";
$cat_qry=mysqli_query($GLOBALS['dbconn'],$cat_sql);
$cccnum=mysqli_num_rows($cat_qry);
$cat_sql1="select catName, displayName, catID, parentID,catImage,catDesc1,catBanner,keyword1,keyword2,keyword3,headingh1, headingh2,alttag,pageTitle,pageKeywords,pageDescription,ingrediants,benefits,direction,nutrition,price,catDesc2,multi_image from category_tbl where catID='$category_id'";
$cat_qry1=mysqli_query($GLOBALS['dbconn'],$cat_sql1);
$cat_res=mysqli_fetch_array($cat_qry1);
$pageTitles=$cat_res['catName'];
$disTitles=$cat_res['displayName']; 
$pdes=$cat_res['catDesc'];
$page_desc=$cat_res['catDesc1'];
$page_desc=str_ireplace('{companyName}',$admin_res['companyName'],$page_desc);
$parent=$cat_res['parentID'];
$cat_sql2="select catName, displayName, catID, parentID from category_tbl where catID='$parent'";
$cat_qry2=mysqli_query($GLOBALS['dbconn'],$cat_sql2);
$num2=mysqli_num_rows($cat_qry2);
$cat_res2=mysqli_fetch_array($cat_qry2);
$mparent=$cat_res2['parentID'];
$cat_sql3="select catName, displayName, catID, parentID from category_tbl where catID='$mparent'";
$cat_qry3=mysqli_query($GLOBALS['dbconn'],$cat_sql3);
$num3=mysqli_num_rows($cat_qry3);
$cat_res3=mysqli_fetch_array($cat_qry3);
$mmparent=$cat_res3['parentID'];
$cat_sql4="select catName, displayName, catID, parentID from category_tbl where catID='$mmparent'";
$cat_qry4=mysqli_query($GLOBALS['dbconn'],$cat_sql4);
$num4=mysqli_num_rows($cat_qry4);
$cat_res4=mysqli_fetch_array($cat_qry4);
$mobile=$admin_res['mobile'];
$city=$admin_res['city'];
$state=$admin_res['state'];
$country=$admin_res['country'];
$companyName=$admin_res['companyName'];
$address=$admin_res['address']; 
$multi_image=explode(',',$cat_res['multi_image']);
if($cat_res['catImage']!=''){
    $imglink= getImage($cat_res[catImage], 500, 500, $cat_res[catName],"/uploaded-files/category/images/");
    } else {
        $imglink= getImage("noimage.jpg", 500, 500, "noimages","/uploaded-files/category/images/");
    } 
    $loc_sql=mysqli_query($GLOBALS['dbconn'], "select locationID from location_tbl where locationName='$ca_nam1' and status='Y'");
    $location = mysqli_fetch_array($loc_sql);
    $location_id = $location['locationID']; 
    $category_sub_specific=mysqli_query($dbconn,"select location_ids,meta_title,meta_keyword,meta_description,description,description2,short_description from location_content_tbl where category_id='$category_id' AND location_id='$location_id'");
    $category_sub_general=mysqli_query($dbconn,"select location_ids,meta_title,meta_keyword,meta_description,description,description2,short_description from location_content_tbl where category_id='$category_id' AND location_id='0'");
    $content_count = mysqli_num_rows($category_sub_general);
    if($content_count > 0){
        while($categorysubdomain=mysqli_fetch_array($category_sub_general)){
            $locati = explode(",", $categorysubdomain['location_ids']);
            if(in_array($location_id, $locati)){
                if($categorysubdomain['meta_title'] != ''){
                    $page_metatitle1=$categorysubdomain['meta_title'];
                }
                if($categorysubdomain['meta_keyword'] != ''){
                    $page_metakey1=$categorysubdomain['meta_keyword'];
                }
                if($categorysubdomain['meta_description']){
                    $page_metadesc1=$categorysubdomain['meta_description'];
                }
                $page_desc=$categorysubdomain['description'];
            }
        }
    //    specific location content
    }else{
    $page_desc=$categorysubdomain['description'];
    $page_short_desc=$categorysubdomain['short_description'];
    $page_metatitle1=$categorysubdomain['meta_title'];
    //    general content
    }
    if($cat_res['keyword1']!='' && $cat_res['keyword2']!='' && $cat_res['keyword3']!=''){ 
        $m_title = "hotkeyword1 Manufacturers in location,hotkeyword2 Wholesale Suppliers, Exporters location"; 
       $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1,$m_title)));
       $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Manufacturers in location, hotkeyword3 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword2 Suppliers in location, hotkeyword3 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword2 Exporters in location, hotkeyword3 Exporters in location hotkeyword1 in location, hotkeyword2 in location, hotkeyword3 in location";
       $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('hotkeyword3', $cat_res[keyword3],str_replace('location', $ca_nam1,$m_keyword))));
       $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers and Exporters of hotkeyword2 Since 2023, Supplying at ✓Factory Price. Call phone.";    
       $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2],str_replace('hotkeyword3', $cat_res[keyword3],str_replace('companyName', $admin_res['companyName'], str_replace('phone', $admin_res['mobile_meta'], str_replace('location', $ca_nam1,$meta_des))))));
       } else if($cat_res['keyword1']!='' && $cat_res['keyword2']!=''){
           $m_title = "hotkeyword1 Manufacturers in location,hotkeyword2 Wholesale Suppliers, Exporters location";  
           $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1,$m_title)));
           $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword2 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword2 Exporters in location, hotkeyword1 in location,  hotkeyword2 in location";
           $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1,$m_keyword)));
           $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers and Exporters of hotkeyword2 Since 2023, Supplying at ✓Factory Price. Call phone.";    
           $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res['mobile_meta'], str_replace('location', $ca_nam1,$meta_des)))));
       }else if($cat_res['keyword1']!=''){
           $m_title = "hotkeyword1 Manufacturers in location,hotkeyword1 Wholesale Suppliers, Exporters location";  
           $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('location', $ca_nam1,$m_title));
           $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword1 in location";
           $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('location', $ca_nam1,$m_keyword));
           $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers and Exporters of hotkeyword1 Since 2023, Supplying at ✓Factory Price. Call phone.";    
           $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('companyName', $admin_res[companyName], str_replace('phone',$admin_res['mobile_meta'], str_replace('location', $ca_nam1,$meta_des))));
       } else{
           $page_metatitle=$page_metatitle1;
           $page_metakey=$page_metakey1;
           $page_metadesc=$page_metadesc1;
       }
    $page_desc = str_replace('countryname',$ca_nam1, $page_desc);
    $page_desc = str_replace('catname',$pid, $page_desc);
    $page_desc = str_replace('{location}',$ca_nam1, $page_desc);
    $page_desc=str_ireplace('{companyName}',$admin_res['companyName'],$page_desc);
    $page_metatitle = str_replace('countryname',$ca_nam1, $page_metatitle);
    $page_metatitle = str_replace('catname',$pid, $page_metatitle);
    $page_metatitle = str_replace('{location}',$ca_nam1, $page_metatitle);
    $page_metakey = str_replace('countryname',$ca_nam1, $page_metakey);
    $page_metakey = str_replace('catname',$pid, $page_metakey);
    $page_metakey = str_replace('{location}',$ca_nam1, $page_metakey);
    $page_metadesc = str_replace('countryname',$ca_nam1, $page_metadesc);
    $page_metadesc = str_replace('catname',$pid, $page_metadesc);
    $page_metadesc = str_replace('{location}',$ca_nam1, $page_metadesc);
    $page_short_desc = str_replace('countryname',$ca_nam1, $page_short_desc);
    $page_short_desc = str_replace('catname',$pid, $page_short_desc);
    $page_short_desc = str_replace('{location}',$ca_nam1, $page_short_desc);
    $category_sub_uncheck_loc=mysqli_query($GLOBALS['dbconn'],"select description,description2,short_description from location_content_tbl where category_id='$category_id' AND location_id='0'");
    $category_sub_uncheck_res=mysqli_fetch_array($category_sub_uncheck_loc);
    $page_desc1=$category_sub_uncheck_res['description2'];
    $page_desc1 = str_replace('{location}',$ca_nam1,  $page_desc1);
    $page_desc1=str_ireplace('{companyName}',$admin_res['companyName'],$page_desc1);
if($cat_res['headingh1']!=''){
    $heading1=$cat_res['headingh1'].' Manufacturers in '.$ca_nam1;
}else{
    $heading1=$disTitles.' in '.$ca_nam1;
}
if($cat_res['headingh2']!=''){
    $heading2=$cat_res['headingh2'].' in '.$ca_nam1;
}else{
    $heading2=$disTitles.' in '.$ca_nam1;
}
if($cat_res['alttag']!=''){
    $alttag=$cat_res['alttag'].' in '.$ca_nam1;
}else{
    if($cat_res['parentID']!='4'){
    $alttag=$disTitles.' Manufacturers in '.$ca_nam1;
}else{
    $alttag=$disTitles.' Manufacturers in '.$ca_nam1;
}
}
if(mysqli_num_rows($loc_sql) > 0)
{
}
else
{
    header("Location: ".site_url);
    exit;
}


if (strpos($_SERVER['REQUEST_URI'], "?") !== false) {
    $uri_parts = explode('?', $_SERVER['REQUEST_URI']);
    $linksLoc = $uri_parts[0];
    header("Location: ".site_url.$linksLoc);
    exit;
    
}

if(mysqli_num_rows($cat_q) > 0){
?>
<!DOCTYPE html>
<!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <?php include "app_top.php"; ?>
    </head>

    <body>

        <?php include "app_header_sub.php"; ?>
        <?php if ($cat_res['parentID'] == 1 || $cat_res['parentID'] == 31) { ?>

            <!-- <div class="bread-cum-sec">
        <img src="designer/images/product-banner.jpg" alt="" class="w-100">
    </div> -->
    <section class="heading_banner" style="background-image: url(<?= site_url; ?>/designer/images/about/abt-banner2.webp)">
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                            <h1 class="cat_title"><?= $disTitles; ?> Manufacturers in <?=$ca_nam1;?></h1>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </section>

            <div class="inner_breadcrumb hidden_xs">
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <ul class="breadcrumb">
                            <li class=""><a href="<?=site_url;?>"> Home</a></li>
                                <li class="active"><?= $disTitles; ?>  </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
    <div class="ab_tx pro-ab" >
                <div class="container">
                    <div class="row">
                        <div class="col-md-8 col-12">
                           <h2> <span> Buy from </span> <?php echo $cat_res['catName']; ?> in <?=$ca_nam1;?></h2>
                           

                           <!-- <p>Crafted with precision and care, Sriram Diabetic Foods presents its signature product: Low GI Diabetic Roti. As leading Low GI Diabetic Roti Manufacturers in Bangalore, we understand the critical importance of maintaining stable blood sugar levels for individuals managing diabetes. Our rotis are specially formulated to have a low glycemic index (GI), ensuring a slow and steady release of glucose into the bloodstream, thus preventing sudden spikes in blood sugar levels. Each roti is meticulously crafted using high-quality ingredients, with a focus on both health and taste. Our dedication to excellence ensures that every bite is not only diabetes-friendly but also delicious, allowing individuals to savor their meals without compromising on health.</p> -->
                           <?=html_entity_decode($page_desc);?>

                           <div class="row">
                                <div class="col-4 col-md-4 text-center">
                                    <div class="quality-list-item">
                                        <img src="<?=site_url;?>/designer/images/icon/wheat-quality.png" alt="BEST QUALITY" title="BEST QUALITY" class="img-responsive">
                                        <div class="tt">BEST QUALITY</div>
                                        <p>40+ Tests on Product</p>
                                    </div>
                                </div>
                                <div class="col-4 col-md-4 text-center">
                                    <div class="quality-list-item">
                                        <img src="<?=site_url;?>/designer/images/icon/softness.png" alt="SOFTNESS" title="SOFTNESS" class="img-responsive">
                                        <div class="tt">SOFTNESS</div>
                                        <p>Softer Rotis Than Others</p>
                                    </div>
                                </div>
                                <div class="col-4 col-md-4 text-center">
                                    <div class="quality-list-item">
                                        <img src="<?=site_url;?>/designer/images/icon/purity.png" alt="PURITY" title="PURITY" class="img-responsive">
                                        <div class="tt">PURITY</div>
                                        <p>100% Atta &amp; 0% Maida</p>
                                    </div>
                                </div>
                            </div>
                        </div>



                        <div class="col-md-4 col-12">
                            <img src="<?= getImage($cat_res['catBanner'], 416, 541, $cat_res['catName'], "/uploaded-files/category/banners/"); ?>" alt="<?php echo $cat_res['catName']; ?> Manufacturers in <?=$ca_nam1;?>" title="<?php echo $cat_res['catName']; ?> Manufacturers in <?=$ca_nam1;?>">
                        </div>
                    </div>
                </div>
            </div>
            <div class="ab_tx pro-ab py-5" style="background: white;">
                <div class="container">
                <? if($cat_res['catID']=='32'){ ?>
                    <h3 class="text-center">Looking for <?php echo $cat_res['keyword2']; ?> <span> Wholesale Suppliers in <?=$ca_nam1;?>?</span></h3>
                    <? } else { ?>
                        <h3 class="text-center">Looking for <?php echo $cat_res['catName']; ?> <span> Wholesale Suppliers in <?=$ca_nam1;?></span></h3>
                        <? } ?>
                    <div class="text-center" > <?=html_entity_decode($page_desc1);?></div>
                </div>
            </div>
            <div class="product_page">
                <div class="container">
                    <div class="row">
                        <div class="col-md-5 col-12">
                            <div class="more_images">
                                <div class="single_image">
                                    <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');$('.catName').html('<?php echo $cat_res['catName']; ?>');$('.catImg').attr('src','<?= $imglink; ?>');  $('.catImg').attr('alt','<?= $alttag; ?>'); $('.catImg').attr('title','<?= $alttag; ?>');" title="<?= $disTitles; ?>"><img id="largeImage" src="<?= $imglink; ?>" alt="<?= $disTitles; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $disTitles; ?> Manufacturers in <?=$ca_nam1;?>">
                                    </a>
                                </div>
                                <div id="thumbs">
                                    <?php
                                    if (!empty($multi_image[0])) {
                                        $snn = 1;
                                        foreach ($multi_image as $multi_imag_vals) { ?>
                                            <img class="<?= $snn == '1' ? 'active' : '' ?>" src="<?= site_url; ?>/uploaded-files/category/images/<?= $multi_imag_vals; ?>" alt="<?= $disTitles; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $disTitles; ?> Manufacturers in <?=$ca_nam1;?>">

                                        <?php $snn++;
                                        }
                                    }
                                    if ($cat_res['catVideo'] != '') { ?>
                                        <div class="item youtube">
                                            <a data-fancybox="" href="https://www.youtube.com/watch?v=<?= $cat_res['catVideo']; ?>" title="<?= $disTitles; ?>  in <?=$ca_nam1;?>">
                                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                    <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z">
                                                    </path>
                                                </svg>
                                            </a>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-7 col-12">
                            <div class="pro-des">
                                <div class="pr-tt"><?= $disTitles; ?> in <?=$ca_nam1;?></div>
                                <!-- <div class="price"><?= $cat_res['price']; ?></div> -->
                                <div class="btn-grp">
                                    <?php if ($cat_res['catalog'] != '') { ?>
                                        <div class="productBrochureandvideo">
                                            <a href="javascript:void();" title="Product Brochure" target="_blank">
                                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-pdf" viewBox="0 0 16 16">
                                                    <path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38.574.574 0 0 1-.238.241.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181.123.122.185.296.185.522Zm1.217-1.333v3.999h1.46c.401 0 .734-.08.998-.237a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084 0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.589-.68c-.264-.156-.599-.234-1.005-.234H3.362Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592 1.14 1.14 0 0 1-.196.422.8.8 0 0 1-.334.252 1.298 1.298 0 0 1-.483.082h-.563v-2.707Zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638H7.896Z">
                                                    </path>
                                                </svg>

                                                <span>Product Brochure</span>
                                            </a>
                                        </div>
                                    <?php } ?>
                                    <?php if ($cat_res['catVideo'] != '') { ?>
                                        <a href="https://www.youtube.com/watch?v=<?= $cat_res['catVideo']; ?>" data-fancybox class="v-btn">
                                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z">
                                                </path>
                                            </svg>
                                        </a>
                                    <?php } ?>
                                </div>
                                <div class="des">
                                    <?php if ($cat_res['catDesc1'] != '') { ?>
                                        <span>Product Description:</span>
                                        <?= $cat_res['catDesc1']; ?>
                                    <?php } ?>
                                    <?php if ($cat_res['ingrediants'] != '') { ?>
                                        <span>Ingredients:</span>
                                        <?= html_entity_decode($cat_res['ingrediants']); ?>
                                    <?php } ?>
                                    <div class="btn-grp mb-0">
                                        <a class="moreBtn" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>'); $('.catName').html('<?php echo $cat_res['catName']; ?>'); $('.catImg').attr('src','<?= $imglink; ?>');  $('.catImg').attr('alt','<?= $alttag; ?>'); $('.catImg').attr('title','<?= $alttag; ?>');" title="Enquire Now">
                                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
                                                </path>
                                            </svg> Enquire Now</a>

                                        <a class="w-btn" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#whatsapp" title="Whatsapp Now"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                <path d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z">
                                                </path>
                                            </svg></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php if ($cat_res['catDesc2'] != '' || $cat_res['benefits'] != '' || $cat_res['direction'] != '' || $cat_res['nutrition'] != '') { ?>
                        <div class="cmmt_nav mt-5">
                            <ul class="nav nav-tabs" id="myTab" role="tablist">
                                <?php if ($cat_res['catDesc2'] != '') { ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link active" id="description" data-bs-toggle="tab" data-bs-target="#description-pane" type="button" role="tab" aria-controls="description-pane" aria-selected="true">Product Details</button>
                                    </li>
                                <?php }
                                if ($cat_res['benefits'] != '') { ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="true">Benefits</button>
                                    </li>
                                <?php }
                                if ($cat_res['direction'] != '') { ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile-tab-pane" type="button" role="tab" aria-controls="profile-tab-pane" aria-selected="false">Direction of Use</button>
                                    </li>
                                <?php }
                                if ($cat_res['nutrition'] != '') { ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link" id="contact-tab" data-bs-toggle="tab" data-bs-target="#contact-tab-pane" type="button" role="tab" aria-controls="contact-tab-pane" aria-selected="false">Nutritional Facts</button>
                                    </li>
                                <?php } ?>
                            </ul>
                            <div class="tab-content" id="myTabContent">
                                <div class="tab-pane fade show active" id="description-pane" role="tabpanel" aria-labelledby="description" tabindex="0">
                                    <?= html_entity_decode($cat_res['catDesc2']); ?>
                                </div>
                                <div class="tab-pane fade" id="home-tab-pane" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
                                    <p> <?= html_entity_decode($cat_res['benefits']); ?></p>
                                </div>
                                <div class="tab-pane fade" id="profile-tab-pane" role="tabpanel" aria-labelledby="profile-tab" tabindex="0">
                                    <p> <?= html_entity_decode($cat_res['direction']); ?></p>
                                </div>
                                <div class="tab-pane fade" id="contact-tab-pane" role="tabpanel" aria-labelledby="contact-tab" tabindex="0">
                                    <p> <?= html_entity_decode($cat_res['nutrition']); ?></p>
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                </div>
            </div>

         

            <?php if ($cat_res['catID'] != 1) {  ?>
                <div class="webpulse_home_featured">
                    <div class="container">
                        <div class="tt-bx">
                            <div class="tt">Other <span>Variants</span></div>
                            <p>Explore our Other Variants for a diverse culinary experience. Discover unique flavours and innovative
                                twists to elevate your health journey!</p>
                        </div>
                        <div class="clearfix"></div>
                        <div id="featuredProducts" class="owl-carousel">
                            <?php $variant = ['5 Kg Pack', '10 Kg Pack', '15 Kg Pack', '20 Kg Pack'];
                            foreach ($variant as $variantval) {
                                $product_name = $disTitles . ' ' . $variantval;
                            ?>
                                <div class="productBox">
                                    <div class="productImg">
                                        <a href="#">
                                            <img src="<?= getImage($cat_res[catImage], 400, 400, $cat_res[catName], "/uploaded-files/category/images/"); ?>" alt="<?= $product_name; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $product_name; ?> Manufacturers in <?=$ca_nam1;?>">
                                        </a>
                                        <a href="javascript:void(0);" class="link" title="<?= $product_name; ?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link-45deg" viewBox="0 0 16 16">
                                                <path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z">
                                                </path>
                                                <path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z">
                                                </path>
                                            </svg></a>
                                    </div>
                                    <div class="productContent">
                                        <h4 class="productTitle"><a href="javascript:void(0);"><?= $product_name; ?></a></h4>
                                        <!-- <div class="price mb-2">₹ 300/ 10kg Pack</div> -->
                                        <a class="moreBtn" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');
                    $('.catName').html('<?php echo $product_name; ?>');
                     $('.catImg').attr('src','<?= $imglink; ?>');  $('.catImg').attr('alt','<?= $product_name; ?>'); $('.catImg').attr('title','<?= $product_name; ?>');" title="<?= $disTitles; ?>" ><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
                                                </path>
                                            </svg> Enquire Now</a>
                                    </div>
                                </div>
                            <?php } ?>

                        </div>
                    </div>
                </div>
            <?php } ?>

        <?php } else {  ?>
            <section class="heading_banner" style="background-image: url(<?= site_url; ?>/designer/images/about/abt-banner.jpg)">
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                            <h1 class="cat_title"><?= $heading1; ?></h1>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </section>

            <div class="inner_breadcrumb hidden_xs">
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <ul class="breadcrumb">
                                <?php if ($num4 > 0) { ?>
                                    <li><a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($cat_res4['catName']); ?>.htm" title="<?php echo $cat_res4['catName']; ?> "><?php echo $cat_res4['catName']; ?></a>
                                    </li>
                                <?php } ?>
                                <?php if ($num3 > 0) { ?>
                                    <li><a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($cat_res3['catName']); ?>.htm" title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['catName']; ?></a>
                                    </li>
                                <?php } ?>
                                <?php if ($num2 > 0) { ?>
                                    <li><a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($cat_res2['catName']); ?>.htm" title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['catName']; ?></a>
                                    </li>
                                <?php  } ?>
                                <li class="active"><?php echo $cat_res['catName']; ?></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <section class="category_page">
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <!-- <h2 class="title_2"><?= $heading2; ?></h2> -->

                            <div class="right_side">
                                <div class="wps_right">
                                    <div class="product_right_image">
                                        <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');
                                        $('.catName').html('<?php echo $cat_res['catName']; ?>');
                                        $('.catImg').attr('src','<?= $imglink; ?>');  $('.catImg').attr('alt','<?= $alttag; ?>'); $('.catImg').attr('title','<?= $alttag; ?>');" title="<?= $alttag; ?>">
                                            <div class="detail_image">
                                                <img class="img-responsive" src="<?= $imglink; ?>" alt="<?= $alttag; ?>" title="<?= $alttag; ?>">
                                            </div>
                                            <span class="moreBtn" title="Get Best Quote"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                    <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
                                                    </path>
                                                </svg> Get Best Quote</span>
                                        </a>

                                    </div>
                                    <?php if($page_desc!=''){ ?>
<?=html_entity_decode($page_desc);?>
<?php }else{ ?>
<?=html_entity_decode($page_desc1);?>
<?php   } ?>
                                    <?php


                                    $product_s = mysqli_query($GLOBALS['dbconn'], "select product_image,product_title,catalog,product_id,product_video,product_specfi from product_tbl where   FIND_IN_SET('" . $cat_res['catID'] . "',product_cat) ");
                                    $num = mysqli_num_rows($product_s);
                                    if ($num > 0) {    ?>
                                        <div class="you_may">You may Also Like These</div>
                                        <div class="allListing">
                                            <?php $i = 1;
                                            while ($product_r = mysqli_fetch_array($product_s)) {
                                                $pro_image =  explode(',', $product_r['product_image']);
                                                $probig_img = $pro_image[0];
                                                $prod_img = getImage($probig_img, 371, 371, $product_r['product_title'], "/uploaded-files/product-images/");
                                                $prod_imgsmall = getImage($probig_img, 175, 177, $product_r['product_title'], "/uploaded-files/product-images/");
                                            ?>
                                                <div class="product_listing">
                                                    <div class="row">
                                                        <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                                                            <div class="product">
                                                                <div class="single_image">
                                                                    <a class="largeImage" id="bigImage<?= $i; ?>" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="<?= $product_r['product_title']; ?> in <?=$ca_nam1;?>">
                                                                        <img src="<?= $prod_img; ?>" alt="<?= $product_r['product_title']; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $product_r['product_title']; ?> Manufacturers in <?=$ca_nam1;?>">
                                                                    </a>
                                                                    <div id="small<?= $i; ?>" class="small">

                                                                        <?php
                                                                        if (!empty($pro_image[1])) {
                                                                            $snn = 1;
                                                                            foreach ($pro_image as $pro_imag_vals) { ?>
                                                                                <img class="item active" src="<?= site_url; ?>/uploaded-files/product-images/<?= $pro_imag_vals; ?>" alt="<?= $product_r['product_title']; ?> Manufacturers, Suppliers in <?=$ca_nam1;?>" title="<?= $product_r['product_title']; ?> Manufacturers, Suppliers in <?=$ca_nam1;?>">
                                                                        <?php $snn++;
                                                                            }
                                                                        } ?>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-12">
                                                                <div class="right-content">
                                                                    <h3><?= $product_r['product_title']; ?></h3>
                                                                    <div class="blue-line1"></div>
                                                                    <div class="more_info">
                                                                        <?= html_entity_decode($product_r['product_specfi']); ?>
                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                    <a class="moreBtn" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $product_r['product_id']; ?>');
            $('.catName').html('<?php echo $product_r['product_title']; ?>');  $('.catImg').attr('src','<?= site_url; ?>/uploaded-files/product-images/<?= $probig_img; ?>'); $('.catImg').attr('alt','<?= $product_r['product_title']; ?> in <?=$ca_nam1;?>'); $('.catImg').attr('title','<?= $product_r['product_title']; ?> in <?=$ca_nam1;?>');" title="Get Best Quote"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                                            <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" />
                                                                        </svg> Get Best Quote</a>
                                                                    <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#callback" class="moreBtn callback" onclick="$('.catID').val('<?php echo $product_r['product_id']; ?>');
            $('.catName').html('<?php echo $product_r['product_title']; ?>');  $('.catImg').attr('src','<?= $prod_imgsmall; ?>'); $('.catImg').attr('alt','<?= $product_r['product_title']; ?> in <?=$ca_nam1;?>'); $('.catImg').attr('title','<?= $product_r['product_title']; ?> in <?=$ca_nam1;?>');" title="Request A Callback">
                                                                        <svg fill="currentColor" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                                                                            <g data-name="Layer 2">
                                                                                <g data-name="phone-call">
                                                                                    <rect width="24" height="24" opacity="0" />
                                                                                    <path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z" />
                                                                                    <path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z" />
                                                                                    <path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.54.28c-.86.45-1.54.81-1.18 1.59a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z" />
                                                                                </g>
                                                                            </g>
                                                                        </svg> Request A Callback</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                <?php $i++;
                                            }   ?>
                                                </div>
                                            <?php } ?>
                                        </div>
                                </div>
                            </div>
                        </div>
                    </div>
            </section>
        <?php } ?>
        <?php if ($cat_res['catID'] == 1 || $cat_res['catID'] == 2) {  ?>
            <div class="webpulse_home_featured">
                <div class="container">
                    <div class="tt-bx">
                        <?php if ($cat_res['catID'] != 2) { ?>
                            <div class="tt"><span><?= $disTitles; ?> Range</span></div>
                        <?php } ?>
                    </div>
                    <div class="clearfix"></div>
                    <div id="featuredProducts" class="owl-carousel">
                        <?php

                        while ($sub_res = mysqli_fetch_array($cat_qry)) {
                            if ($sub_res['catImage'] != '') {
                                $img_link = getImage($sub_res[catImage], 400, 400, $sub_res[catName], "/uploaded-files/category/images/");
                                $img_link1 = getImage($sub_res[catImage], 436, 429, $sub_res[catName], "/uploaded-files/category/images/");
                            } else {
                                $img_link = getImage("noimage.jpg",  400, 400, "noimages", "/uploaded-files/category/images/");
                                $img_link1 = getImage("noimage.jpg", 436, 429, "noimages", "/uploaded-files/category/images/");
                            }
                            $sub_desc = $sub_res['catDesc'];
                            $sub_desc = str_ireplace('{companyName}', $admin_res['companyName'], $sub_desc);
                        ?>

                            <div class="productBox">
                                <div class="productImg">
                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?>  in <?=$ca_nam1;?>">
                                        <img src="<?= $img_link; ?>" alt="<?= $sub_res['displayName']; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $sub_res['displayName']; ?> Manufacturers  in <?=$ca_nam1;?>">
                                    </a>
                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="link" title="<?= $sub_res['displayName']; ?>  in <?=$ca_nam1;?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link-45deg" viewBox="0 0 16 16">
                                            <path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z">
                                            </path>
                                            <path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z">
                                            </path>
                                        </svg></a>
                                </div>
                                <div class="productContent">
                                    <h4 class="productTitle"><a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?>  in <?=$ca_nam1;?>"><?= $sub_res['displayName']; ?></a></h4>
                                    <!-- <div class="price mb-2">₹ 300/ 10kg Pack</div> -->

                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="moreBtn" title="Read More">Read More</a>
                                </div>
                            </div>
                        <?php } ?>

                    </div>
                </div>
            </div>
        <?php } else { 
            if ($cat_res['parentID']!= 1 && $cat_res['parentID'] != 31)  { ?>
            <div class="webpulse_home_featured">
                <div class="container">
                    <div class="tt-bx">
                        <div class="tt"><span><?= $disTitles; ?> Range</span></div>

                    </div>
                    <div class="clearfix"></div>
                    <div id="featuredProducts" class="owl-carousel">
                        <?php
                        $catIDSs = $cat_res['catID'];
                        $subcat_sql = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName, catDesc, catID, catDesc1, parentID from category_tbl where relatedcatID ='$catIDSs' and status='Y' order by catOrder Asc");
                        if (mysqli_num_rows($subcat_sql) > 0) {
                            $subsql = $subcat_sql;
                        } else {
                            $subsql = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName, catDesc, catID, catDesc1, parentID from category_tbl where parentID ='1' and status='Y'  order by catOrder Asc");
                        }
                        while ($sub_res = mysqli_fetch_array($subsql)) {
                            if ($sub_res['catImage'] != '') {
                                $img_link = getImage($sub_res[catImage], 400, 400, $sub_res[catName], "/uploaded-files/category/images/");
                                $img_link1 = getImage($sub_res[catImage], 436, 429, $sub_res[catName], "/uploaded-files/category/images/");
                            } else {
                                $img_link = getImage("noimage.jpg",  400, 400, "noimages", "/uploaded-files/category/images/");
                                $img_link1 = getImage("noimage.jpg", 436, 429, "noimages", "/uploaded-files/category/images/");
                            }
                            $sub_desc = $sub_res['catDesc'];
                            $sub_desc = str_ireplace('{companyName}', $admin_res['companyName'], $sub_desc);
                        ?>

                            <div class="productBox">
                                <div class="productImg">
                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers  in <?=$ca_nam1;?>">
                                        <img src="<?= $img_link; ?>" alt="<?= $sub_res['displayName']; ?> Manufacturers in <?=$ca_nam1;?>" title="<?= $sub_res['displayName']; ?> Manufacturers  in <?=$ca_nam1;?>">
                                    </a>
                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="link" title="<?= $sub_res['displayName']; ?>  in <?=$ca_nam1;?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link-45deg" viewBox="0 0 16 16">
                                            <path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z">
                                            </path>
                                            <path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z">
                                            </path>
                                        </svg></a>
                                </div>
                                <div class="productContent">
                                    <h4 class="productTitle"><a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers  in <?=$ca_nam1;?>"><?= $sub_res['displayName']; ?></a></h4>
                                    <!-- <div class="price mb-2">₹ 300/ 10kg Pack</div> -->

                                    <a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="moreBtn" title="Read More">Read More</a>
                                </div>
                            </div>
                        <?php } ?>

                    </div>
                </div>
            </div>
        <?php } } ?>
        <?php include "app_faqs.php"; ?>
        <?php include 'app_video.php'; ?>
        <?php include "app_footer_sub.php"; ?>
        <?php include "app_bottom.php"; ?>
        <script>
            $('#small1 .item').click(function() {
                $('#bigImage1 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small1 .item").removeClass("active");
                } else {
                    $("#small1 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });
            $('#small2 .item').click(function() {
                $('#bigImage2 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small2 .item").removeClass("active");
                } else {
                    $("#small2 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });

            $('#small3 .item').click(function() {
                $('#bigImage3 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small3 .item").removeClass("active");
                } else {
                    $("#small3 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });

            $('#small4 .item').click(function() {
                $('#bigImage4 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small4 .item").removeClass("active");
                } else {
                    $("#small4 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });

            $('#small5 .item').click(function() {
                $('#bigImage5 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small5 .item").removeClass("active");
                } else {
                    $("#small5 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });

            $('#small6 .item').click(function() {
                $('#bigImage6 img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                if ($(this).hasClass("active")) {
                    $("#small1 .item").removeClass("active");
                } else {
                    $("#small6 .item").removeClass("active");
                    $(this).addClass("active");
                }
            });
        </script>
    </body>

    </html>
<?php
}
else
{
    header("Location: ".site_url);
    exit;
}
?>