/** * Return the status wrapped in a label. * * @return string */ public function statusLabel() { if ($this->object->isEnabled()) { return '<span class="label label-success">' . trans('streams::addon.enabled') . '</span>'; } if ($this->object->isInstalled()) { return '<span class="label label-warning">' . trans('streams::addon.disabled') . '</span>'; } }