public function addPermissions($collection)
    {
        $newCollection = collect([]);

        $customActions = $this->crudeSetup->getCustomActions();

        $collection->each(function ($model) use ($newCollection, $customActions) {
            if ($this->permissionView($model)) {
                $model = $this->addPermissionsForModel($model, $customActions);
                $newCollection->push($model);
            }
        });

        return $newCollection;
    }