<?php include_once('include/main.inc.php');
   $hover="home";
   $homepage = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='1' and status='Y'");
   $home_res = mysqli_fetch_array($homepage);
   @extract($_REQUEST);
   $ca_nam1=$_REQUEST['cid'];
      $ca_nam1=ucwords(str_replace("-"," ",$cid));
      $sql_locas=mysqli_query($GLOBALS['dbconn'], "select locationID,locationName from location_tbl where locationName='$ca_nam1' and status='Y'");
      $location = mysqli_fetch_array($sql_locas);
      $location_id = $location['locationID']; 
      $ca_nam1= $location['locationName'];
      $category_sub_general=mysqli_query($GLOBALS['dbconn'],"select location_ids,meta_title,meta_keyword,meta_description,description,short_description from location_content_tbl where category_id='0' 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_metatitle=$categorysubdomain['meta_title'];
                  }
                  if($categorysubdomain['meta_keyword'] != ''){
                      $page_metakey=$categorysubdomain['meta_keyword'];
                  }
                  if($categorysubdomain['meta_description']){
                      $page_metadesc=$categorysubdomain['meta_description'];
                  }
                  $page_desc=html_entity_decode($categorysubdomain['description']);
              }
          }
      //    specific location content
      }
   if($home_res['keyword1']!='' && $home_res['keyword2']!=''){
       $m_title="hotkeyword1 in location, hotkeyword2 Manufacturers, Suppliers, Exporters location";
       $page_metatitle=str_replace('hotkeyword1',$home_res[keyword1],str_replace('hotkeyword2', $home_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',$home_res[keyword1],str_replace('hotkeyword2', $home_res[keyword2],  str_replace('location', $ca_nam1, $m_keyword)));
       $m_desc="Get Premium Quality hotkeyword1 in location from companyName, Leading hotkeyword2 Manufacturers, Suppliers, Exporters. Supplying hotkeyword1 in location at Factory Price. Call phone";
       $page_metadesc= str_replace('hotkeyword1',$home_res[keyword1],str_replace('hotkeyword2', $home_res[keyword2],str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile_meta], str_replace('location', $ca_nam1,$m_desc)))));
   }
   $page_desc = str_ireplace('countryname',$ca_nam1, $page_desc);
   $page_desc = str_ireplace('{location}',$ca_nam1, $page_desc);
   $page_desc = str_ireplace('catname',$pid, $page_desc);
   $page_desc = str_ireplace('{companyName}',$admin_res['companyName'],$page_desc);
   $page_metatitle = str_replace('{location}',$ca_nam1,$page_metatitle);
   $page_metakey = str_ireplace('{location}',$ca_nam1,$page_metakey);
   $page_metadesc = str_ireplace('{location}',$ca_nam1,$page_metadesc);
   $home_sub_uncheck_loc=mysqli_query($GLOBALS['dbconn'],"select description,short_description,meta_title,meta_description,meta_keyword from location_content_tbl where category_id='0' AND location_id='0'");
   $home_sub_uncheck_res=mysqli_fetch_array($home_sub_uncheck_loc);
   $page_desc1=$home_sub_uncheck_res['description'];
   $page_metatitle1=$home_sub_uncheck_res['meta_title'];
   $page_metakey1=$home_sub_uncheck_res['meta_keyword'];
   $page_metadesc1=$home_sub_uncheck_res['meta_description'];
   $page_desc1 = str_ireplace('{location}',$ca_nam1,  $page_desc1);
   $page_metatitle1 = str_ireplace('{location}',$ca_nam1,$page_metatitle1);
   $page_metakey1 = str_ireplace('{location}',$ca_nam1,$page_metakey1);
   $page_metadesc1 = str_ireplace('{location}',$ca_nam1,$page_metadesc1);
   $page_metatitle=($page_metatitle!='')?$page_metatitle:$page_metatitle1;
   $page_metakey=($page_metakey!='')? $page_metakey: $page_metakey1;
   $page_metadesc=($page_metadesc!='')?$page_metadesc:$page_metadesc1;
   $page_desc1 = str_ireplace('{companyName}',$admin_res['companyName'],$page_desc1);
   if(mysqli_num_rows($sql_locas) > 0)
   {
   }else 
       {
       header("Location: ".site_url);
                   exit;
   }
   $page_metadesc=str_ireplace('{companyName}',$admin_res['companyName'],$page_metadesc);
   ?>

