public function url()
    {
        /** @var \Yajra\CMS\Repositories\Extension\Repository $repository */
        $repository = app('extensions');
        /** @var \Yajra\CMS\Entities\Extension $extension */
        $extension = $repository->findOrFail($this->entity->extension_id);
        $class     = $extension->param('class');
        if (class_exists($class)) {
            $entity = app($class)->findOrNew($this->entity->param('id'));
            if ($entity instanceof UrlGenerator) {
                if (! $entity->exists) {
                    return '#';
                }

                return $entity->getUrl($this->entity->param('data'));
            }
        }

        return url($this->entity->url);
    }