/** * @return string */ public function getLabel() { if (is_null($label = $this->getAttribute('label'))) { $label = $this->model->getTitle(); } return $label; }
/** * @param ModelConfiguration $model * @param Renderable|string $content * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function render(ModelConfiguration $model, $content) { if ($content instanceof Renderable) { $content = $content->render(); } $this->breadcrumbs->add(config('sleeping_owl.title'), null, true); $this->setTitle($model->getTitle(), $model->getDisplayUrl()); $this->template->with('content', $content)->with('model', $model); }