*/ public function summarize(Builder $query, string $attribute): array { return $query->clone()->distinct()->pluck($attribute)->all(); } public function bulleted(bool | Closure $condition = true): static { $this->isBulleted = $condition; return $this; } public function isBulleted(): bool { return (bool) $this->evaluate($this->isBulleted); } public function toEmbeddedHtml(): string { $attributes = $this->getExtraAttributeBag() ->class(['fi-ta-values-summary']); ob_start(); ?>