<?php
    $role = backpack_user()->user_role;
?>

<div class="sidebar-menu px-2 pt-3">
    <?php if($role === 'pj'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#pjMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="pjMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> Penyelia Jabatan
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    <?php elseif($role === 'kkp'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#kkpMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="kkpMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> Unit KKP
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    <?php elseif($role === 'ins'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#insMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="insMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> Unit Insurans
                        </a>
                    </li>
                </ul>
            </div>
        </div>

         <?php elseif($role === 'kjsk'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#kjskMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="kjskMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> Unit Kesihatan
                        </a>
                    </li>
                </ul>
            </div>
        </div>

            <?php elseif($role === 'pkp'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#pkpMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="pkpMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> PENGARAH KHIDMAT PENGURUSAN PKP
                        </a>
                    </li>
                </ul>
            </div>
        </div>

          <?php elseif($role === 'kj'): ?>
        
        <div class="mb-2">
            <button class="btn w-100 d-flex justify-content-between align-items-center text-white"
                data-bs-toggle="collapse"
                data-bs-target="#kjMenu"
                aria-expanded="true"
                style="background-color: #487FFF;">
                <span><i class="la la-home me-2"></i>KKP</span>
                <i class="la la-angle-down"></i>
            </button>
            <div class="collapse show" id="kjMenu">
                <ul class="list-unstyled mt-2 ps-3">
                    <li class="mb-1">
                        <a href="<?php echo e(backpack_url('dashboard')); ?>" class="d-flex align-items-center text-dark bg-light rounded p-2 w-100 text-wrap">
                            <span class="me-2 bullet bg-success"></span> KETUA JABATAN / UNIT
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    <?php endif; ?>
</div>
<?php /**PATH C:\laragon\www\MYKKP\resources\views/vendor/backpack/ui/inc/menu_items.blade.php ENDPATH**/ ?>