<!DOCTYPE html>
<html lang="en">

<head>
    <?php include("include/meta.php");?>
    <?php include("include/css.php");?>
</head>

<body>

    <!-- preloader -->
    <?php include("include/preloader.php");?>
    <!-- preloader end -->


    <!-- header area -->
    <?php include("include/header.php");?>
    <!-- header area end -->

    <main class="main">

        <!-- breadcrumb -->
        <?php
            $banner_sql = "SELECT * FROM data_table WHERE up_by = $x && page_type = 'slider' && recycle = '1' ORDER BY id DESC";
            $banner_run = mysqli_query($con, $banner_sql);
            if ($banner_row = mysqli_fetch_assoc($banner_run)) {
            ?>
        <div class="site-breadcrumb" style="background: url(./login/upload/<?php echo $banner_row['image_one']?>)">
            <div class="container">
                <h2 class="breadcrumb-title">Hostel</h2>
                <ul class="breadcrumb-menu">
                    <li><a href="index.php">Home</a></li>
                    <li class="active">Hostel</li>
                </ul>
            </div>
        </div>
        <?php }?>
        <!-- breadcrumb end -->

        <!-- hostel-area -->
        <?php
            $md_sql = "SELECT * FROM data_table WHERE up_by = $x && page_type = 'hostel' && recycle = '1' ORDER BY id DESC";
            $md_run = mysqli_query($con, $md_sql);
            if($md_row = mysqli_fetch_assoc($md_run)){
        ?>
        <div class="team-single pt-120 pb-80">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6 mx-auto">
                        <div class="site-heading text-center">
                            <span class="site-title-tagline"><i class="far fa-book-open-reader"></i>
                                Macaw Public School Hostel</span>
                            <h2 class="site-title">Your Child's Second Home, <span>Our First Priority</span></h2>
                        </div>
                    </div>
                </div>
                <div class="row align-items-center justify-content-center">
                    <?php if(!empty($md_row['image_one'])){?>
                    <div class="col-md-4">
                        <div class="team-single-img">
                            <img src="./login/upload/<?= $md_row['image_one']?>" alt="">
                        </div>
                    </div>
                    <?php }?>
                    <div class="col-md-<?php if(!empty($md_row['image_one'])){?>8<?php } else { echo '12';}?>">
                        <div class="team-details">
                            <h3><?= $md_row['title']?></h3>
                            <strong>MACAW Hostel Life</strong>
                            <p class="mt-3">
                                <?= $md_row['short_des']?>
                            </p>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="team-details-info" align="justify">
                            <?= $md_row["long_des"]; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php } ?>
        <!-- hostel-area end -->

    </main>



    <!-- footer area -->
    <?php include("include/footer.php");?>
    <!-- footer area end -->


    <!-- js -->
    <?php include("include/js.php");?>

</body>

</html>