<?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/variables/index.twig */
class __TwigTemplate_642ad30f3810cd7e34d8d66a8a6ceacd07e5806a8512d7c354db98302dcf9912 extends \Twig\Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<div class=\"container-fluid\">
<div class=\"row\">
  <h2>
    ";
        // line 4
        echo PhpMyAdmin\Util::getImage("s_vars");
        echo "
    ";
        // line 5
        echo _gettext("Server variables and settings");
        // line 6
        echo "    ";
        echo PhpMyAdmin\Util::showMySQLDocu("server_system_variables");
        echo "
  </h2>
</div>

";
        // line 10
        if ( !twig_test_empty(($context["variables"] ?? null))) {
            // line 11
            echo "  <a href=\"";
            echo PhpMyAdmin\Url::getFromRoute("/server/variables");
            echo "\" class=\"ajax saveLink hide\">
    ";
            // line 12
            echo PhpMyAdmin\Util::getIcon("b_save", _gettext("Save"));
            echo "
  </a>
  <a href=\"#\" class=\"cancelLink hide\">
    ";
            // line 15
            echo PhpMyAdmin\Util::getIcon("b_close", _gettext("Cancel"));
            echo "
  </a>
  ";
            // line 17
            echo PhpMyAdmin\Util::getImage("b_help", _gettext("Documentation"), ["class" => "hide", "id" => "docImage"]);
            // line 20
            echo "

  ";
            // line 22
            $this->loadTemplate("filter.twig", "server/variables/index.twig", 22)->display(twig_to_array(["filter_value" =>             // line 23
($context["filter_value"] ?? null)]));
            // line 25
            echo "
  <div class=\"responsivetable row\">
    <div class=\"col-12\">
      <table id=\"serverVariables\" class=\"width100 data filteredData noclick\">
        <thead>
          <tr class=\"var-header var-row\">
            <td class=\"var-action\">";
            // line 31
            echo _gettext("Action");
            echo "</td>
            <td class=\"var-name\">";
            // line 32
            echo _gettext("Variable");
            echo "</td>
            <td class=\"var-value\">";
            // line 33
            echo _gettext("Value");
            echo "</td>
          </tr>
        </thead>

        <tbody>
          ";
            // line 38
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["variables"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["variable"]) {
                // line 39
                echo "            <tr class=\"var-row";
                echo ((twig_get_attribute($this->env, $this->source, $context["variable"], "has_session_value", [], "any", false, false, false, 39)) ? (" diffSession") : (""));
                echo "\" data-filter-row=\"";
                echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variable"], "name", [], "any", false, false, false, 39)), "html", null, true);
                echo "\">
              <td class=\"var-action\">
                ";
                // line 41
                if (twig_get_attribute($this->env, $this->source, $context["variable"], "is_editable", [], "any", false, false, false, 41)) {
                    // line 42
                    echo "                  <a href=\"#\" data-variable=\"";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variable"], "name", [], "any", false, false, false, 42), "html", null, true);
                    echo "\" class=\"editLink\">";
                    echo PhpMyAdmin\Util::getIcon("b_edit", _gettext("Edit"));
                    echo "</a>
                ";
                } else {
                    // line 44
                    echo "                  <span title=\"";
                    echo _gettext("This is a read-only variable and can not be edited");
                    echo "\" class=\"read_only_var\">
                    ";
                    // line 45
                    echo PhpMyAdmin\Util::getIcon("bd_edit", _gettext("Edit"));
                    echo "
                  </span>
                ";
                }
                // line 48
                echo "              </td>
              <td class=\"var-name\">
                ";
                // line 50
                if ((twig_get_attribute($this->env, $this->source, $context["variable"], "doc_link", [], "any", false, false, false, 50) != null)) {
                    // line 51
                    echo "                  <span title=\"";
                    echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["variable"], "name", [], "any", false, false, false, 51), ["_" => " "]), "html", null, true);
                    echo "\">
                    ";
                    // line 52
                    echo twig_get_attribute($this->env, $this->source, $context["variable"], "doc_link", [], "any", false, false, false, 52);
                    echo "
                  </span>
                ";
                } else {
                    // line 55
                    echo "                  ";
                    echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["variable"], "name", [], "any", false, false, false, 55), ["_" => " "]), "html", null, true);
                    echo "
                ";
                }
                // line 57
                echo "              </td>
              <td class=\"var-value value";
                // line 58
                echo ((($context["is_superuser"] ?? null)) ? (" editable") : (""));
                echo "\">
                ";
                // line 59
                if (twig_get_attribute($this->env, $this->source, $context["variable"], "is_escaped", [], "any", false, false, false, 59)) {
                    // line 60
                    echo "                  ";
                    echo twig_get_attribute($this->env, $this->source, $context["variable"], "value", [], "any", false, false, false, 60);
                    echo "
                ";
                } else {
                    // line 62
                    echo "                  ";
                    echo twig_replace_filter(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variable"], "value", [], "any", false, false, false, 62)), ["," => ",&#8203;"]);
                    echo "
                ";
                }
                // line 64
                echo "              </td>
            </tr>

            ";
                // line 67
                if (twig_get_attribute($this->env, $this->source, $context["variable"], "has_session_value", [], "any", false, false, false, 67)) {
                    // line 68
                    echo "              <tr class=\"var-row diffSession\" data-filter-row=\"";
                    echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variable"], "name", [], "any", false, false, false, 68)), "html", null, true);
                    echo "\">
                <td class=\"var-action\"></td>
                <td class=\"var-name session\">(";
                    // line 70
                    echo _gettext("Session value");
                    echo ")</td>
                <td class=\"var-value value\">";
                    // line 71
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variable"], "session_value", [], "any", false, false, false, 71), "html", null, true);
                    echo "</td>
              </tr>
            ";
                }
                // line 74
                echo "          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variable'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 75
            echo "        </tbody>
      </table>
    </div>
  </div>
</div>

";
        } else {
            // line 82
            echo "  ";
            echo call_user_func_array($this->env->getFilter('error')->getCallable(), [sprintf(_gettext("Not enough privilege to view server variables and settings. %s"), PhpMyAdmin\Util::linkToVarDocumentation("show_compatibility_56",             // line 83
($context["is_mariadb"] ?? null)))]);
            // line 84
            echo "
";
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  226 => 84,  224 => 83,  222 => 82,  213 => 75,  207 => 74,  201 => 71,  197 => 70,  191 => 68,  189 => 67,  184 => 64,  178 => 62,  172 => 60,  170 => 59,  166 => 58,  163 => 57,  157 => 55,  151 => 52,  146 => 51,  144 => 50,  140 => 48,  134 => 45,  129 => 44,  121 => 42,  119 => 41,  111 => 39,  107 => 38,  99 => 33,  95 => 32,  91 => 31,  83 => 25,  81 => 23,  80 => 22,  76 => 20,  74 => 17,  69 => 15,  63 => 12,  58 => 11,  56 => 10,  48 => 6,  46 => 5,  42 => 4,  37 => 1,);
    }

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