@foreach ($roles as $item) @endforeach @foreach ($permissions as $module) @foreach ($module->permissions as $item) @php $permissionRoles = $item->roles->pluck('name')->toArray(); @endphp @foreach ($roles as $role) @endforeach @endforeach @endforeach
@lang('app.user')
@lang('app.permission')
@lang('app.role')
{{ $item->name }}
{{ $module->name }}
{{ $item->name }} @if (!in_array($role->name, $permissionRoles)) + @else @endif