@foreach ($permissions_groups as $key => $permissions_group)
{{ $permissions_group[0]->group }}
@foreach ($permissions_group as $index => $permission)
name, $role->permissions->pluck('name')->toArray())) checked @endif
value="{{ $permission->name }}"
class="custom-control-input @if ($permission->name == 'super') checkAll @endif"
id="custom-check-{{$key}}-{{$index}}" />
@endforeach
@endforeach