<?php include 'include/header.php' ?>
<?php
$sql_gal = sqlfetch("select * from category where actstat=1 and id='" . $_GET['id'] . "'");
if (count($sql_gal))
    foreach ($sql_gal as $category) {
    }
?>

<style>
    .breadcrumb {
        margin-bottom: unset;
    }

    .section-title {
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
        padding: 29px 24px;
        width:95%;
    }

    .breadcrumb {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        list-style: none;
        background-color: #e9ecef;
        border-radius: 0px;
    }

    .trend-item {
        height: 462px !important;
    }
</style>


<div>
    <img src="upload/<?php echo $category['photo2']; ?>" class="img-responsive" style="width:100%">

</div>
<section class="breadcrumb-outerw" style="background-color:#e9ecef; padding:0px;">
    <div class="container">
        <div class="breadcrumb-content">
            <nav aria-label="breadcrumb" class="">
                <ul class="breadcrumb">
                    <li class="breadcrumb-item"><a href="#" class="text-dark"> Home</a></li>
                    <li class="breadcrumb-item active text-dark" aria-current="page"><?php echo $category['name']; ?></li>
                </ul>
            </nav>
        </div>
    </div>
</section>



<section class="trending">
    <div class="container">
        <div class="section-title">
            <h2><?php echo $category['name']; ?> Packages</h2>

            <p><?php echo $category['des']; ?> </p>

        </div>
        <div class="trend-box">
            <div class="row mix tour">
                <?php
                $sub_cat = sqlfetch("SELECT * FROM subcategory where subcat='" . $category['id'] . "' ");
                if (count($sub_cat)) {
                    foreach ($sub_cat as $subproduct) {

                ?>
                        <div class="col-md-4 mt-4">
                            <div class="tour-list-box text-center zt-overlay zt-overlay-hover">
                                <div class="img-box position-relative ">
                                    <a href="package_subcategory.php?id=<?php echo $subproduct['id']; ?>">
                                        <img src="upload/<?php echo $subproduct['photo']; ?>" alt="" style="height: 230px;">
                                    </a>
                                </div>
                                <div class="tcb-product-title" style=" position: absolute;  bottom: 5px;  width:100%; ">
                                    <h4 style="font-size: 21px;font-weight: bold;color: white; text-align: center; padding: 10px;">
                                        <a href="package_subcategory.php?id=<?php echo $subproduct['id']; ?>" style="color:#ffffff; text-decoration:none;"> <?php custom_echo($subproduct['name'], 30); ?> </a>
                                    </h4>
                                    <div style="text-align:center; color:#FFFFFF;">
                                        <a href="package_subcategory.php?id=<?php echo $subproduct['id']; ?>">
                                            <strong style="color:#F5C211;"> Read More </strong>
                                        </a>
                                    </div>

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



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

















<?php include 'include/footer.php' ?>