public function getTextAttribute() { return $this->min_price != null ? $this->max_price != null ? price_to_string($this->min_price) . ' - ' . price_to_string($this->max_price) : 'Less than ' . price_to_string($this->min_price) : ($this->max_price != null ? 'Over ' . price_to_string($this->max_price) : 'undisclosed'); }
public function getAssetWorthAttribute() { return $this->assets_worth ? price_to_string($this->assets_worth) : 'Undisclosed'; }