Service display pricing, as a result of moving to psql. Service information updates
This commit is contained in:
@@ -901,7 +901,9 @@ class Service extends Model implements IDs
|
||||
*/
|
||||
public function getStatusAttribute(): string
|
||||
{
|
||||
return $this->active ? $this->order_status : 'INACTIVE';
|
||||
return $this->active
|
||||
? strtolower($this->order_status)
|
||||
: ((strtolower($this->order_status) === 'cancelled') ? 'cancelled' : 'inactive');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user