<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
    <ul class="nav navbar-nav">
        <li class="active"><a href="<?= base_url('home') ?>">Home</a></li>
        <?php if (session()->level == 1) : ?>

            <li><a href="<?= base_url('biodata') ?>">Biodata</a></li>
            <li><a href="<?= base_url('identitas') ?>">Identitas</a></li>
            <li><a href="<?= base_url('mengajar') ?>">Mengajar</a></li>
            <li>
                <a href="') ?>" class="dropdown-toggle" data-toggle="dropdown">Pelatihan <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="<?= base_url('pelatihan_karyawan') ?>">Karyawan</a></li>
                    <li><a href="<?= base_url('pelatihan') ?>">Guru</a></li>
                </ul>
            </li>
            <li><a href="<?= base_url('pendidikan') ?>">Pendidikan</a></li>
        <?php endif; ?>
        <?php if (session()->level == 2) : ?>
            <li><a href="<?= base_url('kategori') ?>">Category</a></li>
            <li><a href="<?= base_url('dep') ?>">Departement</a></li>
            <li><a href="<?= base_url('arsip') ?>">Document</a></li>
            <li><a href="<?= base_url('arsip_user') ?>">All Document</a></li>
        <?php endif; ?>
        <?php if (session()->level == 3) : ?>
            <li><a href="<?= base_url('arsip_user') ?>">All Document</a></li>
        <?php endif; ?>
    </ul>
</div>
<!-- /.navbar-collapse -->
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
    <ul class="nav navbar-nav">

        <!-- User Account Menu -->
        <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <!-- The user image in the navbar-->
                <img src="<?= base_url('foto/' . session()->get('foto')) ?>" class="user-image" alt="User Image">
                <!-- hidden-xs hides the username on small devices so only the image appears. -->
                <span class="hidden-xs"><?= session()->get('nama_user') ?></span>
            </a>
            <ul class="dropdown-menu">
                <!-- The user image in the menu -->
                <li class="user-header">
                    <img src="<?= base_url('foto/' . session()->get('foto')) ?>" class="img-circle" alt="User Image">

                    <p>
                        <?= session()->get('nama_user') ?> - <?php if (session()->get('level') == 1) {
                                                                    echo 'AdminSuper';
                                                                } else if (session()->get('level') == 2) {
                                                                    echo 'Admin';
                                                                } else {
                                                                    echo 'User';
                                                                } ?>

                        <small><?php echo "" . date("d-m-Y"); ?></small>
                    </p>
                </li>
                <!-- Menu Body -->
                <!-- Menu Footer-->
                <li class="user-footer">
                    <div class="pull-right">
                        <a href="<?= base_url('auth/logout') ?>" class="btn btn-default btn-flat">Logout</a>
                    </div>
                </li>
            </ul>
        </li>
    </ul>
</div>
<!-- /.navbar-custom-menu -->
</div>
<!-- /.container-fluid -->
</nav>
</header>
<!-- Full Width Column -->
<div class="content-wrapper">
    <div class="container">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <?= $title ?>

            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> SIMPEG</a></li>
                <li class="active"><?= $title ?></li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">