LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/domains/task.urbanpillar.in/public_html/dashboard/
File Upload :
Command :
Current File : /home/u901718425/domains/task.urbanpillar.in/public_html/dashboard/aside.php

<?php

function aside($active = 'Dashboard') {
    // Menu items
    $menu = [
        'Dashboard' => ['/dashboard/', 'home'],
        'Task List' => ['/dashboard/task.php', 'speedometer2'],
        'User' => ['/dashboard/user.php', 'table'],
        'Attendance' => ['/dashboard/attendance.php', 'grid'],
        'Leave' => ['/dashboard/leave.php', 'calendar_month']
    ];

    $html = '<div class="col-12 row m-0 gap-3 p-4">';

    foreach ($menu as $label => [$link, $icon]) {
        $isActive = $active === $label ? 'active' : '';
        $html .= '
            <a href="' . $link . '" class="btn btn-outline-primary rounded-pill fs-8 w-auto ' . $isActive . '" aria-current="page">
                ' . htmlspecialchars($label) . '
            </a>
        ';
    }

    $html .= '</div>';
    $html .= '<div class="px-4">
            <nav aria-label="breadcrumb">
              <ol class="breadcrumb">
                <li class="breadcrumb-item fs-9"><a href="#">Portal</a></li>
                <li class="breadcrumb-item fs-9 active" aria-current="page">'.$active.'</li>
              </ol>
            </nav>
            </div>';
    return $html;
}
?>

LittleDemon - FACEBOOK
[ KELUAR ]