<nav class="navbar navbar-vertical navbar-expand-xl navbar-light navbar-vibrant">
    <div class="d-flex align-items-center">
        <div class="toggle-icon-wrapper">

            <button class="btn navbar-toggler-humburger-icon navbar-vertical-toggle" data-toggle="tooltip"
                data-placement="left" title="Toggle Navigation"><span class="navbar-toggle-icon"><span
                        class="toggle-line"></span></span></button>

        </div><a class="navbar-brand" href="<?php echo site_url('admin/dashboard') ?>">
            <div class="d-flex align-items-center py-3"><img class="mr-2"
                    src="<?= base_url() ?>/theme/images/logo.png" alt="" height="38" /></div>
        </a>
    </div>
    <div class="collapse navbar-collapse" id="navbarVerticalCollapse">
        <div class="navbar-vertical-content perfect-scrollbar scrollbar">
            <ul class="navbar-nav flex-column">
                <li class="nav-item<?php if (current_url() === site_url('admin/dashboard')) { ?> active<?php } ?>">
                    <a class="nav-link" href="<?php echo site_url('admin/dashboard') ?>">
                        <div class="d-flex align-items-center"><span class="nav-link-icon"><span
                                    class="fas fa-home"></span></span><span class="nav-link-text">Dashboard</span>
                        </div>
                    </a>
                </li>
            </ul>
            <div class="navbar-vertical-divider">
                <hr class="navbar-vertical-hr my-2" />
            </div>
            <ul class="navbar-nav flex-column">
                <li class="nav-item<?php if (current_url() === site_url('admin/server')) { ?> active<?php } ?>"><a
                        class="nav-link" href="<?php echo site_url('admin/server') ?>">
                        <div class="d-flex align-items-center"><span class="nav-link-icon"><i
                                    class="fas fa-server"></i></span><span class="nav-link-text">Server</span>
                        </div>
                    </a>
                </li>
            </ul>
            <div class="navbar-vertical-divider">
                <hr class="navbar-vertical-hr my-2" />
            </div>
            <ul class="navbar-nav flex-column">
                <li class="nav-item<?php if (current_url() === site_url('admin/ping')) { ?> active<?php } ?>"><a
                        class="nav-link" href="<?php echo site_url('admin/ping') ?>">
                        <div class="d-flex align-items-center"><span class="nav-link-icon"><i
                                    class="fas fa-sync-alt"></i></span><span class="nav-link-text">Ping Test</span>
                        </div>
                    </a>
                </li>
            </ul>
            <!-- <div class="navbar-vertical-divider">
                <hr class="navbar-vertical-hr my-2" />
            </div>
            <ul class="navbar-nav flex-column">
                <li class="nav-item<?php if (current_url() === site_url('admin/kategori-kegiatan')) { ?> active<?php } ?>"><a
                        class="nav-link" href="<?php echo site_url('admin/kategori-kegiatan') ?>">
                        <div class="d-flex align-items-center"><span class="nav-link-icon"><i
                                    class="fas fa-puzzle-piece"></i></span><span class="nav-link-text">Kategori Kegiatan</span>
                        </div>
                    </a>
                </li>
            </ul> -->

            <div class="navbar-vertical-divider">
                <hr class="navbar-vertical-hr my-2" />
            </div>
            <ul class="navbar-nav flex-column">
                <?php if (session()->get('admin_role') == 'superadmin') { ?>
                    <li class="nav-item<?php if (current_url() === site_url('admin/admin')) { ?> active<?php } ?>"><a
                            class="nav-link" href="<?= site_url('admin/admin') ?>">
                            <div class="d-flex align-items-center"><span class="nav-link-icon"><i
                                        class="fas fa-users-cog"></i></span></span><span class="nav-link-text">
                                    Admins</span>
                            </div>
                        </a></li>
                <?php } ?>
            </ul>

        </div>
    </div>
</nav>