<?php include_once('include/main.inc.php');
$hover = "home";
$homepage = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageDesc1,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,description2,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']);
            $page_desc1 = html_entity_decode($categorysubdomain['description2']);
        }
    }
    //    specific location content
}
if ($home_res['keyword1'] != '' && $home_res['keyword2'] != '') {
    $m_title = "hotkeyword1 in location, hotkeyword2 Services, 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 Services in location, hotkeyword2 Services 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 Services, 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_replace('countryname', $ca_nam1, $page_desc);
$page_desc = str_replace('{location}', $ca_nam1, $page_desc);
$page_desc = str_replace('catname', $pid, $page_desc);
$page_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc);

$page_desc1 = str_replace('countryname', $ca_nam1, $page_desc1);
$page_desc1 = str_replace('{location}', $ca_nam1, $page_desc1);
$page_desc1 = str_replace('catname', $pid, $page_desc1);
$page_desc1 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc1);
$page_metatitle = str_replace('{location}', $ca_nam1, $page_metatitle);
$page_metakey = str_replace('{location}', $ca_nam1, $page_metakey);
$page_metadesc = str_replace('{location}', $ca_nam1, $page_metadesc);
$home_sub_uncheck_loc = mysqli_query($GLOBALS['dbconn'], "select description,description2,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);
$unchk_desc = $home_sub_uncheck_res['description'];
$unchk_desc1 = $home_sub_uncheck_res['description2'];
$page_metatitle1 = $home_sub_uncheck_res['meta_title'];
$page_metakey1 = $home_sub_uncheck_res['meta_keyword'];
$page_metadesc1 = $home_sub_uncheck_res['meta_description'];
$unchk_desc = str_replace('{location}', $ca_nam1,  $unchk_desc);
$unchk_desc = str_ireplace('{companyName}', $admin_res['companyName'], $unchk_desc);
$unchk_desc1 = str_replace('{location}', $ca_nam1,  $unchk_desc1);
$unchk_desc1 = str_ireplace('{companyName}', $admin_res['companyName'], $unchk_desc1);
$page_metatitle1 = str_replace('{location}', $ca_nam1, $page_metatitle1);
$page_metakey1 = str_replace('{location}', $ca_nam1, $page_metakey1);
$page_metadesc1 = str_replace('{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;

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="slider" class="carousel slide  carousel-fade" data-bs-ride="carousel">
            <div class="carousel-inner">

                <div class="carousel-item active">
                    <picture>
                        <source media="(max-width:650px)" srcset="<?= site_url; ?>/designer/images/slider/nqa-2024.webp">
                        <img src="<?= site_url; ?>/designer/images/slider/nqa-2024.webp" alt="National Quality Awards 2024" title="National Quality Awards 2024">
                    </picture>
                </div>

                <?php
                $i = 1;
                $sql_banner = mysqli_query($GLOBALS['dbconn'], "Select bannerImage, personName,Decs,bannerUrl,mobileBanner from banner_tbl where status='Y' order by slno ASC");
                while ($res_banner = mysqli_fetch_array($sql_banner)) { ?>
                    <div class="carousel-item <? //= $i == 1 ? 'active' : '';
                                                ?>">
                        <picture>
                            <source media="(max-width:650px)" srcset="<?= site_url; ?>/uploaded-files/banner-image/<?= $res_banner['mobileBanner']; ?>" title="<?= $res_banner['personName']; ?> Services in <?= $ca_nam1; ?>">
                            <img src="<?= site_url; ?>/uploaded-files/banner-image/<?= $res_banner['bannerImage']; ?>" <?= $i == 1 ? '' : 'loading="lazy"'; ?> alt="<?= $res_banner['personName']; ?> Services in <?= $ca_nam1; ?>" title="<?= $res_banner['personName']; ?> Services in <?= $ca_nam1; ?>">
                        </picture>
                        <div class="carousel-caption banner_inner d-flex">
                            <div class="container align-self-center">
                                <div class="banner_info">
                                    <div class="title_1"><?= $res_banner['personName']; ?></div>
                                    <p><?= $res_banner['Decs']; ?></p>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php $i++;
                } ?>

            </div>
            <div class="carousel-indicators">
                <button type="button" data-bs-target="#slider" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
                <button type="button" data-bs-target="#slider" data-bs-slide-to="1" aria-label="Slide 2"></button>
                <button type="button" data-bs-target="#slider" data-bs-slide-to="2" aria-label="Slide 3"></button>
                <button type="button" data-bs-target="#slider" data-bs-slide-to="3" aria-label="Slide 4"></button>
            </div>

            <button class="carousel-control-prev" type="button" data-bs-target="#slider" data-bs-slide="prev">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
                    <path fill-rule="evenodd"
                        d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z">
                    </path>
                </svg>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#slider" data-bs-slide="next">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
                    <path fill-rule="evenodd"
                        d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z">
                    </path>
                </svg>
                <span class="visually-hidden">Next</span>
            </button>
        </div>


        <svg class="path_type_1" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L70 100 L100.1 0 L100.1 100 L0 100 Z" fill="#fffcf9" stroke="#fffcf9" stroke-width="-1"></path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="transparent"></path>
        </svg>
    </div>

    <div class="w-p-s-home-feture">
        <div class="container">
            <div class="row">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".1s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/excellence.png" alt="Success Prediction" title="Success Prediction">
                        </div>
                        <div class="title_01">Success Prediction</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".2s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/privacy.png" alt="Privacy Guaranteed" title="Privacy Guaranteed">
                        </div>
                        <div class="title_01">Privacy Guaranteed</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".3s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/compass.png" alt="Qualified Vastu Consultant" title="Qualified Vastu Consultant">
                        </div>
                        <div class="title_01">Qualified Vastu Consultant</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".4s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/rating.png" alt="Trusted by Million Clients" title="Trusted by Million Clients">
                        </div>
                        <div class="title_01">Trusted by Million Clients</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="service_category">
        <div class="container">
            <?php $sn = 2;


            $home_cat1 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName,catBanner,faq_icon, catDesc, catID from category_tbl where catID='1' || catID='2' and status='Y' order by catOrder asc limit 0,6");
            while ($home_cat_res2 = mysqli_fetch_assoc($home_cat1)) {
                if ($home_cat_res2['faq_icon'] != '') {
                    $imglink = getImage($home_cat_res2[faq_icon], 650, 655, $home_cat_res2[catName], "/uploaded-files/category/icons/");
                } else {
                    $imglink = NO_IMG_URL;
                }
                $catIdss = $home_cat_res2['catID'];
                $sql_content = mysqli_query($dbconn, "select * from location_content_tbl where category_id ='$catIdss'");
                $res_content = mysqli_fetch_array($sql_content);
                $subcontent_descc = $res_content['short_description'];
                $subcontent_desccc = str_replace('{location}', $ca_nam1, $subcontent_descc);
                $subcontent_descccc = str_replace('catname', $home_cat_res2['catName'], $subcontent_desccc);
                if ($sn % 2 == '0') {
            ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInLeft" data-wow-delay=".1s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" alt="<?= $home_cat_res2['displayName']; ?> Services in <?= $ca_nam1; ?>"
                                    title="<?= $home_cat_res2['displayName']; ?> Services in <?= $ca_nam1; ?>">
                            </div>
                        </div>
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInRight" data-wow-delay=".2s">
                            <div class="service_content">
                                <div class="center_box">
                                    <div class="title_3"><a href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                            title="<?= $home_cat_res2['displayName']; ?>  Services in <?= $ca_nam1; ?>"><?= $home_cat_res2['displayName']; ?></a></div>
                                    <p><?= html_entity_decode(substr($subcontent_descccc, 0, 500)); ?>...</p>
                                    <a class="facilities_btn" href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="Read More">Read More</a>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } else { ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 wow fadeInRight" data-wow-delay=".4s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" alt="<?= $home_cat_res2['displayName']; ?> Services in <?= $ca_nam1; ?>"
                                    title="<?= $home_cat_res2['displayName']; ?> Services in <?= $ca_nam1; ?>">
                            </div>
                        </div>

                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 order-xxl-first order-xl-first order-lg-first order-md-first order-sm-last order-last wow fadeInLeft" data-wow-delay=".3s">
                            <div class="service_content">
                                <div class="center_box">
                                    <div class="title_3"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="<?= $home_cat_res2['displayName']; ?> Services in <?= $ca_nam1; ?>"><?= $home_cat_res2['displayName']; ?></a></div>
                                    <p><?= html_entity_decode(substr($subcontent_descccc, 0, 500)); ?>...</p>
                                    <a class="facilities_btn" href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="Read More">Read More</a>
                                </div>
                            </div>
                        </div>
                    </div>
            <?php  }
                $sn++;
            } ?>
        </div>
    </div>



    <div class="home_about-web-pulse">
        <svg class="path_type_1 top" preserveAspectRatio="none" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L30 100 L100 0 L100 100 L0 100 Z" fill="#fffcf9" stroke="#fffcf9" stroke-width="-1"></path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
        <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">
                    <div class="home_about_content wow fadeInDown" data-wow-delay=".1s">
                        <h1>Best Vastu Consultant in <?= $ca_nam1; ?></h1>
                        <div class="about_img">
                            <div class="img">
                                <img src="<?= getImage($home_res['pageImage'], 330, 330, $home_res['pageTitle'], "/uploaded-files/page-images/"); ?>" width="853" height="853" loading="lazy" alt="Best Vastu Consultant in <?= $ca_nam1; ?>" title="Best Vastu Consultant in <?= $ca_nam1; ?>">
                            </div>
                        </div>


                        <?= html_entity_decode($page_desc); ?>


                        <a href="<?= site_url; ?>/about-us.htm" class="read_more_btn">More About Us</a>
                    </div>
                </div>
            </div>

        </div>

        <svg class="path_type_1" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L70 100 L100 0 L100 100 L0 100 Z" fill="#fff" stroke="#fff" stroke-width="-1"></path>
            <path d="M0 -1 L0 0 L50 100 L100 0 L100 -1 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
    </div>

    <div class="webpulse_home_featured">
        <div class="container">
            <div class="title wow fadeInDown" data-wow-delay=".1s">Numerology Service</div>
            <p>Unlock the secrets of your life through personalized numerology insights. Our expert service offers tailored readings to reveal your true path, strengths, and challenges. Discover how numbers influence your destiny and guide your decisions with clarity and confidence. Embrace the power of numerology to transform your journey and life with purpose.</p>
            <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 id="featuredProducts" class="wps_featured owl-carousel">

                        <?php $home_cat1234 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName, catDesc,catID from category_tbl where parentID='3' and status='Y' order by homeorder asc limit 0,6");
                        while ($home_cat_res21 = mysqli_fetch_assoc($home_cat1234)) {
                            if ($home_cat_res21['catImage'] != '') {
                                $imglink = getImage($home_cat_res21[catImage], 385, 385, $home_cat_res21[catName], "/uploaded-files/category/images/");
                            } else {
                                $imglink = NO_IMG_URL;
                            }
                            $catIdss = $home_cat_res21['catID'];
                            $sql_content = mysqli_query($dbconn, "select * from location_content_tbl where category_id ='$catIdss'");
                            $res_content = mysqli_fetch_array($sql_content);
                            $subcontent_descc = $res_content['short_description'];
                            $subcontent_desccc = str_replace('{location}', $ca_nam1, $subcontent_descc);
                            $subcontent_descccc = str_replace('catname', $home_cat_res21['catName'], $subcontent_desccc);
                        ?>
                            <div class="feature_item wow fadeInDown" data-wow-delay=".2s">
                                <div class="inner-box">
                                    <div class="image-box">
                                        <figure class="image"><img src="<?= $imglink; ?>" alt="<?= $home_cat_res21['displayName']; ?> Services in <?= $ca_nam1; ?>"
                                                title="<?= $home_cat_res21['displayName']; ?> Services in <?= $ca_nam1; ?>"></figure>
                                        <div class="overlay-link">
                                            <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res21['catName']); ?>.htm" class="lightbox-image"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                    <path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z" />
                                                    <path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z" />
                                                </svg></a>
                                        </div>
                                    </div>
                                    <div class="lower-content">
                                        <h4 class="titleH3"><a href="<?= site_url; ?>/<?= getValidFileName($home_cat_res21['catName']); ?>.htm" title="<?= $home_cat_res21['displayName']; ?> Services in <?= $ca_nam1; ?>"><?= $home_cat_res21['displayName']; ?></a></h4>
                                        <div class="text"><?= html_entity_decode(substr($subcontent_descccc, 0, 100)); ?>...</div>
                                        <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res21['catName']); ?>.htm" class="read_more_btn" title="Read More">Read More</a>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>

                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="web-pulse-choose">
        <svg class="path_type_1 top" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L30 100 L100 0 L100 100 L0 100 Z" fill="#fff" stroke="#fff" stroke-width="-1"></path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
        <div class="container">
            <div class="row">
                <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 hidden_xs wow fadeInLeft" data-wow-delay=".3s">
                    <div class="serviceCircle">
                        <img src="<?= site_url; ?>/designer/images/service-img2.png" alt="Riddhe Sshilpi" title="Riddhe Sshilpi" class="animateImg">
                        <img class="ming" src="<?= site_url; ?>/designer/images/awards.webp" alt="Awards and Recognitions" title="Awards and Recognitions">
                    </div>
                </div>
                <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12">
                    <div class="home_right_sec wow fadeInLeft" data-wow-delay=".3s">
                        <div class="title">Awards and Recognitions</div>
                        <p>Our expertise and dedication have been honored with numerous awards and recognitions in the field. These accolades reflect our commitment to delivering excellence and fostering trust. Each achievement inspires us to continue pushing boundaries and setting new standards, ensuring the highest quality of service for our valued clients. Excellence is our legacy.</p>
                        <div class="clearfix"></div>
                        <div class="row">
                            <?php $gallery_award_sql = mysqli_query($GLOBALS['dbconn'], "select id,gallery_id,title,caption,image from photo_tbl order by id ASC");

                            while ($gallery_res = mysqli_fetch_assoc($gallery_award_sql)) {
                                $galImg = getImage($gallery_res[image], 360, 280, $gallery_res[title] . $gallery_res[id], "/uploaded-files/gallery/photos/");
                                $galImg1 = getImage($gallery_res[image], 1100, 860, $gallery_res[title] . $gallery_res[id], "/uploaded-files/gallery/photos/");
                            ?>

                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                    <a data-fancybox="photo-gallery" href="<?= $galImg1; ?>" title="<?= $gallery_res['title']; ?>">
                                        <div class="awardsBox">
                                            <img src="<?= $galImg; ?>" alt="<?= $gallery_res['title']; ?>" title="<?= $gallery_res['title']; ?>">
                                        </div>
                                    </a>
                                </div>
                            <?php } ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <svg class="path_type_2 home-left" width="21%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L0 10 Z"></path>
        </svg>
        <svg class="path_type_2 home-right" width="80%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L100 50 Z"></path>
        </svg>
    </div>


    <div class="service_category moreService">
        <div class="container">
            <?php $sn = 2;


            $home_cat11 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName,catBanner, faq_icon, catDesc,catID from category_tbl where catID='4' || catID='5' and status='Y' order by catOrder asc limit 0,6");
            while ($home_cat_res22 = mysqli_fetch_assoc($home_cat11)) {
                if ($home_cat_res22['faq_icon'] != '') {
                    $imglink = getImage($home_cat_res22[faq_icon], 650, 505, $home_cat_res22[catName], "/uploaded-files/category/icons/");
                } else {
                    $imglink = NO_IMG_URL;
                }
                $catIdss = $home_cat_res22['catID'];
                $sql_content = mysqli_query($dbconn, "select * from location_content_tbl where category_id ='$catIdss'");
                $res_content = mysqli_fetch_array($sql_content);
                $subcontent_descc = $res_content['short_description'];
                $subcontent_desccc = str_replace('{location}', $ca_nam1, $subcontent_descc);
                $subcontent_descccc = str_replace('catname', $home_cat_res22['catName'], $subcontent_desccc);
                if ($sn % 2 == '0') {
            ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInLeft" data-wow-delay=".1s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" alt="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>"
                                    title="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>">
                            </div>
                        </div>
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInRight" data-wow-delay=".2s">
                            <div class="service_content">
                                <div class="center_box">
                                    <h4 class="title_3"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm" title="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>"><?= $home_cat_res22['displayName']; ?></a></h4>
                                    <p><?= substr($subcontent_descccc, 0, 500); ?>...</p>
                                    <a class="facilities_btn" href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm" title="Read More">Read More</a>
                                </div>
                            </div>
                        </div>
                    </div>

                <?php } else { ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 wow fadeInRight" data-wow-delay=".4s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" alt="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>"
                                    title="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>">
                            </div>
                        </div>

                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 order-xxl-first order-xl-first order-lg-first order-md-first order-sm-last order-last wow fadeInLeft" data-wow-delay=".3s">
                            <div class="service_content">
                                <div class="center_box">
                                    <h4 class="title_3"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm" title="<?= $home_cat_res22['displayName']; ?> Services in <?= $ca_nam1; ?>"><?= $home_cat_res22['displayName']; ?></a></h4>
                                    <p><?= substr($subcontent_descccc, 0, 500); ?>.....</p>
                                    <a class="facilities_btn" href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm" title="Read More">Read More</a>
                                </div>
                            </div>
                        </div>
                    </div>
            <?php  }
                $sn++;
            } ?>

        </div>
    </div>
    
    <?php include 'award_video.php'; ?>

    <?php include 'app_footer_sub.php'; ?>
    <?php include 'app_bottom.php'; ?>
</body>

</html>