<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* server/status/advisor/index.twig */
class __TwigTemplate_f46bddb2659f1bf50d46890152b10fa6583cdc79ac342d0b2a8b33d4f5dfc563 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "server/status/base.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $context["active"] = "advisor";
        // line 1
        $this->parent = $this->loadTemplate("server/status/base.twig", "server/status/advisor/index.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_content($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        echo "
  ";
        // line 6
        if ( !twig_test_empty(($context["data"] ?? null))) {
            // line 7
            echo "    <div class=\"row\">
    <a href=\"#openAdvisorInstructions\">";
            // line 8
            echo PhpMyAdmin\Util::getIcon("b_help", _gettext("Instructions"));
            echo "</a>
    </div>

    <div id=\"statustabs_advisor\" class=\"row\"></div>

    <div id=\"advisorInstructionsDialog\" class=\"hide\">
      <p>
        ";
            // line 15
            echo _gettext("The Advisor system can provide recommendations on server variables by analyzing the server status variables.");
            // line 18
            echo "      </p>
      <p>
        ";
            // line 20
            echo _gettext("Do note however that this system provides recommendations based on simple calculations and by rule of thumb which may not necessarily apply to your system.");
            // line 23
            echo "      </p>
      <p>
        ";
            // line 25
            echo _gettext("Prior to changing any of the configuration, be sure to know what you are changing (by reading the documentation) and how to undo the change. Wrong tuning can have a very negative effect on performance.");
            // line 28
            echo "      </p>
      <p>
        ";
            // line 30
            echo _gettext("The best way to tune your system would be to change only one setting at a time, observe or benchmark your database, and undo the change if there was no clearly measurable improvement.");
            // line 33
            echo "      </p>
    </div>

    <div id=\"advisorData\" class=\"hide\">";
            // line 36
            echo twig_escape_filter($this->env, ($context["data"] ?? null), "html", null, true);
            echo "</div>
  ";
        } else {
            // line 38
            echo "    ";
            echo call_user_func_array($this->env->getFilter('error')->getCallable(), [_gettext("Not enough privilege to view the advisor.")]);
            echo "
  ";
        }
        // line 40
        echo "
";
    }

    public function getTemplateName()
    {
        return "server/status/advisor/index.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  107 => 40,  101 => 38,  96 => 36,  91 => 33,  89 => 30,  85 => 28,  83 => 25,  79 => 23,  77 => 20,  73 => 18,  71 => 15,  61 => 8,  58 => 7,  56 => 6,  53 => 5,  49 => 4,  44 => 1,  42 => 2,  35 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "server/status/advisor/index.twig", "/home/files/phpmyadmin/release/phpMyAdmin-5.1+snapshot/templates/server/status/advisor/index.twig");
    }
}
