$this->record->name, 'grants' => $this->record->grants()->get(['ability', 'resource_type', 'resource_id'])->toArray(), ]); } protected function getHeaderActions(): array { return [ DeleteAction::make()->visible(fn () => ! $this->record->is_system), ]; } }