<!DOCTYPE html>
<html lang="en">
<head>
    <?php include_once("assets/include/head.php")?>
</head>
<body>
    <?php include_once("assets/include/header.php")?>
    <!-- section subbanner started... -->
    <section class="sub-banner">
        <picture>
            <source media="(max-width:767px)" srcset="assets/images/service-mob.webp">
            <source media="(min-width:768px)" srcset="assets/images/services.webp">
            <img src="#" alt="banner-img">
        </picture>
        <nav aria-label="breadcrumb">
            <div class="container">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php path();?>">Home</a></li>
                    <li class="breadcrumb-item active" aria-current="page">Services</li>
                </ol>
            </div>
        </nav>
    </section>
    <!-- section subbanner ended... -->
    <!-- services section started... -->
    <section class="service py-40">
        <div class="container">
            <h2 class="title mb-5 text-center">Our Featured <span>Services</span></h2>
            <div class="row">
                <?php
                    $cr=mysqli_query($con,"SELECT * FROM category where status='1' order by id");
                    while($ss=mysqli_fetch_array($cr)){
                        $cid=$ss['id'];
                        $sr=mysqli_query($con,"SELECT * FROM cat_content where cat_id='$cid' order by id");
                        $rn=mysqli_fetch_array($sr);
                        $data=$rn['description'];
                ?>
                <div class="col-md-4">
                    <div class="service-box">
                        <a href="<?php path();?>/<?php echo $ss['slug'];?>" class="service-img d-block"><img src="<?php path();?>/assets/images/service_img/<?php echo $rn['him']; ?>" alt=""></a>
                        <div class="service-content text-center">
                            <div class="service-icon"><i class="fa fa-trash-o"></i></div>
                            <a href="<?php path();?>/<?php echo $ss['slug'];?>" class="d-block"><h3 class="service-title"><?php echo $ss['cat_name']; ?></h3></a>
                            <p><?php echo $data; ?></p>
                        </div>
                    </div>
                </div>
                <?php } ?>
            </div>
        </div>
    </section>
    <!-- services section ended... -->
    <?php include_once("assets/include/footer.php")?>
</body>
</html>