Dashboards
@php $headingSystem = 0; $headingMain = 0; $headingMaster = 0; @endphp @foreach($module as $row => $key) @if($key) @if(file_exists(dirname(__FILE__, 4) . '/Modules/'.$row.'/module.json')) @php $module = json_decode(file_get_contents(dirname(__FILE__, 4) . '/Modules/'.$row.'/module.json')); $menus = $module->menu; @endphp @foreach($menus as $key => $value) @if($key=='main') @if($headingMain == 0)
Apps
@php $headingMain = 1; @endphp @endif @elseif($key=='master') @if($headingMaster == 0)
Master Data
@php $headingMaster = 1; @endphp @endif @elseif($key=='system') @if($headingSystem == 0)
Systems
@php $headingSystem = 1; @endphp @endif @endif @foreach($value as $menu) @if(is_array($menu->sub))
{{ $menu->title }}
@if(is_array($menu->sub))
@foreach($menu->sub as $sub)
{{ $sub->title }}
@endforeach
@endif
@else
{{ $menu->title }}
@endif @endforeach @endforeach @endif @endif @endforeach