<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;

/* @PimUI/Form/Tab/history.html.twig */
class __TwigTemplate_06c0efa09249e9d42a3ab3029db60553 extends 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
        if ( !array_key_exists("dataGrid", $context)) {
            // line 2
            yield "    ";
            $macros["dataGrid"] = $this->macros["dataGrid"] = $this->loadTemplate("@PimDataGrid/macros.html.twig", "@PimUI/Form/Tab/history.html.twig", 2)->unwrap();
        }
        // line 4
        yield "
<div class=\"tab-pane tab-history ";
        // line 5
        yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["viewElement"] ?? null), "loop", [], "any", false, false, false, 5), "first", [], "any", false, false, false, 5)) ? ("active") : (""));
        yield "\" id=\"";
        yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::lowerFilter($this->env, Twig\Extension\CoreExtension::replaceFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["viewElement"] ?? null), "alias", [], "any", false, false, false, 5), [" " => "-", "." => "-"])), "html", null, true);
        yield "\">
    ";
        // line 6
        yield CoreExtension::callMacro($macros["dataGrid"], "macro_renderHistoryGrid", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 6), "value", [], "any", false, false, false, 6)], 6, $context, $this->getSourceContext());
        yield "
</div>
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUI/Form/Tab/history.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  53 => 6,  47 => 5,  44 => 4,  40 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@PimUI/Form/Tab/history.html.twig", "/var/www/html/pim/vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/Form/Tab/history.html.twig");
    }
}
