select('module_parent','module_name','pathParent','menu_icon') ->join('modules','role_acl.module_parent','=','modules.id') ->where('role_id', Auth::user()->role_id) ->where(function ($query){ $query->where('create_acl','<>',0) ->orWhere('read_acl','<>',0) ->orWhere('update_acl','<>',0) ->orWhere('delete_acl','<>',0); }) ->groupBy('module_parent') ->groupBy('module_name') ->groupBy('pathParent') ->groupBy('menu_icon') ->orderBy('module_parent','asc') ->get(); ?> role_id)->value('akses'); ?> @if($getStatus == 'administrator') @endif @foreach($module_parent as $parent) join('modules','role_acl.module_id','=','modules.kdModule') ->where('module_parent',$parent->module_parent) ->where('role_id', Auth::user()->role_id) ->where(function ($query) { $query->where('create_acl','<>',0) ->orWhere('read_acl','<>',0) ->orWhere('update_acl','<>',0) ->orWhere('delete_acl','<>',0); }) ->orderBy('menu_order','asc') ->get(); ?>
@foreach($module_childs as $child)
@endforeach
@endforeach