<?php

if ($this->session->userdata("sebagai") == "1" ) {

  $page = "dashboard_user";

}else{

  $page = "dashboard_admin";

}

?>

    <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">



      <!-- Sidebar - Brand -->

      <a class="sidebar-brand d-flex align-items-center justify-content-center" href="<?=base_url()?>">

        <div class="sidebar-brand-icon">

          <!-- <i class="fas fa-laugh-wink"></i> -->

          <img src="<?=base_url("assets/img/logo.png")?>" style="width: 50px;height: 50px;">

        </div>

        <div class="sidebar-brand-text">E-PKA<sup>GPIB CINERE</sup></div>

      </a>



      <!-- Divider -->

      <hr class="sidebar-divider my-0">



      <!-- Nav Item - Dashboard -->

      <li class="nav-item active">

        <a class="nav-link" href='javascript:void(0)' onclick="getcontens('page/<?=$page?>');">

          <i class="fas fa-fw fa-tachometer-alt"></i>

          <span>Dashboard</span></a>

      </li>



      <!-- Divider -->

      <hr class="sidebar-divider">



      <!-- Heading -->

      <div class="sidebar-heading">

        Menu

      </div>



      <!-- Nav Item - Pages Collapse Menu -->

      <li class="nav-item <?=$d?>">

        <a class="nav-link collapsed" href="javascript:void(0)" data-toggle="collapse" data-target="#pka" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-file-alt"></i>

          <span>PKA</span>

        </a>

        <div id="pka" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">PKA:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_pka');">Data PKA</a>


            <a class="collapse-item <?=$c?>" href='javascript:void(0)' onclick="getcontens('page/tambah_pka');">Isi Form PKA</a>

            <a class="collapse-item <?=$c?>" href='javascript:void(0)' onclick="getcontens('page/file_pka');">File PKA</a>

            <a class="collapse-item <?=$c?>" href='javascript:void(0)' onclick="getcontens('page/data_refisi_pka');">Data Revisi PKA</a>

            <a class="collapse-item <?=$ev?>" href='javascript:void(0)' onclick="getcontens('page/data_evaluasi_pka');">Data Evaluasi PKA</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_refisi_evaluasi_pka');">Data Revisi Evaluasi PKA</a>

          </div>

        </div>

      </li>

      <!-- End -->

       <!-- Nav Item - Pages Collapse Menu -->

       <li class="nav-item <?=$s?>">

        <a class="nav-link collapsed" href="javascript:void(0)" data-toggle="collapse" data-target="#user" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-user"></i>

          <span>USER</span>

        </a>

        <div id="user" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">User:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_user_admin');">Data User</a>

          </div>

        </div>

      </li>

      <li class="nav-item <?=$s?>">

        <a class="nav-link collapsed" href="javascript:void(0)" data-toggle="collapse" data-target="#pka" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-file-alt"></i>

          <span>PKA</span>

        </a>

        <div id="pka" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">PKA:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_pka_admin');">Data PKA</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_evaluasi_pka_admin');">Data Evaluasi PKA</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/sesi_pka');">Sesi PKA</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/sesi_ev_pka');">Sesi Evaluasi PKA</a>

          </div>

        </div>

      </li>

      <li class="nav-item <?=$s?>">

        <a class="nav-link collapsed" href="javascript:void(0)" data-toggle="collapse" data-target="#master" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-database"></i>

          <span>Master</span>

        </a>

        <div id="master" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">Master:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_unit_misioner');">Data Unit Misioner</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_strategi');">Data Strategi</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_bidang');">Data Bidang</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_jenis_kegiatan');">Data Jenis Kegiatan</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/data_prioritas_kegiatan');">Data Prioritas Kegiatan</a>

          </div>

        </div>

      </li>

      <li class="nav-item <?=$s?>">

        <a class="nav-link collapsed" href="javascript:void(0)" data-toggle="collapse" data-target="#template_email" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-envelope-open-text"></i>

          <span>Template Email</span>

        </a>

        <div id="template_email" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">Template Email:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/header_footer');">Header & Footer</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/template_mail_register');">Register</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/template_mail_pka');">PKA</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/template_mail_evaluasi_pka');">EvaluasiPKA</a>

          </div>

        </div>

      </li>

      <!-- End -->





      <!-- Nav Item - Pages Collapse Menu -->

      <!-- <li class="nav-item">

        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">

          <i class="fas fa-fw fa-cog"></i>

          <span>Components</span>

        </a>

        <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">Custom Components:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/buttons');">Buttons</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/card');">Cards</a>

          </div>

        </div>

      </li> -->



      <!-- Nav Item - Utilities Collapse Menu -->

      <!-- <li class="nav-item">

        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities" aria-expanded="true" aria-controls="collapseUtilities">

          <i class="fas fa-fw fa-wrench"></i>

          <span>Utilities</span>

        </a>

        <div id="collapseUtilities" class="collapse" aria-labelledby="headingUtilities" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">Custom Utilities:</h6>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/color');">Colors</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/border');">Borders</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/animation');">Animations</a>

            <a class="collapse-item" href='javascript:void(0)' onclick="getcontens('page/other');">Other</a>

          </div>

        </div>

      </li> -->



      <!-- Divider -->

      <!-- <hr class="sidebar-divider"> -->



      <!-- Heading -->

      <!-- <div class="sidebar-heading">

        Addons

      </div> -->



      <!-- Nav Item - Pages Collapse Menu -->

      <!-- <li class="nav-item">

        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages" aria-expanded="true" aria-controls="collapsePages">

          <i class="fas fa-fw fa-folder"></i>

          <span>Pages</span>

        </a>

        <div id="collapsePages" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar">

          <div class="bg-white py-2 collapse-inner rounded">

            <h6 class="collapse-header">Login Screens:</h6>

            <a class="collapse-item" href="login.html">Login</a>

            <a class="collapse-item" href="register.html">Register</a>

            <a class="collapse-item" href="forgot-password.html">Forgot Password</a>

            <div class="collapse-divider"></div>

            <h6 class="collapse-header">Other Pages:</h6>

            <a class="collapse-item" href="404.html">404 Page</a>

            <a class="collapse-item" href="blank.html">Blank Page</a>

          </div>

        </div>

      </li> -->



      <!-- Nav Item - Charts -->

      <!-- <li class="nav-item">

        <a class="nav-link" href='javascript:void(0)' onclick="getcontens('page/charts');">

          <i class="fas fa-fw fa-chart-area"></i>

          <span>Charts</span></a>

      </li> -->



      <!-- Nav Item - Tables -->

      <!-- <li class="nav-item">

        <a class="nav-link" href='javascript:void(0)' onclick="getcontens('page/tables');">

          <i class="fas fa-fw fa-table"></i>

          <span>Tables</span></a>

      </li> -->



      <!-- Divider -->

      <hr class="sidebar-divider d-none d-md-block">



      <!-- Sidebar Toggler (Sidebar) -->

      <div class="text-center d-none d-md-inline">

        <button class="rounded-circle border-0" id="sidebarToggle"></button>

      </div>



    </ul>

    <!-- End of Sidebar