where('name', static::pluginName()) ->where('enabled', true) ->exists(); } public function getViewData(): array { return [ 'pluginName' => static::pluginName(), 'pluginTitle' => static::translatedTitle(), 'pluginDescription' => static::translatedDescription(), 'enabled' => Plugin::query() ->where('name', static::pluginName()) ->where('enabled', true) ->exists(), ]; } }