<?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 = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee = explode('/', $actual_link);
$mm = $ee[3];
$ss = explode('.', $mm);
$cc = $ss[0];
$cat = str_replace("-", " ", $cc);
$cats = ucfirst($cat);
$cat_s = "select * from category_tbl where catName='$cats'";
$cat_q = mysqli_query($dbconn, $cat_s);
$num = mysqli_num_rows($cat_q);
$cat_r = mysqli_fetch_array($cat_q);
$category_id = $cat_r['catID'];
$hover = $category_id;
$catn = $cat_r['catName'];
$cat_sql = "select * from category_tbl where parentID='$category_id' and status='Y'";
$cat_qry = mysqli_query($dbconn, $cat_sql);
$cccnum = mysqli_num_rows($cat_qry);
$cat_sql1 = "select * from category_tbl where catID='$category_id'";
$cat_qry1 = mysqli_query($dbconn, $cat_sql1);
$cat_res = mysqli_fetch_array($cat_qry1);
$title = $cat_res['pageTitle'];
$keyword = $cat_res['pageKeywords'];
$desc = $cat_res['pageDescription'];
$pageTitles = $cat_res['catName'];
$disTitles = $cat_res['displayName'];
$pdes = $cat_res['catDesc'];
$pdes1 = $cat_res['catDesc1'];
$parent = $cat_res['parentID'];
$cat_sql2 = "select * from category_tbl where catID='$parent'";
$cat_qry2 = mysqli_query($dbconn, $cat_sql2);
$num2 = mysqli_num_rows($cat_qry2);
$cat_res2 = mysqli_fetch_array($cat_qry2);
$mparent = $cat_res2['parentID'];
$cat_sql3 = "select * from category_tbl where catID='$mparent'";
$cat_qry3 = mysqli_query($dbconn, $cat_sql3);
$num3 = mysqli_num_rows($cat_qry3);
$cat_res3 = mysqli_fetch_array($cat_qry3);
$mmparent = $cat_res3['parentID'];
$cat_sql4 = "select * from category_tbl where catID='$mmparent'";
$cat_qry4 = mysqli_query($dbconn, $cat_sql4);
$num4 = mysqli_num_rows($cat_qry4);
$cat_res4 = mysqli_fetch_array($cat_qry4);
$admin_sql = mysqli_query($dbconn, "select * from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);
$mobile = $admin_res['mobile'];
$city = $admin_res['city'];
$state = $admin_res['state'];
$country = $admin_res['country'];
$companyName = $admin_res['companyName'];
$address = $admin_res['address'];

$page_metatitle = $cat_res['pageTitle'];
$page_metadesc = $cat_res['pageDescription'];
$page_metakey = $cat_res['pageKeywords'];
if (mysqli_num_rows($cat_q) > 0) {
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php if ($page_metatitle != '') {

        ?>
    <title><?= $page_metatitle; ?></title>
    <meta name="description" content="<?= $page_metadesc; ?>">
    <meta name="keywords" content="<?= $page_metakey; ?>">
    <?php } else { ?>
    <title><?= $admin_res['companyName']; ?></title>
    <meta name="description" content="<?= $admin_res['companyName']; ?>">
    <meta name="keywords" content="<?= $admin_res['companyName']; ?>">
    <?php } ?>
    <?php include "app_top.php"; ?>
</head>

<body>
    <?php include "app_header.php"; ?>


    <!-- Heading Banner-->
    <?php
        if ($cat_res['catBanner'] != '') { ?>
    <section class="heading_banner"
        style="background-image:url(<?= site_url; ?>/uploaded-files/category/banners/<?php echo $cat_res['catBanner']; ?>)">
        <?php } else { ?>
        <section class="heading_banner" style="background-image: url(<?= theme_url; ?>/images/category-banner.jpg)">
            <?php } ?>
            <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"><?php echo $cat_res['displayName']; ?></h1>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </section>


        <!-- Breadcrumb-->
        <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><a href="<?= site_url; ?>" title="Home">Home</a></li>
                            <?php if ($num4 > 0) { ?>
                            <li><a href="<?= site_url; ?>/<?= 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($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($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>


        <!-- Home About-->
        <?php
                if ($cat_res['parentID'] == '0') { ?>
        <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="catTitle_2"><?php echo $cat_res['displayName']; ?> in Surat</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').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src',$('.mycatimg_<?php echo $cat_res['catID']; ?> ').attr('src'));">
                                        <div class="detail_image">
                                            <img class="img-responsive mycatimg_<?php echo $cat_res['catID']; ?>"
                                                src="<?= site_url; ?>/uploaded-files/category/images/<?php echo ($cat_res['catImage']); ?>"
                                                alt="<?php echo $cat_res['displayName']; ?> in Surat"
                                                title="<?php echo $cat_res['displayName']; ?> in Surat">
                                        </div>
                                        <!-- <div class="read_more_1 bg_btn_1"><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> Book Consultation
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                        </div> -->
                                    </a>
                                </div>
                                <?php echo html_entity_decode($cat_res['catDesc1']); ?>
                                <?php if($cat_res['catVideo']!=''){ ?>
                                <div class="video-section">
                                    <div class="video-inner"
                                        style="background-image: url(<?=site_url;?>/designer/images/video-img.jpg);">
                                        <div class="video-content">
                                            <a data-fancybox=""
                                                href="https://www.youtube.com/watch?v=<?=$cat_res['catVideo'];?>"
                                                class="video-btn wow zoomIn" data-wow-delay="00ms"
                                                data-wow-duration="1500ms" title="Video"
                                                style="visibility: visible; animation-duration: 1500ms; animation-delay: 0ms; animation-name: zoomIn;"><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>
                                    </div>
                                </div>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <div class="clear"></div>
        <div class="catFaqs">
            <?php include "app_faq.php"; ?>
        </div>
        <div class="clear"></div>
        <?//php include "doctor-profile.php"; ?>
        <div class="clear"></div>
        <?php include "app_before_after.php"; ?>
        <div class="clear"></div>
        <?php include "app_tesimonials_videos.php"; ?>
        <div class="clear"></div>
        <?php // include "aap_gallery.php"; ?>

        <div class="clear"></div>

        <section class="related_cat_sec">
            <div class="container">
                <?php       $category_id = $cat_res['catID'];
                                                $cat_final = mysqli_query($dbconn, "select * from category_tbl where parentID='$category_id' and status='Y' and catID!='$category_id' order by catOrder Asc");
                                                if(mysqli_num_rows( $cat_final)>'0') {?>
                <div class="you_may">Related Category To <?php echo $cat_res['displayName']; ?></div>
                <div class="allListing">

                    <?php
                                          

                                                while ($sub_res = mysqli_fetch_array($cat_final)) {
                                                    if ($sub_res['catImage'] != '') {
                                                        $img_link = getImage($sub_res[catImage], 522, 522, $sub_res[catName], "/uploaded-files/category/images/");
                                                        $img_link1 = getImage($sub_res[catImage], 600, 600, $sub_res[catName], "/uploaded-files/category/images/");
                                                    } else {
                                                        $img_link = NO_IMG_URL;
                                                        $img_link1 = NO_IMG_URL;
                                                    }
                                                ?>
                    <div class="product_listing">
                        <div class="row">
                            <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
                                <div class="product">
                                    <div class="single_image">
                                        <a class="largeImage" id="bigImage1" href="javascript:void(0);"
                                            data-bs-toggle="modal" data-bs-target="#productID####"
                                            onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');" title="Product">
                                            <img src="<?= $img_link; ?>"
                                                alt="<?php echo $sub_res['displayName']; ?> in Surat"
                                                title="<?php echo $sub_res['displayName']; ?> in Surat"
                                                class="img-responsive mycatimg_<?php echo $sub_res['catID']; ?>">
                                        </a>
                                    </div>

                                </div>
                            </div>

                            <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                                <div class="right-content">
                                    <h3><a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm"
                                            title="<?php echo $sub_res['displayName']; ?> in Surat"><?php echo $sub_res['catName']; ?></a>
                                    </h3>
                                    <div class="blue-line1"></div>
                                    <div class="more_info">
                                        <?php echo html_entity_decode($sub_res['catDesc']); ?>
                                    </div>

                                    <div class="clearfix"></div>
                                    <!-- <a class="read_more_1 bg_btn_1" href="javascript:void(0);" data-bs-toggle="modal"
                                data-bs-target="#productID"
                                onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"
                                title="Book Consultation"><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> Book Consultation <span></span>
                                <span></span>
                                <span></span>
                                <span></span></a> -->
                                    <a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm"
                                        title="Read More" class="read_more_1 bg_btn_1">Read More
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <?php } } ?>
                    <h2 class="catTitle_2">Main Categories</h2>
                    <div class="clearfix"></div>
                    <div id="relatedItems" class="owl-carousel">
                        <?php
    $category_idss = $cat_res['catID'];
    $cat_related = mysqli_query($dbconn, "select * from category_tbl where parentID='0' and status='Y' and catID!='$category_idss' order by catOrder Asc");
while ($cat_related_res = mysqli_fetch_array($cat_related)) {
    $img_link = getImage($cat_related_res[catImage], 269, 269, $cat_related_res[catName], "/uploaded-files/category/images/");                                              
                                                ?>
                        <div class="realted_cat_wrap">
                            <a href="<?= site_url; ?>/<?= getValidFileName($cat_related_res['catName']); ?>.htm"
                                title="<?php echo $cat_related_res['displayName']; ?> in Surat">
                                <div class="cat_image_box">
                                    <img src="<?=$img_link;?>" title="<?=$cat_related_res['displayName'];?> in Surat"
                                        alt="<?=$cat_related_res['displayName'];?> in Surat">
                                </div>
                                <div class="related_cat_title">
                                    <h3><?=$cat_related_res['displayName'];?></h3>
                                    <a href="<?= site_url; ?>/<?= getValidFileName($cat_related_res['catName']); ?>.htm"
                                        class="read_more_1 bg_btn_1 callback" title="Read More">Read
                                        More<span></span><span></span><span></span><span></span></a>
                                </div>
                        </div>
                        <?php } ?>

                    </div>

                </div>
        </section>
        <div class="clear"></div>

        <?php } else {
                    if ($cat_res['catImage'] != '') {
                        $img_link = getImage($cat_res[catImage], 522, 522, $cat_res[catName], "/uploaded-files/category/images/");
                        $img_link1 = getImage($cat_res[catImage], 600, 600, $cat_res[catName], "/uploaded-files/category/images/");
                    } else {
                        $img_link = NO_IMG_URL;
                        $img_link1 = NO_IMG_URL;
                    } ?>

        <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="catTitle_2"><?php echo $cat_res['displayName']; ?> in Surat</h2>
                        <div class="right_side">
                            <div class="wps_right">
                                <div class="product_right_image">
                                    <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').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"
                                                title="<?php echo $cat_res['catName']; ?>"><img id="largeImage"
                                                    src="<?= $img_link; ?>"
                                                    alt="<?php echo $sub_res['displayName']; ?> in Surat"
                                                    title="<?php echo $cat_res['displayName']; ?> in Surat"
                                                    class="img-responsive mycatimg_<?php echo $cat_res['catID']; ?>">
                                            </a>
                                        </div>

                                    </div>
                                    <!-- <a class="read_more_1 bg_btn_1" href="javascript:void(0);" data-bs-toggle="modal"
                                        data-bs-target="#productID"
                                        onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"
                                        title="Book Consultation"><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> Book Consultation
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </a> -->

                                </div>
                                <?php echo html_entity_decode($cat_res['catDesc1']); ?>
                                <div class="clearfix"></div>
                                <?php if($cat_res['catVideo']!=''){ ?>
                                <div class="video-section">
                                    <div class="video-inner"
                                        style="background-image: url(<?=site_url;?>/designer/images/video-img.jpg);">
                                        <div class="video-content">
                                            <a data-fancybox=""
                                                href="https://www.youtube.com/watch?v=<?=$cat_res['catVideo'];?>"
                                                class="video-btn wow zoomIn" data-wow-delay="00ms"
                                                data-wow-duration="1500ms" title="Video"
                                                style="visibility: visible; animation-duration: 1500ms; animation-delay: 0ms; animation-name: zoomIn;"><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>
                                    </div>
                                </div>
                                <?php } ?>
                                <!-- <div class="interested_section">
                                    <a class="interested_btn" href="javascript:void(0);" data-bs-toggle="modal"
                                        data-bs-target="#productID"
                                        onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"
                                        title="Yes, I am Interested"><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> Yes, I am Interested</a>
                                </div> -->

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <div class="clear"></div>
        <div class="catFaqs">
            <?php include "app_faq.php"; ?>
        </div>
        <div class="clear"></div>
        <?//php include "doctor-profile.php"; ?>
        <div class="clear"></div>
        <?php include "app_before_after.php"; ?>
        <div class="clear"></div>
        <?php include "app_tesimonials_videos.php"; ?>
        <div class="clear"></div>
        <?php // include "aap_gallery.php"; ?>

        <div class="clear"></div>

        <section class="related_cat_sec">
            <div class="container">

                <h2 class="catTitle_2">Related Categories</h2>
                <div class="clearfix"></div>
                <div id="relatedItems" class="owl-carousel">
                    <?php
                        $category_idss = $cat_res['catID'];
                        $cat_related = mysqli_query($dbconn, "select * from category_tbl where parentID='0' and status='Y' and catID!='$category_idss' order by catOrder Asc");
                    while ($cat_related_res = mysqli_fetch_array($cat_related)) {
                        $img_link = getImage($cat_related_res[catImage], 269, 269, $cat_related_res[catName], "/uploaded-files/category/images/");                                              
                                                                    ?>
                    <div class="realted_cat_wrap">
                        <a href="<?= site_url; ?>/<?= getValidFileName($cat_related_res['catName']); ?>.htm"
                            title="<?php echo $cat_related_res['displayName']; ?> in Surat">
                            <div class="cat_image_box">
                                <img src="<?=$img_link;?>" title="<?=$cat_related_res['displayName'];?> in Surat"
                                    alt="<?=$cat_related_res['displayName'];?> in Surat">
                            </div>
                            <div class="related_cat_title">
                                <h3><?=$cat_related_res['displayName'];?></h3>
                                <a href="<?= site_url; ?>/<?= getValidFileName($cat_related_res['catName']); ?>.htm"
                                    class="read_more_1 bg_btn_1 callback" title="Read More">Read
                                    More<span></span><span></span><span></span><span></span></a>
                            </div>
                    </div>
                    <?php } ?>

                </div>

            </div>
        </section>





        <div class="section-category pb-4  w-100 float-start pb-4">
            <div class="container">
                <div class="you_may">Related Category To <?php echo $cat_res['displayName']; ?></div>
                <div class="allListing">

                    <?php
                                                $category_id = $cat_res['catID'];
                                                $cat_final = mysqli_query($dbconn, "select * from category_tbl where parentID='$parent' and status='Y' and catID!='$category_id' order by catOrder Asc");

                                                while ($sub_res = mysqli_fetch_array($cat_final)) {
                                                    if ($sub_res['catImage'] != '') {
                                                        $img_link = getImage($sub_res[catImage], 522, 522, $sub_res[catName], "/uploaded-files/category/images/");
                                                        $img_link1 = getImage($sub_res[catImage], 600, 600, $sub_res[catName], "/uploaded-files/category/images/");
                                                    } else {
                                                        $img_link = NO_IMG_URL;
                                                        $img_link1 = NO_IMG_URL;
                                                    }
                                                ?>
                    <div class="product_listing">
                        <div class="row">
                            <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
                                <div class="product">
                                    <div class="single_image">
                                        <a class="largeImage" id="bigImage1" href="javascript:void(0);"
                                            data-bs-toggle="modal" data-bs-target="#productID####"
                                            onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');" title="Product">
                                            <img src="<?= $img_link; ?>"
                                                alt="<?php echo $sub_res['displayName']; ?> in Surat"
                                                title="<?php echo $sub_res['displayName']; ?> in Surat"
                                                class="img-responsive mycatimg_<?php echo $sub_res['catID']; ?>">
                                        </a>
                                    </div>

                                </div>
                            </div>

                            <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                                <div class="right-content">
                                    <h3><a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm"
                                            title="<?php echo $sub_res['displayName']; ?> in Surat"><?php echo $sub_res['catName']; ?></a>
                                    </h3>
                                    <div class="blue-line1"></div>
                                    <div class="more_info">
                                        <?php echo html_entity_decode($sub_res['catDesc']); ?>
                                    </div>

                                    <div class="clearfix"></div>
                                    <!-- <a class="read_more_1 bg_btn_1" href="javascript:void(0);" data-bs-toggle="modal"
                                data-bs-target="#productID"
                                onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"
                                title="Book Consultation"><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> Book Consultation <span></span>
                                <span></span>
                                <span></span>
                                <span></span></a> -->
                                    <a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm"
                                        title="Read More" class="read_more_1 bg_btn_1">Read More
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <?php } ?>


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



 
    <?php } ?>



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

    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

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