<?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/actions/view.html.twig */
class __TwigTemplate_50b75b7ca204677a4f4c4946af2b6c37 extends Template
{
    private $source;
    private $macros = [];

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

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

        $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 = [])
    {
        $macros = $this->macros;
        // line 1
        $macros["UI"] = $this->macros["UI"] = $this->loadTemplate("@PimUI/macros.html.twig", "@PimUI/actions/view.html.twig", 1)->unwrap();
        // line 2
        $macros["elements"] = $this->macros["elements"] = $this->loadTemplate("@PimUI/Default/page_elements.html.twig", "@PimUI/actions/view.html.twig", 2)->unwrap();
        // line 3
        yield "
";
        // line 4
        yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
        return; yield '';
    }

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

    ";
        // line 7
        yield from $this->unwrap()->yieldBlock('pageHeader', $context, $blocks);
        // line 67
        yield "
    ";
        // line 68
        yield from $this->unwrap()->yieldBlock('content_data', $context, $blocks);
        // line 71
        yield "</div>

";
        return; yield '';
    }

    // line 7
    public function block_pageHeader($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        yield "        ";
        $context["buttons"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 9
            yield "            ";
            yield from $this->unwrap()->yieldBlock('navButtons', $context, $blocks);
            // line 10
            yield "            ";
            yield from $this->unwrap()->yieldBlock('titleButtons', $context, $blocks);
            // line 11
            yield "        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 12
        yield "
        ";
        // line 13
        $context["meta"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 14
            yield "            ";
            yield from $this->unwrap()->yieldBlock('stats', $context, $blocks);
            // line 20
            yield "        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 21
        yield "
        ";
        // line 22
        $context["title"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 23
            yield "            ";
            yield from $this->unwrap()->yieldBlock('breadcrumbs', $context, $blocks);
            // line 40
            yield "        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 41
        yield "
        ";
        // line 42
        $context["image"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 43
            yield "            ";
            if ((CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "hasAvatar", [], "any", true, true, false, 43) && CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "hasAvatar", [], "any", false, false, false, 43))) {
                // line 44
                yield "                <img class=\"AknTitleContainer-image\" src=\"";
                yield Twig\Extension\EscaperExtension::escape($this->env, ((CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "imagePath", [], "any", false, false, false, 44)) ? ($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "imagePath", [], "any", false, false, false, 44), "avatar_med")) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/pimui/images/info-user.png"))), "html", null, true);
                yield "\" alt=\"";
                yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "entityTitle", [], "any", false, false, false, 44), "html", null, true);
                yield "\"/>
            ";
            }
            // line 46
            yield "        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 47
        yield "
        ";
        // line 48
        $context["titleButtons"] = ('' === $tmp = "        ") ? '' : new Markup($tmp, $this->env->getCharset());
        // line 50
        yield "
        ";
        // line 51
        $context["context"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 52
            yield "            ";
            yield from $this->unwrap()->yieldBlock('context', $context, $blocks);
            // line 54
            yield "        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 55
        yield "
        ";
        // line 56
        yield CoreExtension::callMacro($macros["elements"], "macro_page_header", [["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)]], 56, $context, $this->getSourceContext());
        // line 64
        yield "

    ";
        return; yield '';
    }

    // line 9
    public function block_navButtons($context, array $blocks = [])
    {
        $macros = $this->macros;
        return; yield '';
    }

    // line 10
    public function block_titleButtons($context, array $blocks = [])
    {
        $macros = $this->macros;
        return; yield '';
    }

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

    // line 23
    public function block_breadcrumbs($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 24
        yield "                ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexLabel", [], "any", true, true, false, 24)) {
            // line 25
            yield "                    ";
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexPath", [], "any", true, true, false, 25)) {
                // line 26
                yield "                        <a href=\"";
                yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexPath", [], "any", false, false, false, 26), "html", null, true);
                yield "\">";
                yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexLabel", [], "any", false, false, false, 26)), "html", null, true);
                yield "</a>
                    ";
            } else {
                // line 28
                yield "                        ";
                yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexLabel", [], "any", false, false, false, 28)), "html", null, true);
                yield "
                    ";
            }
            // line 30
            yield "                    <span class=\"separator\">/</span>
                ";
        }
        // line 32
        yield "                ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "additional", [], "any", true, true, false, 32)) {
            // line 33
            yield "                    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "additional", [], "any", false, false, false, 33));
            foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
                // line 34
                yield "                        <a href=\"";
                yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "indexPath", [], "any", false, false, false, 34), "html", null, true);
                yield "\">";
                yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "indexLabel", [], "any", false, false, false, 34)), "html", null, true);
                yield "</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
            yield "                ";
        }
        // line 38
        yield "                ";
        yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "entityTitle", [], "any", false, false, false, 38), "html", null, true);
        yield "
            ";
        return; yield '';
    }

    // line 52
    public function block_context($context, array $blocks = [])
    {
        $macros = $this->macros;
        yield "            ";
        return; yield '';
    }

    // line 68
    public function block_content_data($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 69
        yield "        ";
        yield CoreExtension::callMacro($macros["UI"], "macro_scrollData", [($context["id"] ?? null), ($context["data"] ?? null)], 69, $context, $this->getSourceContext());
        yield "
    ";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUI/actions/view.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  280 => 69,  276 => 68,  268 => 52,  260 => 38,  257 => 37,  245 => 34,  240 => 33,  237 => 32,  233 => 30,  227 => 28,  219 => 26,  216 => 25,  213 => 24,  209 => 23,  204 => 19,  197 => 17,  190 => 16,  187 => 15,  183 => 14,  176 => 10,  169 => 9,  162 => 64,  160 => 62,  159 => 61,  158 => 60,  157 => 59,  156 => 58,  155 => 56,  152 => 55,  149 => 54,  146 => 52,  144 => 51,  141 => 50,  139 => 48,  136 => 47,  133 => 46,  125 => 44,  122 => 43,  120 => 42,  117 => 41,  114 => 40,  111 => 23,  109 => 22,  106 => 21,  103 => 20,  100 => 14,  98 => 13,  95 => 12,  92 => 11,  89 => 10,  86 => 9,  83 => 8,  79 => 7,  72 => 71,  70 => 68,  67 => 67,  65 => 7,  61 => 5,  53 => 4,  50 => 3,  48 => 2,  46 => 1,);
    }

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