<?php

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

/* PimUIBundle:actions:view.html.twig */
class __TwigTemplate_df59cb321c84351b1b5ecc8605326e0475e33a555f06d07d1d3b479525483f38 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'content' => [$this, 'block_content'],
            'pageHeader' => [$this, 'block_pageHeader'],
            'navButtons' => [$this, 'block_navButtons'],
            'titleButtons' => [$this, 'block_titleButtons'],
            'stats' => [$this, 'block_stats'],
            'breadcrumbs' => [$this, 'block_breadcrumbs'],
            'context' => [$this, 'block_context'],
            'content_data' => [$this, 'block_content_data'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $context["UI"] = $this->loadTemplate("PimUIBundle::macros.html.twig", "PimUIBundle:actions:view.html.twig", 1)->unwrap();
        // line 2
        $context["elements"] = $this->loadTemplate("PimUIBundle:Default:page_elements.html.twig", "PimUIBundle:actions:view.html.twig", 2)->unwrap();
        // line 3
        echo "
";
        // line 4
        $this->displayBlock('content', $context, $blocks);
    }

    public function block_content($context, array $blocks = [])
    {
        // line 5
        echo "<div class=\"AknDefault-mainContent layout-content\">

    ";
        // line 7
        $this->displayBlock('pageHeader', $context, $blocks);
        // line 67
        echo "
    ";
        // line 68
        $this->displayBlock('content_data', $context, $blocks);
        // line 71
        echo "</div>

";
    }

    // line 7
    public function block_pageHeader($context, array $blocks = [])
    {
        // line 8
        echo "        ";
        ob_start(function () { return ''; });
        // line 9
        echo "            ";
        $this->displayBlock('navButtons', $context, $blocks);
        // line 10
        echo "            ";
        $this->displayBlock('titleButtons', $context, $blocks);
        // line 11
        echo "        ";
        $context["buttons"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 12
        echo "
        ";
        // line 13
        ob_start(function () { return ''; });
        // line 14
        echo "            ";
        $this->displayBlock('stats', $context, $blocks);
        // line 20
        echo "        ";
        $context["meta"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 21
        echo "
        ";
        // line 22
        ob_start(function () { return ''; });
        // line 23
        echo "            ";
        $this->displayBlock('breadcrumbs', $context, $blocks);
        // line 40
        echo "        ";
        $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 41
        echo "
        ";
        // line 42
        ob_start(function () { return ''; });
        // line 43
        echo "            ";
        if (($this->getAttribute(($context["breadcrumbs"] ?? null), "hasAvatar", [], "any", true, true) && $this->getAttribute(($context["breadcrumbs"] ?? null), "hasAvatar", []))) {
            // line 44
            echo "                <img class=\"AknTitleContainer-image\" src=\"";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["breadcrumbs"] ?? null), "imagePath", [])) ? ($this->env->getExtension('Liip\ImagineBundle\Templating\FilterExtension')->filter($this->getAttribute(($context["breadcrumbs"] ?? null), "imagePath", []), "avatar_med")) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/pimui/images/info-user.png"))), "html", null, true);
            echo "\" alt=\"";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["breadcrumbs"] ?? null), "entityTitle", []), "html", null, true);
            echo "\"/>
            ";
        }
        // line 46
        echo "        ";
        $context["image"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 47
        echo "
        ";
        // line 48
        $context["titleButtons"] = ('' === $tmp = "        ") ? '' : new Markup($tmp, $this->env->getCharset());
        // line 50
        echo "
        ";
        // line 51
        ob_start(function () { return ''; });
        // line 52
        echo "            ";
        $this->displayBlock('context', $context, $blocks);
        // line 54
        echo "        ";
        $context["context"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 55
        echo "
        ";
        // line 56
        echo $this->getAttribute(($context["elements"] ?? null), "page_header", [0 => ["title" =>         // line 58
($context["title"] ?? null), "buttons" =>         // line 59
($context["buttons"] ?? null), "meta" =>         // line 60
($context["meta"] ?? null), "image" =>         // line 61
($context["image"] ?? null), "context" =>         // line 62
($context["context"] ?? null)]], "method");
        // line 64
        echo "

    ";
    }

    // line 9
    public function block_navButtons($context, array $blocks = [])
    {
    }

    // line 10
    public function block_titleButtons($context, array $blocks = [])
    {
    }

    // line 14
    public function block_stats($context, array $blocks = [])
    {
        // line 15
        echo "                ";
        if (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", [], "any", false, true), "createdAt", [], "any", true, true) && $this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", [], "any", false, true), "updatedAt", [], "any", true, true))) {
            // line 16
            echo "                    <span class=\"AknTitleContainer-metaItem\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.created"), "html", null, true);
            echo ": ";
            echo (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "createdAt", [])) ? ($this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\AttributeExtension')->datetimePresenter($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "createdAt", []))) : ("N/A"));
            echo "</span>
                    <span class=\"AknTitleContainer-metaItem\">";
            // line 17
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.updated"), "html", null, true);
            echo ": ";
            echo (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "updatedAt", [])) ? ($this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\AttributeExtension')->datetimePresenter($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "updatedAt", []))) : ("N/A"));
            echo "</span>
                ";
        }
        // line 19
        echo "            ";
    }

    // line 23
    public function block_breadcrumbs($context, array $blocks = [])
    {
        // line 24
        echo "                ";
        if ($this->getAttribute(($context["breadcrumbs"] ?? null), "indexLabel", [], "any", true, true)) {
            // line 25
            echo "                    ";
            if ($this->getAttribute(($context["breadcrumbs"] ?? null), "indexPath", [], "any", true, true)) {
                // line 26
                echo "                        <a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["breadcrumbs"] ?? null), "indexPath", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["breadcrumbs"] ?? null), "indexLabel", [])), "html", null, true);
                echo "</a>
                    ";
            } else {
                // line 28
                echo "                        ";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["breadcrumbs"] ?? null), "indexLabel", [])), "html", null, true);
                echo "
                    ";
            }
            // line 30
            echo "                    <span class=\"separator\">/</span>
                ";
        }
        // line 32
        echo "                ";
        if ($this->getAttribute(($context["breadcrumbs"] ?? null), "additional", [], "any", true, true)) {
            // line 33
            echo "                    ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["breadcrumbs"] ?? null), "additional", []));
            foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
                // line 34
                echo "                        <a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["breadcrumb"], "indexPath", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["breadcrumb"], "indexLabel", [])), "html", null, true);
                echo "</a>
                        <span class=\"separator\">/</span>
                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 37
            echo "                ";
        }
        // line 38
        echo "                ";
        echo twig_escape_filter($this->env, $this->getAttribute(($context["breadcrumbs"] ?? null), "entityTitle", []), "html", null, true);
        echo "
            ";
    }

    // line 52
    public function block_context($context, array $blocks = [])
    {
        // line 53
        echo "            ";
    }

    // line 68
    public function block_content_data($context, array $blocks = [])
    {
        // line 69
        echo "        ";
        echo $this->getAttribute(($context["UI"] ?? null), "scrollData", [0 => ($context["id"] ?? null), 1 => ($context["data"] ?? null)], "method");
        echo "
    ";
    }

    public function getTemplateName()
    {
        return "PimUIBundle:actions:view.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  257 => 69,  254 => 68,  250 => 53,  247 => 52,  240 => 38,  237 => 37,  225 => 34,  220 => 33,  217 => 32,  213 => 30,  207 => 28,  199 => 26,  196 => 25,  193 => 24,  190 => 23,  186 => 19,  179 => 17,  172 => 16,  169 => 15,  166 => 14,  161 => 10,  156 => 9,  150 => 64,  148 => 62,  147 => 61,  146 => 60,  145 => 59,  144 => 58,  143 => 56,  140 => 55,  137 => 54,  134 => 52,  132 => 51,  129 => 50,  127 => 48,  124 => 47,  121 => 46,  113 => 44,  110 => 43,  108 => 42,  105 => 41,  102 => 40,  99 => 23,  97 => 22,  94 => 21,  91 => 20,  88 => 14,  86 => 13,  83 => 12,  80 => 11,  77 => 10,  74 => 9,  71 => 8,  68 => 7,  62 => 71,  60 => 68,  57 => 67,  55 => 7,  51 => 5,  45 => 4,  42 => 3,  40 => 2,  38 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "PimUIBundle:actions:view.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/actions/view.html.twig");
    }
}
