{!! ucwords(auth('admin')->user()->name) !!}

{!! ucwords(auth('admin')->user()->type) !!}

  • 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 !!}
      @foreach($menu['child'] as $child) @if(checkAdminHasAccess($child->slug,'List'))
    • routeIs('admin.'.$child->slug.'.*')) class="active" @endif> {!! $child->menu_title !!}
    • @endif @endforeach
  • @else @if(checkAdminHasAccess($menu->slug,'List'))
  • {!! $menu->menu_title !!}
  • @endif @endif @endforeach @endif