private function templateFile($name)
    {
        $filename = $this->viewPath . '/' . str_replace('.', DIRECTORY_SEPARATOR, $name) . '.blade.php';
        if (file_exists($filename)) {
            return $filename;
        }

        if (self::$manifest === null) {
            if (file_exists($this->pluginManifestOfViews)) {
                /** @noinspection PhpIncludeInspection */
                self::$manifest = include $this->pluginManifestOfViews;
            }
        }

        return isset(self::$manifest[$name]) ? base_path(self::$manifest[$name]) : null;
    }