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

        <!-- team-area -->
        <?php
            $team_sql = "SELECT * FROM data_table WHERE up_by = $x && page_type = 'team' && recycle = '1' ORDER BY id DESC";
            $team_run = mysqli_query($con, $team_sql);
            if($team_run){
        ?>
        <div class="team-area py-120">
            <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>
                                Our Teachers</span>
                            <h2 class="site-title">Meet With Our <span>Teachers</span></h2>
                        </div>
                    </div>
                </div>
                <div class="row justify-content-center">
                    <?php
                        while ($team_row = mysqli_fetch_assoc($team_run)) {
                    ?>
                    <div class="col-md-6 col-lg-3">
                        <div class="team-item wow fadeInUp" data-wow-delay=".25s">
                            <div class="team-img text-center">
                                <img src="./login/upload/<?php echo $team_row['image_one']?>" alt="thumb">
                            </div>
                            <div class="team-social d-none">
                                <a href="#"><i class="fab fa-facebook-f"></i></a>
                                <a href="#"><i class="fab fa-whatsapp"></i></a>
                                <a href="#"><i class="fab fa-linkedin-in"></i></a>
                                <a href="#"><i class="fab fa-youtube"></i></a>
                            </div>
                            <div class="team-content">
                                <div class="team-bio">
                                    <h5><a href="team.php"><?= $team_row["title"];?></a></h5>
                                    <span><?= $team_row["short_des"];?></span>
                                </div>
                            </div>
                            <span class="team-social-btn"><i class="far fa-user"></i></span>
                        </div>
                    </div>
                    <?php }?>
                </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>