<?php
$show_manage = true;
if ($what_page == "DEFAULT") {
    $show_manage = false;
}
?>
<!-- BEGIN: Content-->
<div class="app-content content">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper">
        <div class="content-header row">
        </div>
        <div class="content-body">


            <!-- Nav Centered And Nav End Starts -->
            <section id="nav-tabs-centered">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="card overflow-hidden">
                            <input type="hidden" name="page_key" value="<?= $page_key ?>" >
                            <input type="hidden" id='member_id' name='member_id' value="<?= $_SESSION["member_id"] ?>" />
                            <input type="hidden" id='page_id' name='page_id' value="<?= $page_id ?>" />

                            <div class="card-content">
                                <div class="card-body">
                                    <ul class="nav nav-tabs justify-content-center" role="tablist">
                                        <li class="nav-item">
                                            <a class="nav-link active" id="home-tab-center" data-toggle="tab" href="#home-center" aria-controls="home-center" role="tab" aria-selected="true"><h4 class="card-title"><?= $title ?></h4></a>
                                        </li>
                                        <?php
                                        if (true == $show_manage) {
                                            ?>
                                            <li class="nav-item">
                                                <a class="nav-link" id="service-tab-center" data-toggle="tab" href="#service-center" aria-controls="service-center" role="tab" aria-selected="false">Manage</a>
                                            </li>
                                            <?php
                                        }
                                        ?>


                                    </ul>
                                    <div class="tab-content">
                                        <div class="tab-pane active" id="home-center" aria-labelledby="home-tab-center" role="tabpanel">
                                            <?php
                                            if ($what_page == "DEFAULT") {
                                                $show_manage = false;
                                                include("pages/pages_DEFAULT.php");
                                            } else {
                                                include("pages/pages_OTHER.php");
                                            }
                                            ?>
                                        </div>

                                        <div class="tab-pane" id="service-center" aria-labelledby="service-tab-center" role="tabpane1">
                                            <?php
                                            include 'pages/manage_contents.php';
                                            ?>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <!-- Nav Centered And Nav End Ends -->


            <!-- Dashboard Analytics Start -->
            <section id="dashboard-analytics">
                <div class="row">








                </div>

            </section>
            <!-- Dashboard Analytics end -->
        </div>
    </div>
</div>
<!-- END: Content-->


