<aside id="left-panel" class="left-panel">
    <nav class="navbar navbar-expand-sm navbar-default">
        <div class="navbar-header">
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
                <i class="fa fa-bars"></i>
            </button>
            <a class="navbar-brand" href="./"><img src="images/logo.png" alt="Logo"></a>
            <a class="navbar-brand hidden" href="./"><img src="images/logo2.png" alt="Logo"></a>
        </div>

        <div id="main-menu" class="main-menu collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="index.php"> <i class="menu-icon fa fa-dashboard"></i>Dashboard </a>
                </li>
                <h3 class="menu-title">Manage Marga</h3>
                <!-- /.menu-title -->
                <li class="">
                    <a href="inputMarga.php"> <i class="menu-icon fa fa-dashboard"></i>Input Marga & Toga  </a>

                <li class="menu-item-has-children dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-laptop"></i>Edit daftar Marga</a>
                    <ul class="sub-menu children dropdown-menu">
                      <?php
                        $result = mysqli_query($ok->conn(),'Select * from toga');
                        while($user_data = mysqli_fetch_array($result)){ ?>
                        <li><i class="fa fa-puzzle-piece"></i><a href="marga.php?<?php echo md5('marga');echo "="; echo $user_data['id_toga']; ?>"><?php echo $user_data['nama_toga']; ?></a></li>
                      <?php } ?>
                    </ul>
                </li>
                <li class="menu-item-has-children dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-laptop"></i>Tampilkan data User</a>
                    <ul class="sub-menu children dropdown-menu">
                      <?php
                        $result = mysqli_query($ok->conn(),'Select * from toga');
                        while($user_data = mysqli_fetch_array($result)){ ?>
                        <li><i class="fa fa-puzzle-piece"></i><a href="Tampilmarga.php?<?php echo "marga="; echo $user_data['id_toga']; ?>"><?php echo $user_data['nama_toga']; ?></a></li>
                      <?php } ?>
                    </ul>
                </li>
                <li class="">
                    <a href="TampilGraphic.php"> <i class="menu-icon fa fa-dashboard"></i>Tampilkan Grafik</a>
                </li>



            </ul>
        </div><!-- /.navbar-collapse -->
    </nav>
</aside><!-- /#left-panel -->
