- routeIs('admin.dashboard')) class="active" @endif>
Dashboard
@php
$menus = \App\Models\Module::where('is_active',1)->with(['child' => function ($q) {
$q->orderBy('sort_number');
}])->orderBy('sort_number')->whereNull('parent_id')->get();
@endphp
@if($menus->count() > 0)
@foreach($menus as $menu)
@if(@count($menu['child']) > 0)
-
{!! $menu->menu_title !!}
@else
@if(checkAdminHasAccess($menu->slug,'List'))
@endif
@endif
@endforeach
@endif