@extends('crudbooster::admin_template') @section('content') @push('head') @endpush @push('bottom') @endpush @push('bottom') @endpush
Menu Order (Active)
    @foreach($menu_active as $menu) @php $privileges = DB::table('cms_menus_privileges') ->join('cms_privileges','cms_privileges.id','=','cms_menus_privileges.id_cms_privileges') ->where('id_cms_menus',$menu->id)->pluck('cms_privileges.name')->toArray(); @endphp
  • {{$menu->name}}   
      {{implode(', ',$privileges)}}
      @if($menu->children) @foreach($menu->children as $child) @php $privileges = DB::table('cms_menus_privileges') ->join('cms_privileges','cms_privileges.id','=','cms_menus_privileges.id_cms_privileges') ->where('id_cms_menus',$child->id)->pluck('cms_privileges.name')->toArray(); @endphp
    • {{$child->name}}   
        {{implode(', ',$privileges)}}
    • @endforeach @endif
  • @endforeach
@if(count($menu_active)==0)
Active menu is empty, please add new menu
@endif
Menu Order (Inactive)
    @foreach($menu_inactive as $menu)
  • {{$menu->name}}   
      @if($menu->children) @foreach($menu->children as $child)
    • {{$child->name}}   
    • @endforeach @endif
  • @endforeach
@if(count($menu_inactive)==0)
Inactive menu is empty
@endif
Add Menu
@include("crudbooster::default.form_body")

@endsection