Feature #7 : Update Sidebar and add Default Modules
This commit is contained in:
parent
098e51e764
commit
e06980b568
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,6 +20,5 @@ yarn-error.log
|
||||
/.vscode
|
||||
|
||||
/public/assets/media
|
||||
/resources/metronic
|
||||
*.lock
|
||||
package-lock.json
|
||||
|
6
modules_statuses.json
Normal file
6
modules_statuses.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"Location": true,
|
||||
"Usermanagement": true,
|
||||
"Logs": true,
|
||||
"Authentication": true
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user