I'm wondering how you would go about getting the options from a balloon selector in the backend, and display those options in any way on the frontend.
EDIT: Some progress -
public function getStatusAttribute() {
$value = array_get($this->attributes, 'status');
return array_get($this->getStatusOptions(), $value);
}
public function getStatusOptions() {
return [
'Recieved' => 'Recieved',
'Under Processing' => 'Under Processing',
'Processed' => 'Processed',
'Resolved' => 'Resolved'
];
}
This works on the frontend, but I'm getting an "Array to string conversion" error when trying to create a model on the backend. Works fine when I just edit, but not when creating.
Last updated