public function isEditable() { return !in_array($this->status->name, array('Cancelled', 'Completed')); }