'Dashboard',
'icon' => 'dashboard',
'path' => '/dashboard',
],
[
'name' => 'Certificate',
'icon' => 'certificate',
'subItems' => [
['name' => 'List Certificate', 'path' => '/certificate', 'pro' => false],
['name' => 'Add Certificate', 'path' => '/certificate/add', 'pro' => false],
],
],
[
'name' => 'Calendar',
'icon' => 'calendar',
'path' => '/calendar',
],
[
'name' => 'User Profile',
'icon' => 'user-profile',
'path' => '/profile',
],
[
'name' => 'Forms',
'icon' => 'forms',
'subItems' => [
['name' => 'Form Elements', 'path' => '/form-elements', 'pro' => false],
],
],
[
'name' => 'Tables',
'icon' => 'tables',
'subItems' => [
['name' => 'Basic Tables', 'path' => '/basic-tables', 'pro' => false]
],
],
[
'name' => 'Pages',
'icon' => 'pages',
'subItems' => [
['name' => 'Blank Page', 'path' => '/blank', 'pro' => false],
['name' => '404 Error', 'path' => '/error-404', 'pro' => false]
],
],
];
}
public static function getOthersItems()
{
return [
[
'name' => 'Charts',
'icon' => 'charts',
'subItems' => [
['name' => 'Line Chart', 'path' => '/line-chart', 'pro' => false],
['name' => 'Bar Chart', 'path' => '/bar-chart', 'pro' => false]
],
],
[
'name' => 'UI Elements',
'icon' => 'ui-elements',
'subItems' => [
['name' => 'Alerts', 'path' => '/alerts', 'pro' => false],
['name' => 'Avatar', 'path' => '/avatars', 'pro' => false],
['name' => 'Badge', 'path' => '/badge', 'pro' => false],
['name' => 'Buttons', 'path' => '/buttons', 'pro' => false],
['name' => 'Images', 'path' => '/image', 'pro' => false],
['name' => 'Videos', 'path' => '/videos', 'pro' => false],
],
],
[
'name' => 'Authentication',
'icon' => 'authentication',
'subItems' => [
['name' => 'Sign In', 'path' => '/signin', 'pro' => false],
['name' => 'Sign Up', 'path' => '/signup', 'pro' => false],
],
],
];
}
public static function getMenuGroups()
{
return [
[
'title' => 'Menu',
'items' => self::getMainNavItems()
],
[
'title' => 'Others',
'items' => self::getOthersItems()
]
];
}
public static function isActive($path)
{
return request()->is(ltrim($path, '/'));
}
public static function getIconSvg($iconName)
{
$icons = [
'dashboard' => '',
'ai-assistant' => '',
'ecommerce' => '',
'calendar' => '',
'user-profile' => '',
'task' => '',
'forms' => '',
'tables' => '',
'pages' => '',
'charts' => '',
'ui-elements' => '',
'authentication' => '',
'chat' => '',
'support-ticket' => '',
'email' => '',
];
return $icons[$iconName] ?? '';
}
}