<!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">Principal Message</h2>
                <ul class="breadcrumb-menu">
                    <li><a href="index.php">Home</a></li>
                    <li class="active">Principal Message</li>
                </ul>
            </div>
        </div>
        <?php }?>
        <!-- breadcrumb end -->

        <!-- team-area -->
        <?php
            $principal_sql = "SELECT * FROM data_table WHERE up_by = $x && page_type = 'principal' && recycle = '1' ORDER BY id DESC";
            $principal_run = mysqli_query($con, $principal_sql);
            if($principal_row = mysqli_fetch_assoc($principal_run)){
        ?>
        <div class="team-single pt-120 pb-80">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-md-4">
                        <div class="team-single-img">
                            <img src="./login/upload/<?= $principal_row['image_one']?>" alt="">
                        </div>
                    </div>
                    <div class="col-md-8">
                        <div class="team-details">
                            <h3><?= $principal_row['title']?></h3>
                            <strong>Principal MACAW Public School</strong>
                            <p class="mt-3">
                                <?= $principal_row['short_des']?>
                            </p>
                            <div class="team-details-info">
                                <?= $principal_row["long_des"]; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php } ?>
        <!-- team-area end -->

    </main>



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


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

</body>

</html>