isHidden = $condition; return $this; } public function visible(bool | Closure $condition = true): static { $this->isVisible = $condition; return $this; } public function hiddenFrom(string | Closure | null $breakpoint): static { $this->hiddenFrom = $breakpoint; return $this; } public function visibleFrom(string | Closure | null $breakpoint): static { $this->visibleFrom = $breakpoint; return $this; } public function getHiddenFrom(): ?string { return $this->evaluate($this->hiddenFrom); } public function getVisibleFrom(): ?string { return $this->evaluate($this->visibleFrom); } public function isHidden(): bool { if ($this->evaluate($this->isHidden)) { return true; } return ! $this->evaluate($this->isVisible); } }