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

<style>
    .package-card-alpha .package-thumb img {
        height: 224px;
    }

    .package-card-alpha {
        box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    }


    .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: 92%;
    }

    .trend-item {
        height: 462px !important;
    }

    .breadcrumb {
        margin-bottom: unset;
    }

    .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;
    }
</style>

<div>
    <img src="upload/<?php echo $subcategory['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 $subcategory['name']; ?></li>
                </ul>
            </nav>
        </div>
    </div>
</section>





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


        </div>
        <div class="trend-box">
            <div class="row mix tour">

                <?php

                $sub_cat = sqlfetch("SELECT * FROM subproduct where subcat='" . $subcategory['id'] . "' ");
                if (count($sub_cat)) {
                    foreach ($sub_cat as $subcat) {

                ?>

                        <div class="col-lg-4 col-md-6 mt-4">
                            <div class="package-card-alpha">
                                <div class="package-thumb">
                                    <a href="package_detail.php?id=<?php echo $subcat['id']; ?>">
                                        <img src="upload/<?php echo $subcat['photo2']; ?>"></a>
                                </div>
                                <div class="package-card-body">
                                    <h3 class="p-card-title"><a href="package_detail.php?id=<?php echo $subcat['id']; ?>">
                                            <b style="color:#000000; font-size:20px;"><i class="fa fa-map-marker"></i></b>
                                            <?php echo $subcat['name']; ?></a></h3>
                                    <p>
                                        <b style="color:#C80000; font-size:16px;">Duration: </b> <?php echo $subcat['pro_lable']; ?><br>
                                        <b style="color:#C80000; font-size:16px;">
                                            Destinations: </b> <?php custom_echo($subcat['pro_specification'], 20); ?>
                                    </p>

                                    <div class="itnry">

                                    </div>

                                    <div class="package-info" style="text-align:center;"> <a href="package_detail.php?id=<?php echo $subcat['id']; ?>" class="btn-welcome">View Details <i class="bx bxs-right-arrow-alt"></i></a>
                                        <a href="contact.php" class="btn-welcome1 text-white">Enquire Now<i class="bx bxs-right-arrow-alt"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>

                <?php
                    }
                }
                ?>


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


















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