<div class="sidebar sidebar-style-2">
    <div class="sidebar-wrapper scrollbar scrollbar-inner">
        <div class="sidebar-content">
            <div class="user">
                <div class="avatar-sm float-left mr-2">
                    <img src="<?php echo base_url() ?>/assets/img/profile.jpg" alt="..." class="avatar-img rounded-circle">
                </div>
                <div class="info">
                    <a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
                        <span>
                            <?php echo $this->session->userdata('nama'); ?>
                            <span class="user-level"><?php echo $this->session->userdata('username'); ?></span>
                            <span class="caret"></span>
                        </span>
                    </a>
                    <div class="clearfix"></div>

                    <div class="collapse in" id="collapseExample">
                        <ul class="nav">
                            <a href="<?= base_url('profil') ?>">
                                <span class="link-collapse">Edit Profile</span>
                            </a>
                            </li>
                            <li>
                                <a href="<?= base_url('Auth/logout') ?>">
                                    <span class="link-collapse">Log Out</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <ul class="nav nav-primary">
                <li class="nav-item">
                    <a href="<?php echo site_url('dashboard') ?>" class="collapsed" aria-expanded="false">
                        <i class="fas fa-home"></i>
                        <p>Dashboard</p>
                    </a>
                </li>
                <li class="nav-section">
                    <span class="sidebar-mini-icon">
                        <i class="fa fa-ellipsis-h"></i>
                    </span>
                    <h4 class="text-section">KELOLA DATA</h4>
                </li>
                <li class="nav-item">
                    <a href="<?php echo site_url('Pasien') ?>">
                        <i class="fas fa-users"></i>
                        <p>Pasien</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo site_url('Pengunjung') ?>">
                        <i class="fas fa-address-card"></i>
                        <p>Data Pengunjung</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a data-toggle="collapse" href="#master-data">
                        <i class="fas fa-layer-group"></i>
                        <p>Master Data</p>
                        <span class="caret"></span>
                    </a>
                    <div class="collapse" id="master-data">
                        <ul class="nav nav-collapse" style="padding-bottom:0px !important;">
                            <li>
                                <a href="<?php echo site_url('KategoriPasien') ?>">
                                    <span class="sub-item">Kategori Pasien</span>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo site_url('JenisPelayanan') ?>">
                                    <span class="sub-item">Jenis Pelayanan</span>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo site_url('Pelayanan') ?>">
                                    <span class="sub-item">Pelayanan</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a href="<?php echo site_url('Peramalan') ?>">
                        <i class="fas fa-chart-line"></i>
                        <p>Ramalan Pengunjung</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>
</div>