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
|
/.vscode
|
||||||
|
|
||||||
/public/assets/media
|
/public/assets/media
|
||||||
/resources/metronic
|
|
||||||
*.lock
|
*.lock
|
||||||
package-lock.json
|
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;
|
$menus = $module->menu;
|
||||||
@endphp
|
@endphp
|
||||||
@foreach($menus as $key => $value)
|
@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)
|
@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))
|
@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 class="menu-item {{ request()->routeIs($menu->path) || request()->routeIs($menu->path.'.*') ? 'show' : '' }}" data-menu-item-toggle="accordion" data-menu-item-trigger="click">
|
||||||
<div
|
<div
|
||||||
|
Loading…
x
Reference in New Issue
Block a user