<!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"; ?>

    <div class="home_slider">
        <div id="carouselExampleControls" class="carousel slide carousel-fade" data-bs-ride="carousel">
            <div class="carousel-inner">
            <?php
                $i = 1;
                $sql_banner = mysqli_query($GLOBALS['dbconn'], "Select bannerImage, personName,Decs,bannerUrl from banner_tbl where status='Y' order by bannerorder ASC");
                while ($res_banner = mysqli_fetch_array($sql_banner)) { ?>
                <div class="carousel-item <?= $i == 1 ? 'active' : ''; ?>">
                    <img src="<?=site_url;?>/uploaded-files/banner-image/<?=$res_banner['bannerImage'];?>"  alt="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>"
                    title="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>" class="d-block w-100" alt="">
                </div>
                <?php $i++; } ?>
             

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

    <section class="homeAbout bg-white">
        <div class="container">
            <div class="tt-bx">
                <div class="tt">Our Process <span>3 Simple Steps</span></div>
                <p>Discover seamless collaboration with us in just three straightforward steps. From sharing your requirements to finalizing the product, our process ensures efficiency, clarity, and satisfaction every step of the way.</p>
            </div>
            <div class="step-container bg-light wow fadeInUp">
                <div class="row">
                    <div class="col-md-4 col-12">
                        <div class="step-bx">
                            <div class="img-bx">
                                <div class="count">1</div>
                                <img src="<?=site_url;?>/designer/images/icon/support.webp" alt="Call Us" title="Call Us">
                            </div>
                            <div class="tx-bx">
                                Call us at <?=$admin_res['mobile'];?> <br> and share requirements
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4 col-12">
                        <div class="step-bx">
                            <div class="img-bx">
                                <div class="count">2</div>
                                <svg fill="#000000" width="40px" height="40px" viewBox="0 0 270.92 270.92"
                                    style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
                                    version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
                                    xmlns:xlink="http://www.w3.org/1999/xlink">



                                    <g id="Layer_x0020_1">

                                        <path class="fil0"
                                            d="M191.33 45.73l-20.59 0c-1.95,0 -3.53,1.57 -3.53,3.52 0,1.95 1.58,3.53 3.53,3.53l20.59 0c6.14,0 11.15,5.29 11.15,11.82l0 154.28c0,6.52 -5.01,11.82 -11.15,11.82l-111.73 0c-6.15,0 -11.15,-5.3 -11.15,-11.82l0 -154.28c0,-6.53 5,-11.82 11.15,-11.82l20.59 0c1.95,0 3.53,-1.58 3.53,-3.53 0,-1.95 -1.58,-3.52 -3.53,-3.52l-20.59 0c-10.05,0 -18.21,8.45 -18.21,18.87l0 154.28c0,10.42 8.16,18.87 18.21,18.87l111.73 0c10.04,0 18.21,-8.45 18.21,-18.87l0 -154.28c0,-10.42 -8.17,-18.87 -18.21,-18.87zm-86.94 123.83c-1.96,0 -3.54,1.58 -3.54,3.53 0,1.95 1.58,3.53 3.54,3.53l31.07 0c1.95,0 3.53,-1.58 3.53,-3.53 0,-1.95 -1.58,-3.53 -3.53,-3.53l-31.07 0zm65.69 -21c0,-1.95 -1.58,-3.52 -3.53,-3.52l-62.16 0c-1.96,0 -3.54,1.57 -3.54,3.52 0,1.95 1.58,3.53 3.54,3.53l62.16 0c1.95,0 3.53,-1.58 3.53,-3.53zm-3.53 -29.29l-62.16 0c-1.96,0 -3.54,1.58 -3.54,3.53 0,1.95 1.58,3.53 3.54,3.53l62.16 0c1.95,0 3.53,-1.58 3.53,-3.53 0,-1.95 -1.58,-3.53 -3.53,-3.53zm-65.7 -21.42c0,1.95 1.58,3.52 3.54,3.52l62.16 0c1.95,0 3.53,-1.57 3.53,-3.52 0,-1.95 -1.58,-3.53 -3.53,-3.53l-62.16 0c-1.96,0 -3.54,1.58 -3.54,3.53zm2.87 -32.92c0,-1.95 -1.58,-3.53 -3.53,-3.53l-6.24 0c-7.56,0 -13.7,6.15 -13.7,13.71l0 127.78c0,7.55 6.14,13.71 13.7,13.71l83.03 0c7.56,0 13.69,-6.16 13.69,-13.71l0 -127.78c0,-7.56 -6.13,-13.71 -13.69,-13.71l-6.24 0c-1.95,0 -3.53,1.58 -3.53,3.53 0,1.95 1.58,3.53 3.53,3.53l6.24 0c3.66,0 6.64,2.98 6.64,6.65l0 127.78c0,3.66 -2.98,6.65 -6.64,6.65l-83.03 0c-3.66,0 -6.64,-2.99 -6.64,-6.65l0 -127.78c0,-3.67 2.98,-6.65 6.64,-6.65l6.24 0c1.95,0 3.53,-1.58 3.53,-3.53zm13.29 -12.6l36.91 0 0 17.04 -36.91 0 0 -17.04zm18.61 -12.09c3.33,0 6.17,2.1 7.3,5.04l-14.61 0c1.12,-2.94 3.97,-5.04 7.31,-5.04zm-22.14 36.17l43.97 0c1.95,0 3.53,-1.58 3.53,-3.53l0 -24.07c0,-1.95 -1.58,-3.53 -3.53,-3.53l-7.26 0c-1.31,-6.87 -7.33,-12.1 -14.57,-12.1 -7.24,0 -13.26,5.21 -14.58,12.1l-7.56 0c-1.95,0 -3.53,1.58 -3.53,3.53l0 24.07c0,1.95 1.58,3.53 3.53,3.53z">

                                        </path>
                                    </g>

                                </svg>
                            </div>
                            <div class="tx-bx">
                                Our expert <br> will share best proposal
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4 col-12">
                        <div class="step-bx">
                            <div class="img-bx">
                                <div class="count">3</div>
                                <img src="<?=site_url;?>/designer/images/icon/delivery.webp" alt="Delivery" title="Delivery">
                            </div>
                            <div class="tx-bx">
                                Once you finalize the product <br> we are good to go
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12  col-md-12 col-sm-12 col-12">
                    <div class="homeRight wow fadeInRight mt-3" data-wow-delay=".2s">
                        <img src="<?=getImage($home_res['pageImage'], 500, 500, $home_res['pageTitle'], "/uploaded-files/page-images/");?>" alt="Packaging Machine Manufacturers in <?=$ca_nam1;?>" title="Packaging Machine Manufacturers in <?=$ca_nam1;?>">
                    </div>
                    <h1><span>Packaging Machine</span> Manufacturers in <?=$ca_nam1;?> </h1>
                    <div class="more-contents1">
                    <?php if($page_desc!=''){ ?>
                                <?=html_entity_decode($page_desc);?>
                                    <?php }else{ ?>
                                    <?=html_entity_decode($page_desc1);?>
                                    <?php   } ?>
                    </div>
                    <a href="<?=site_url;?>/about-us.htm" title="View More" class="readMore">View More 
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"></path>
                        </svg>
                    </a>
                </div>
            </div>
        </div>
    </section>

    <section class="offerSection bg-light">
        <div class="container">
            <div class="tt-bx">
                <div class="tt">Our <span>Products</span></div>
                <p>Explore our diverse range of high-quality products, meticulously designed to meet your needs. From cutting-edge technology to innovative solutions, discover excellence and reliability in every product showcased in this section.

                </p>
            </div>
            <div class="offerList">
                <div class="row">
                <?php 
                     $home_cat1=mysqli_query($GLOBALS['dbconn'],"select catImage, catName, displayName, catDesc, catID from category_tbl where home_category='1' and status='Y' order by homeorder asc limit 0,8");
                     while($home_cat_res2=mysqli_fetch_assoc($home_cat1)){
                     if($home_cat_res2['catImage'] != ''){
                     $imglink=getImage($home_cat_res2[catImage], 350, 350, $home_cat_res2[catName],"/uploaded-files/category/images/");
                     }else{
                     $imglink = site_url."/uploaded-files/category/images/noimage.jpg";
                     }
                     $catIdss=$home_cat_res2['catID'];
                     $sql_content=mysqli_query($dbconn,"select short_description from location_content_tbl where category_id ='$catIdss'");
                     $res_content=mysqli_fetch_array($sql_content);
                     $subcontent_descc=html_entity_decode($res_content['short_description']);
                     $subcontent_desccc=str_ireplace('{location}', $ca_nam1, $subcontent_descc );
                     $subcontent_descccc=str_ireplace('catname', $res_cat['catName'], $subcontent_desccc );
                     $subcontent_descccc=str_ireplace('{companyName}',$admin_res['companyName'], $subcontent_descccc);
                     ?>
                    <div class="col-lg-3 col-md-6 col-12">
                        <div class="offerBox wow fadeInUp">
                            <div class="image">
                                <img src="<?=$imglink;?>" alt="<?=$home_cat_res2['displayName'];?> Manufacturers in <?=$ca_nam1;?>" title="<?=$home_cat_res2['displayName'];?> Manufacturers in <?=$ca_nam1;?>">
                            </div>
                            <div class="offerDetail">
                                <div class="tt" title="<?=$home_cat_res2['displayName'];?> Manufacturers in <?=$ca_nam1;?>"><?=$home_cat_res2['displayName'];?></div>
                                <p><?=substr($subcontent_descccc,0,120);?>...</p>
                                <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res2['catName']);?>.htm" title="View More" class="readMore">View More <svg
                                        xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                        viewBox="0 0 16 16">
                                        <path fill-rule="evenodd"
                                            d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z">
                                        </path>
                                    </svg>
                                </a>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                   
                    <div class="col-12 text-center">
                        <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/pouch-packing-machine.htm" title="View All Products" class="readMore">View All Products <svg
                                xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                viewBox="0 0 16 16">
                                <path fill-rule="evenodd"
                                    d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z">
                                </path>
                            </svg></a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div class="whyChoose">
        <div class="container">
            <div class="tt-bx">
                <div class="tt text-white">What makes us the <span>Best In Industry</span></div>
                <p class="text-white">
                Uncover why we stand out in the industry. From unparalleled expertise to a commitment to innovation and customer satisfaction, explore what sets us apart as leaders in our field.
                </p>
            </div>
            <div class="row g-0">
                <div class="col-lg-3 col-md-3 col-6 wow fadeInLeft">
                    <div class="count-bx">
                        <div class="ic-bx">
                            <img src="<?=site_url;?>/designer/images/icon/epertise.webp" alt="Year of Expertise" title="Year of Expertise">
                        </div>
                        <div class="tx-bx">
                            <div class="coun">
                                <span id="count1">0</span><span>+</span>
                            </div>
                            <p>Year of Expertise</p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-6 wow fadeInLeft" data-wow-delay=".2s">
                    <div class="count-bx">
                        <div class="ic-bx">
                            <img src="<?=site_url;?>/designer/images/icon/clients.webp" alt="Clients" title="Clients">
                        </div>
                        <div class="tx-bx">
                            <div class="coun">
                                <span id="count2">0</span><span>+</span>
                            </div>
                            <p> Clients</p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-6 wow fadeInLeft" data-wow-delay=".4s">
                    <div class="count-bx">
                        <div class="ic-bx">
                            <img src="<?=site_url;?>/designer/images/icon/products.webp" alt="Projects Completed" title="Projects Completed">
                        </div>
                        <div class="tx-bx">
                            <div class="coun">
                                <span id="count3">0</span><span>+</span>
                            </div>
                            <p>Projects Completed</p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-6 wow fadeInLeft" data-wow-delay=".6s">
                    <div class="count-bx border-0">
                        <div class="ic-bx">
                            <img src="<?=site_url;?>/designer/images/icon/SATISFACTION.webp" alt="Satisfied Customers!" title="Satisfied Customers!">
                        </div>
                        <div class="tx-bx">
                            <div class="coun">
                                <span id="count4">0</span><span>%</span>
                            </div>
                            <p>Satisfied Customers!</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

   
    <?php include "app_faq.php"; ?>

    <?php include "app_clients.php"; ?>
    <?php include "app_footer_sub.php"; ?>
    <?php include "app_bottom.php"; ?>
    <script>
        document.addEventListener('DOMContentLoaded', () => { 
    const buttons = document.querySelectorAll('.owl-carousel button'); 
    const buttons2 = document.querySelectorAll('button.dropdown-expander');  
    buttons.forEach((button, index) => { 
        button.setAttribute('title', `Vista Technopack Machines`);
    });
        buttons2.forEach((button, index) => { 
            button.setAttribute('title', `dropdown`); 
        });
    });
    </script>
</body>

</html>