<!-- Sidebar -->
<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('admin/dashboard') ?>">
        <div>
            <img src="<?= base_url('img/Journey-sidebar-with-slogan.png') ?>" alt=" Logo" style="max-width: 150px;">
        </div>
    </a>

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

    <!-- Nav Item - Dashboard -->
    <li class="nav-item <?= (current_url() == base_url('admin/dashboard')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/dashboard') ?>">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>Dashboard</span>
        </a>
    </li>
    <!-- Nav Item - Pages Collapse Menu -->
    <li class="nav-item <?= (current_url() == base_url('admin/company-sector')) || 
                       (current_url() == base_url('admin/company-interest')) || 
                       (current_url() == base_url('admin/skills')) ? 'active' : '' ?>">
    <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>Master Data</span>
    </a>
    <div id="collapseTwo" class="collapse <?= (current_url() == base_url('admin/company-sector')) || 
                                               (current_url() == base_url('admin/company-interest')) || 
                                               (current_url() == base_url('admin/skills')) ? 'show' : '' ?>"
         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 <?= (current_url() == base_url('admin/company-sector')) ? 'active' : '' ?>" 
               href="<?= base_url('admin/company-sector') ?>">Kelola Sektor</a>
            <a class="collapse-item <?= (current_url() == base_url('admin/company-interest')) ? 'active' : '' ?>" 
               href="<?= base_url('admin/company-interest') ?>">Kelola Minat</a>
            <a class="collapse-item <?= (current_url() == base_url('admin/skills')) ? 'active' : '' ?>" 
               href="<?= base_url('admin/skills') ?>">Kelola Kemampuan</a>
        </div>
    </div>
</li>


    <li class="nav-item <?= (current_url() == base_url('admin/vacancies')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/vacancies') ?>">
            <i class="fas fa-fw fa-briefcase"></i>
            <span>Lowongan</span>
        </a>
    </li>
    <li class="nav-item <?= (current_url() == base_url('admin/companies')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/companies') ?>">
            <i class="fas fa-fw fa-building"></i>
            <span>Perusahaan</span>
        </a>
    </li>
    <li class="nav-item <?= (current_url() == base_url('admin/users')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/users') ?>">
            <i class="fas fa-fw fa-user"></i>
            <span>Pencari Kerja</span>
        </a>
    </li>
    <li class="nav-item <?= (current_url() == base_url('admin/verify_users')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/verify_users') ?>">
            <i class="fas fa-fw fa-user-check"></i>
            <span>Verifikasi Pencari Kerja</span>
        </a>
    </li>
    <li class="nav-item <?= (current_url() == base_url('admin/verify_companies')) ? 'active' : '' ?>">
        <a class="nav-link" href="<?= base_url('admin/verify_companies') ?>">
            <i class="fas fa-fw fa-building"></i>
            <span>Verifikasi Perusahaan</span>
        </a>
    </li>
    <li class="nav-item <?= (current_url() == base_url('admin/logout')) ? 'active' : '' ?>">
        <a class="nav-link" href="javascript:void(0);" onclick="confirmLogout()">
            <i class="fas fa-fw fa-sign-out-alt"></i>
            <span>Logout</span>
        </a>
    </li>
</ul>
<!-- End of Sidebar -->
