<?php get_header();
global $post;
$designation= get_field('designation');
$image= get_field('profile_picture');
$email= get_field('email');
$details= get_field('details');
$educational_qualifications= get_field('educational_qualifications');
?>
    <section>
        <div class="faculty-profile-banner d-flex justify-content-center align-items-center" style="background-image: url(<?php echo get_site_url(); ?>/wp-content/uploads/2024/07/IMG-20240728-WA0000.jpg)">
            <h1 class="text-white font-poppins"><?php echo get_the_title();?></h1>
        </div>
    </section>
    <main class="container mt-5">
        <!-- Proffessor Profile -->
        <div class="row">
            <div class="col-lg-3 ">
                <div class="shadow-sm p-3 mb-3 bg-light rounded">
                    <div class="faculty-profile-content">
                        <div class="d-flex justify-content-center">
                            <?php if ($image != '') : ?>

                                <img class="rounded object-cover" src="<?php echo $image ?>" alt="..." height="200" width="200">
                            <?php
                            else:
                                ?>
                                <img class="rounded object-cover" src="<?php echo esc_url(get_template_directory_uri()); ?>/image/Men%27s-Collection-img.jpg" alt="" height="200" width="200">
                            <?php
                            endif;
                            ?>

                        </div>
                        <div class="text-center mt-3">
                            <h1 class="text-uppercase fw-bold"><?php echo get_the_title();?></h1>
                            <p class="text-uppercase fw-bolder"><?= $designation ?></p>
                        </div>
                    </div>
                    <!--<div class="social-section d-flex justify-content-center d-none">
                        <div class="faculty-social-icon text-center">
                            <a href="_div__br__/div__div__table%20id%3d_gsc_rsb_st_%20style%3d_margin_%200px%3b%20padding_%200px%3b%20border_%200px%3b%20empty-cells_%20show%3b%20width_%20301px%3b%20color_.html#222222; font-family: Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gsc_rsb_std&quot; style=&quot;line-height: 1.24; text-align: right; padding-right: 8px;&quot;&gt;850 Citation&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;"><img
                                    class=""
                                    src="../../public/frontend/assets/img/faculty-of-bs/social-icon%20(1).png"
                                    alt="icon"></a>
                        </div>
                        <div class="faculty-social-icon text-center">
                            <a href="#"><img
                                    class=""
                                    src="../../public/frontend/assets/img/faculty-of-bs/social-icon%20(2).png"
                                    alt="icon"></a>
                        </div>
                        <div class="faculty-social-icon text-center">
                            <a href="#"><img class=""
                                             src="../../public/frontend/assets/img/faculty-of-bs/social-icon%20(3).png"
                                             alt="icon"></a>
                        </div>
                        <div class="faculty-social-icon text-center">
                            <a href="#"><img class=""
                                             src="../../public/frontend/assets/img/faculty-of-bs/social-icon%20(4).png"
                                             alt="icon"></a>
                        </div>
                    </div>-->

                    <div class="faculty-contact">
                        <h1 class="d-flex justify-content-start align-items-center"><i
                                class="bi bi-envelope-at text-primary fs-3 mx-2 "></i><?= $email ?>
                        </h1>
                        <!--<hr>
                        <h1 class="d-flex justify-content-start align-items-center"><i
                                class="bi bi-geo-alt text-primary fs-3 mx-2 "></i>BANGLADESH UNIVERSITY OF
                            PROFESSIONALS<br>
                            Mirpur Cantonment, Dhaka-1216</h1>-->
                    </div>
                </div>
            </div>
            <div class="col-lg-9">
                <div class="row shadow-sm p-3 mb-3 bg-light rounded g-2">
                    <div class="nav nav-tabs border-0" id="myTab" role="tablist">
                        <div class="nav-item col-lg-2 col-md-6 d-flex justify-content-center" role="presentation">
                            <div class="nav-link card border-0 active justify-content-center" id="one-tab" data-bs-toggle="tab"
                                 data-bs-target="#one-tab-pane" type="button" role="tab" aria-controls="one-tab-pane"
                                 aria-selected="true"
                                 style="width: 120px; height: 140px; background: linear-gradient(180deg, #253b80 0%, rgba(4, 124, 59, 0.3) 100%);">
                                <div class="text-center">
                                    <img class="rounded"
                                         src="<?php echo esc_url(get_template_directory_uri()); ?>/public/frontend/assets/img/faculty-of-bs/icon%20(6).png"
                                         alt="icon">
                                    <h1 class="card-title fs-6 text-center text-white mt-2">Overview</h1>
                                </div>
                            </div>
                        </div>
                        <div class="nav-item col-lg-2 col-md-6 d-flex justify-content-center" role="presentation">
                            <div class="nav-link card border-0 justify-content-center" id="two-tab" data-bs-toggle="tab"
                                 data-bs-target="#two-tab-pane" type="button" role="tab" aria-controls="two-tab-pane"
                                 aria-selected="false"
                                 style="width: 120px; height: 140px; background: linear-gradient(180deg, #253b80 0%, rgba(4, 124, 59, 0.3) 100%);">
                                <div class="text-center">
                                    <img class="rounded"
                                         src="<?php echo esc_url(get_template_directory_uri()); ?>/public/frontend/assets/img/faculty-of-bs/icon%20(5).png"
                                         alt="icon">
                                    <h1 class="card-title fs-6 text-center text-white mt-2">Education</h1>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="tab-content shadow-sm px-3 pb-3 mb-5 bg-light rounded" id="myTabContent">
                    <div class="tab-pane fade show active profile-details-tab-content" id="one-tab-pane" role="tabpanel"
                         aria-labelledby="one-tab" tabindex="0">

                        <div class="pt-3 border-bottom">
                            <?= $details ?>
                        </div>





                    </div>

                    <div class="tab-pane fade profile-details-tab-content" id="two-tab-pane" role="tabpanel"
                         aria-labelledby="two-tab" tabindex="0">
                        <?= $educational_qualifications ?>
                    </div>

                </div>

            </div>
        </div>
    </main>
    <script>
        $('#myTab .nav-link').click(function() {
            $('#myTab .nav-link').each(function() {
                $(this).removeClass('active');
            });

            $(this).addClass('active');

        });

        $('#pills-tab .nav-link').click(function() {
            $('#pills-tab .nav-link').each(function() {
                $(this).removeClass('active');
            });

            $(this).addClass('active');
        });
    </script>
<?php get_footer(); ?>