<?php
include('include/main.inc.php');
$actual_links = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$ex_cat =explode("/",$actual_links);
$loc_url = $ex_cat[3];
$locat = str_ireplace("-", " ", $loc_url);
$location_name = ucwords($locat);
$cat_url = $ex_cat[4];
$cat_name = explode(".", $cat_url);
$catName = str_ireplace("-", " ", $cat_name[0]);
$catName = ucwords($catName);
$sel_cat_query = "select * from category_tbl where catName ='$catName'";
$res_cat = $dbconn->query($sel_cat_query);
$video_sql = mysqli_query($dbconn, "select * from video_tbl  limit 0,3");

if($res_cat->num_rows > 0){
$cat_details = $res_cat->fetch_assoc();
$catdisplayName = $cat_details['displayName'];
$sel_loca_query = "Select * from location_tbl where locationName = '$location_name'";
$res_loca = $dbconn->query($sel_loca_query);
$locatios = $res_loca->fetch_assoc();
if($res_loca->num_rows == 0){
    header('location:'.site_url);
}
$location_id = $locatios['locationID'];
// echo $location_id;die;
$description = '';
$short_description = '';
$sel_specific_category = "Select * from location_content_tbl where category_id = '".$cat_details['catID']."'";
$res_specific_cat = $dbconn->query($sel_specific_category);
if($res_specific_cat->num_rows > 0){
    while($specific_categories = $res_specific_cat->fetch_assoc()){
        $locat = explode(",", $specific_categories['location_ids']);
        if(in_array($location_id, $locat)){
            if($specific_categories['meta_title'] != ''){
                $page_metatitle=$specific_categories['meta_title'];
            }
            if($specific_categories['meta_keyword'] != ''){
                $page_metakey=$specific_categories['meta_keyword'];
            }if($specific_categories['meta_description'] != ''){
                $page_metadesc=$specific_categories['meta_description'];
            }
            $description = $specific_categories['description'];
            $short_description = $specific_categories['short_description'];
        }
    }
}else{
$page_metatitle=($cat_details['pageTitle'])?$cat_details['pageTitle'].' in '.$location_name:'';
$page_metakey=($cat_details['pageKeywords'])?$cat_details['pageKeywords'].' in '.$location_name:'';
$page_metadesc=($cat_details['pageDescription'])?$cat_details['pageDescription'].' in '.$location_name:'';
}

$page_metatitle = str_ireplace("{location}", $location_name, $page_metatitle);
$page_metadesc = str_ireplace("{location}", $location_name, $page_metadesc);
$page_metakey = str_ireplace("{location}", $location_name, $page_metakey);
$description = str_ireplace("{location}", $location_name, $description);
$short_description = str_ireplace("{location}", $location_name, $short_description);

$web_det_query = "Select * from admin_details where slno = '1'";
$res_web = $dbconn->query($web_det_query);
$web_details = $res_web->fetch_assoc();

$page_metatitle = ($page_metatitle) ? $page_metatitle : $web_details['companyName'].' in '.$location_name;
$page_metadesc = ($page_metadesc) ? $page_metadesc : $web_details['companyName'].' in '.$location_name;
$page_metakey = ($page_metakey) ? $page_metakey : $web_details['companyName'].' in '.$location_name;
// echo $description;die;
// echo $location_name;die;
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= $page_metatitle; ?></title>
    <meta name="description" content="<?= $page_metadesc; ?>" >
    <meta name="keywords" content="<?= $page_metakey; ?>" >
    <?php include "app_top.php"; ?>
</head>

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

    <section class="heading_banner" style="background-image: url(<?= ($cat_details['catBanner']) ? site_url.'/uploaded-files/category/banners/'.$cat_details['catBanner']: site_url.'/designer/images/category-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"><?= $cat_details['displayName']; ?> in <?= $location_name; ?></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><a href="<?= site_url; ?>" title="Home">Home</a></li>
                        <?php if($cat_details['parentID'] != 0){ 
                            $select_pr_cat_query = "select * from category_tbl where catID ='".$cat_details['parentID']."'";
                            $res_pr_cat = $dbconn->query($select_pr_cat_query);
                            $pr_cate = $res_pr_cat->fetch_assoc();
                            $pr_cate_href = str_ireplace(" ", "-", $pr_cate['catName']);
                            ?>
                            <li><a href="<?= site_url.'/'.$location.'/'.strtolower($pr_cate_href).'.htm'; ?>" title="<?= $pr_cate['displayName']; ?>"><?= $pr_cate['displayName']; ?></a></li>
                        <?php } ?>
                        <li class="active"><?= $cat_details['displayName']; ?></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">
                <?php if($cat_details['parentID']==1 || $cat_details['parentID']==0 ){echo "";} else{
                    if($cat_details['parentID']==1){ echo '<h2 class="catTitle_2 ">'.$catdisplayName.' On Rent in '.$location_name.'</h2>';} else{
                        // echo '<h2 class="catTitle_2 ">'.$catdisplayName.' At Home in '.$location_name.'</h2>';
                    } 
                } 
                        ?>
                    
                    <div class="right_side">
                        <div class="wps_right">
                            <div class="product_right_image"><?php if($cat_details['catImage']) { ?>
                                <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="<?= $cat_details['displayName']; ?><?php if($cat_details['parentID'] == 1){ echo ""; } ?> in <?= $location_name; ?>" class="main-category-image">
                                    <div class="detail_image">
                                        <img class="img-responsive main-cat-image" src="<?= site_url.'/uploaded-files/category/images/'.$cat_details['catImage']; ?>" alt="<?= $cat_details['displayName']; ?><?php if($cat_details['parentID'] == 1){ echo ""; } ?> in <?= $location_name; ?>" title="<?= $cat_details['displayName']; ?><?php if($cat_details['parentID'] == 1){ echo ""; } ?> in <?= $location_name; ?>">
                                    </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> Enquire Now
                                    </div>
                                </a><?php } ?>
                            </div>
                            <?= $description; ?>
                            <?php
                                $sub_cat_query = "select * from category_tbl where parentID = '".$cat_details['catID']."' order by catOrder asc";
                                $res_cat = $dbconn->query($sub_cat_query);
                                if($res_cat->num_rows > 0){
                            ?>
                            <div class="you_may"> You may Also Like These</div>
                            <?php while($sub_cat_det = $res_cat->fetch_assoc()){
                                $sub_cat_href = str_ireplace(" ", "-", $sub_cat_det['catName']);
                                $sel_specific_category = "Select * from location_content_tbl where category_id = '".$sub_cat_det['catID']."'";
                                $res_specific_cat = $dbconn->query($sel_specific_category);
                                $short_description = '';
                                if($res_specific_cat->num_rows > 0){
                                    while($specific_categories = $res_specific_cat->fetch_assoc()){
                                        $locat = explode(",", $specific_categories['location_ids']);
                                        if(in_array($location_id, $locat)){
                                            $short_description = str_ireplace("{location}", $location_name, $specific_categories['short_description']);
                                        }
                                    }
                                }
                            ?>
                            <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"><?php if($sub_cat_det['catImage']){ ?>
                                            <a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>">
                                                <div class="image1">
                                                    <img class="category_image<?= $sub_cat_det['catID']; ?>" src="<?= getImage($sub_cat_det['catImage'],300,300, $sub_cat_det['catName'], "/uploaded-files/category/images/");?>" alt="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>">
                                                </div>
                                            </a><?php } ?>
                                        </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">
                                            <h4 class="title"><a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>"><h4 class="titleh4"><?= $sub_cat_det['displayName']; ?></h4></a></h4>
                                            <div class="blue-line1"></div>
                                            <div class="more_info">
                                                <?= $short_description; ?>
                                                
                                            </div>

                                            <div class="clearfix"></div>

                                            <a class="read_more_1 bg_btn_1 pop_cat_id" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><input type="hidden" class="cat_id" value="<?= $sub_cat_det['catID']; ?>"><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</a>
                                            <a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" class="read_more_1 bg_btn_1" title="Read More">Read More</a>

                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php } } else {
                            $sel_product_query = "SELECT * FROM `product_tbl` WHERE product_cat = '".$cat_details['catID']."' OR prodcut_subcat = '".$cat_details['catID']."' order by product_id desc";
                            $res_product = $dbconn->query($sel_product_query); 
                            if($res_product->num_rows > 0){
                                ?>
                                <div class="you_may">Product related to <?= $cat_details['displayName']; ?></div>
                                <div class="allListing">
                                <?php
                                $sno = 0;
                                while($products = $res_product->fetch_assoc()){
                                    $sno++;
                            ?>
                                <div class="product_listing">
                                        <div class="row">
                                            <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-12">
                                                <div class="product">
                                                    <?php
                                                        $pr_images = explode(",", $products['product_image']);
                                                        $prno = 0;
                                                        foreach($pr_images as $image){
                                                            $prno++;
                                                            if($prno == 1){
                                                    ?>
                                                    <div class="single_image">
                                                        <a class="largeImage" id="bigImage<?= $prno; ?>" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $products['product_id']; ?>');
                                                    $('.pop_heading').html('<?php echo $products['product_title']; ?>');  $('.catImg').attr('src','<?= site_url . '/uploaded-files/product-images/' . $image; ?>'); $('.catImg').attr('alt','<?= $products['product_title']; ?> in <?= $location_name; ?>'); $('.catImg').attr('title','<?= $products['product_title']; ?> in <?= $location_name; ?>');" title="<?= $products['product_title']; ?> in <?= $location_name; ?>"><input type="hidden" class="product_id" value="<?= $products['product_id']; ?>" >
                                                            <img class="activeImage<?= $sno; ?> product_image<?= $products['product_id']; ?>" src="<?= site_url.'/uploaded-files/product-images/'.$image; ?>" alt="<?= $products['product_title']; ?> Suppliers, Service Provider in <?= $location_name; ?>" title="<?= $products['product_title']; ?> Suppliers, Service Provider in <?= $location_name; ?>">
                                                        </a>
                                                    </div>
                                                    <?php } } ?>
                                                    <div id="small<?= $sno; ?>" class="small">
                                                        <?php $prno = 0; foreach($pr_images as $image){ $prno++; ?>
                                                        <img class="item product_aimage <?= ($prno == 1) ? 'active': ''; ?>" src="<?= site_url.'/uploaded-files/product-images/'.$image; ?>" alt="<?= $products['product_title']; ?> Suppliers, Service Provider in <?= $location_name; ?>" title="<?= $products['product_title']; ?> Suppliers, Service Provider in <?= $location_name; ?>">
                                                        <?php } ?>
                                                        <input type="hidden" class="pr_sno" value="<?= $sno; ?>">
                                                        <div class="item youtube">
                                                            <a data-fancybox href="<?= $products['product_video']; ?>" title="<?= $products['product_title']; ?> in <?= $location_name; ?>">
                                                                <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" />
                                                                </svg></a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
    
                                            <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-12">
                                                <div class="right-content">
                                                    <h4 class="title"><a href="javascript:void(0)" title="<?= $products['product_title']; ?> Suppliers, Service Provider in <?= $location_name; ?>"><?= $products['product_title']; ?> in <?= $location_name; ?></a></h4>
                                                    <div class="blue-line1"></div>
                                                    <div class="more_info">
                                                        <?= $products['product_specfi']; ?>
                                                    </div>
    
                                                    <div class="clearfix"></div>
                                                    <a class="read_more_1 bg_btn_1 product_pop_up" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><input type="hidden" class="product_id" value="<?= $products['product_id']; ?>"><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 <span></span>
                                                        <span></span>
                                                        <span></span>
                                                        <span></span></a>
                                                    <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#callback" class="read_more_1 bg_btn_1 callback Request_call_back" title="Request A Callback"><input type="hidden" class="product_id" value="<?= $products['product_id']; ?>" >
                                                        <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 <span></span>
                                                        <span></span>
                                                        <span></span>
                                                        <span></span></a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php } ?>
                            </div>
                            <?php }  
                            $sub_cat_query = "select * from category_tbl where parentID = '".$cat_details['parentID']."' and catID != '".$cat_details['catID']."' order by catOrder asc";
                            $res_cat = $dbconn->query($sub_cat_query);
                            if($res_cat->num_rows > 0){
                            ?>
                            <div class="you_may">You may Also Like These</div>
                            <?php while($sub_cat_det = $res_cat->fetch_assoc()){
                                $sub_cat_href = str_ireplace(" ", "-", $sub_cat_det['catName']);
                                $sel_specific_category = "Select * from location_content_tbl where category_id = '".$sub_cat_det['catID']."'";
                                $res_specific_cat = $dbconn->query($sel_specific_category);
                                $short_description = '';
                                if($res_specific_cat->num_rows > 0){
                                    while($specific_categories = $res_specific_cat->fetch_assoc()){
                                        $locat = explode(",", $specific_categories['location_ids']);
                                        if(in_array($location_id, $locat)){
                                            $short_description = str_ireplace("{location}", $location_name, $specific_categories['short_description']);
                                        }
                                    }
                                }
                            ?>
                            
                            <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"><?php if($sub_cat_det['catImage']){ ?>
                                            <a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>">
                                                <div class="image1">
                                                    <img class="category_image<?= $sub_cat_det['catID']; ?>" src="<?= getImage($sub_cat_det['catImage'],300,300, $sub_cat_det['catName'], "/uploaded-files/category/images/");?>" alt="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>">
                                                </div>
                                            </a><?php } ?>
                                        </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">
                                            <h4 class="title"><a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" title="<?= $sub_cat_det['displayName']; ?> in <?= $location_name; ?>"><?= $sub_cat_det['displayName']; ?></a></h4>
                                            <div class="blue-line1"></div>
                                            <div class="more_info">
                                                <?= $short_description; ?>
                                                
                                            </div>

                                            <div class="clearfix"></div>

                                            <a class="read_more_1 bg_btn_1 pop_cat_id" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><input type="hidden" class="cat_id" value="<?= $sub_cat_det['catID']; ?>" ><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</a>
                                            <a href="<?= site_url.'/'.$location.'/'.strtolower($sub_cat_href); ?>.htm" class="read_more_1 bg_btn_1" title="Read More">Read More</a>

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


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

    <div class="videoSection">
        <div class="container">
            <div class="h2_title">Our Videos</div>
            <div class="maxWidth">
                <p>Healoxy offers the best rental services for Medical Equipment in <?= $location_name; ?> at cost-effective prices. Monitoring equipment, diagnostic equipment, treatment equipment, and assistive devices are all included in the extensive selection of medical equipment that is available for rent.</p>
            </div>
            <div class="clearfix"></div>
            <div class="row">
                <?php while ($video_res = mysqli_fetch_array($video_sql)) { ?>
                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12">
                        <div class="videoFeedback">
                            <span class="feedbackStar">
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                    class="bi bi-star-fill" viewBox="0 0 16 16">
                                    <path
                                        d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z">
                                    </path>
                                </svg>
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                    class="bi bi-star-fill" viewBox="0 0 16 16">
                                    <path
                                        d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z">
                                    </path>
                                </svg>
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                    class="bi bi-star-fill" viewBox="0 0 16 16">
                                    <path
                                        d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z">
                                    </path>
                                </svg>
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                    class="bi bi-star-fill" viewBox="0 0 16 16">
                                    <path
                                        d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z">
                                    </path>
                                </svg>
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                                    class="bi bi-star-half" viewBox="0 0 16 16">
                                    <path
                                        d="M5.354 5.119 7.538.792A.52.52 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.54.54 0 0 1 16 6.32a.55.55 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.5.5 0 0 1-.146.05c-.342.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.172-.403.6.6 0 0 1 .085-.302.51.51 0 0 1 .37-.245zM8 12.027a.5.5 0 0 1 .232.056l3.686 1.894-.694-3.957a.56.56 0 0 1 .162-.505l2.907-2.77-4.052-.576a.53.53 0 0 1-.393-.288L8.001 2.223 8 2.226z">
                                    </path>
                                </svg>
                            </span>


                            <a data-fancybox="" href="https://www.youtube.com/embed/<?= $video_res['slink_url']; ?>" title="<?php echo $video_res['slink_title']; ?>">
                                <div class="image">
                                    <img src="https://img.youtube.com/vi/<?= $video_res['slink_url']; ?>/sddefault.jpg" alt="<?php echo $video_res['slink_title']; ?>" title="<?php echo $video_res['slink_title']; ?>">
                                    <span>
                                        <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                            <path
                                                d="M17.13 7.9799C20.96 10.1899 20.96 13.8099 17.13 16.0199L14.04 17.7999L10.95 19.5799C7.13 21.7899 4 19.9799 4 15.5599V11.9999V8.43989C4 4.01989 7.13 2.2099 10.96 4.4199L13.21 5.7199"
                                                stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10"
                                                stroke-linecap="round" stroke-linejoin="round"></path>
                                        </svg>
                                    </span>
                                </div>
                                <div class="videoTitle">
                                    <div class="videoName"><?= $video_res['slink_title']; ?></div>
                                </div>
                            </a>
                        </div>
                    </div>
                <?php } ?>
            </div>
            <div class="text-center">
                <a href="<?= site_url; ?>/video-gallery.htm" class="read_more_1 bg_btn_1" title="Read More">View More Videos</a>
            </div>
        </div>
    </div>

    <?//php include "app_testimonials.php"; ?>
    <?//php include "app_faq.php"; ?>
    <?php include "app_footer_sub.php"; ?>
    <?php include "app_bottom.php"; ?>
    <script>
    $(document).ready(function() {
        $("#product_pop_form").validate({
            rules: {
                name: "required",
                message: "required",
                location: "required",
                email: {
                    required: true,
                    email: true
                },
                mobile: {
                    required: true,
                    number: true,
                    minlength: 10,
                }
            },
            messages: {
                name: "Please enter your name",
                message: "Please enter message",
                email: {
                    required: "Please enter your email address"
                },
                location: "Please enter your location",
                mobile: {
                    required: "Please enter your mobile no.",
                    number: "Mobile No. contains only numbers",
                    minlength: "Your Mobile No. must be at least 10 characters long",
                }
            },
        });
        $("#callback_form").validate({
          rules:{
            name: "required",
            mobile: {
              required: true,
              number: true,
              minlength:10,
              maxlength:10,
            }
          },
          messages:{
            name: "Please Enter Your Name",
            mobile: {
              required: "Please Enter Your mobile Number",
              number: "Mobile Number Must be Number",
              minlength: "Mobile Number must have 10 digits",
              maxlength: "Mobile Number must have 10 difits",
            }
          },
        });
        $('.product_aimage').click(function(){
            var pr_image = $(this).attr('src');
            var s_no = $(this).siblings('.pr_sno').val();
            $('.activeImage'+s_no).attr('src', pr_image);
        });
    })
    </script>
</body>
</html>
<?php }else {
    header('location:'.site_url);
} ?>
