<?php
    require("header_inc.php");
    if (isset($_GET['services'])) {
        $services=$_GET['services'];
        $get_p_cat="select * from categories where slug='$services' ";
        $run_p_cat=mysqli_query($con,$get_p_cat);
        $row_p_cat=mysqli_fetch_array($run_p_cat);
        $cat_id=$row_p_cat['id'];
        $categories=$row_p_cat['categories'];
        $slug=$row_p_cat['slug'];
        
        $get_product="select * from product where categories_id='$cat_id'";
        $run_product=mysqli_query($con,$get_product);
        $row_product=mysqli_fetch_array($run_product);
        $name=$row_product['name'];
        $image=$row_product['image'];
        $short_desc=$row_product['short_desc'];
        $description=$row_product['description'];
        $meta_title=$row_product['meta_title'];
        $meta_desc=$row_product['meta_desc'];
        $meta_keyword=$row_product['meta_keyword'];
    }
?>

    <!-- Start Breadcrumb 
    ============================================= -->
    <div class="breadcrumb-area shadow dark bg-fixed text-light" style="background-image: url(assets/img/banner/15.jpg);">
        <div class="container">
            <div class="row align-center">
                <div class="col-lg-6">
                    <h2>Our Services</h2>
                </div>
                <div class="col-lg-6 text-right">
                    <ul class="breadcrumb">
                        <li><a href="#"><i class="fas fa-home"></i> Home</a></li>
                        <li class="active"><?php echo $categories; ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- End Breadcrumb -->

    <div class="services-details-area default-padding">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 content">
                    <div class="thumb">
                        <img src="<?php echo PRODUCT_IMAGE_SITE_PATH.$image; ?>" alt="<?php echo $name; ?>">
                    </div>
                </div>
                <div class="col-lg-6 content">
                    <h2><?php echo $name; ?></h2>
                    <?php echo $short_desc; ?>
                </div>
                <div class="col-lg-12 content">
                    <?php echo $description; ?>
                </div>
            </div>
        </div>
    </div>
<?php 
    require("footer_inc.php");
?>