Feature #7 : Update Sidebar and add Default Modules

This commit is contained in:
Daeng Deni Mardaeni 2024-08-07 09:56:48 +07:00
parent 098e51e764
commit e06980b568
3 changed files with 34 additions and 30 deletions

1
.gitignore vendored
View File

@ -20,6 +20,5 @@ yarn-error.log
/.vscode
/public/assets/media
/resources/metronic
*.lock
package-lock.json

6
modules_statuses.json Normal file
View File

@ -0,0 +1,6 @@
{
"Location": true,
"Usermanagement": true,
"Logs": true,
"Authentication": true
}

View File

@ -51,36 +51,35 @@
$menus = $module->menu;
@endphp
@foreach($menus as $key => $value)
@if($key=='main')
@if($headingMain == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Apps
</span>
</div>
@php $headingMain = 1; @endphp
@endif
@elseif($key=='master')
@if($headingMaster == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Master Data
</span>
</div>
@php $headingMaster = 1; @endphp
@endif
@elseif($key=='system')
@if($headingSystem == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Systems
</span>
</div>
@php $headingSystem = 1; @endphp
@endif
@endif
@foreach($value as $menu)
@if($key=='main')
@if($headingMain == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Apps
</span>
</div>
@php $headingMain = 1; @endphp
@endif
@elseif($key=='master')
@if($headingMaster == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Master Data
</span>
</div>
@php $headingMaster = 1; @endphp
@endif
@elseif($key=='system')
@if($headingSystem == 0)
<div class="menu-item pt-2.25 pb-px">
<span class="menu-heading uppercase text-2sm font-semibold text-gray-500 pl-[10px] pr-[10px]">
Systems
</span>
</div>
@php $headingSystem = 1; @endphp
@endif
@endif
@if(is_array($menu->sub))
<div class="menu-item {{ request()->routeIs($menu->path) || request()->routeIs($menu->path.'.*') ? 'show' : '' }}" data-menu-item-toggle="accordion" data-menu-item-trigger="click">
<div