src/Models/Database/Property.php
public function getDropdownOptions()
    {
        $options = Collection::make([]);

        $dropdowns = $this->propertyDropdownOptions;
        if (null !== $dropdowns && $dropdowns->count() > 0) {
            foreach ($dropdowns as $dropdown) {
                $dropdown->display_text = $dropdown->getDisplayText();
                $options->push($dropdown);
            }
        }

        return $options;
    }
public function getDropdownOptions()
    {
        $options = Collection::make([]);

        $dropdowns = $this->propertyDropdownOptions;
        if (null !== $dropdowns && $dropdowns->count() > 0) {
            foreach ($dropdowns as $dropdown) {
                $dropdown->display_text = $dropdown->getDisplayText();
                $options->push($dropdown);
            }
        }

        return $options;
    }
public function getDropdownOptions ( ) { $ options = Collection :: make ( [ ] ) ; $ dropdowns = $ this -> propertyDropdownOptions ; if ( null !== $ dropdowns && $ dropdowns -> count ( ) > 0 ) { foreach ( $ dropdowns as $ dropdown ) { $ dropdown -> display_text = $ dropdown -> getDisplayText ( ) ; $ options -> push ( $ dropdown ) ; } } return $ options ; }
Get dropdown options with language transted
@return \Illuminate\Support\Collection $options
Get dropdown options with language transted