var/cache/dev/twig/a9/a972197a05862d40e0578fd9c3b0115a.php line 111

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @EasyAdmin/menu.html.twig */
  16. class __TwigTemplate_1068a9045a5b23f9db8026e3ed94ed7e extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.             'main_menu_before' => [$this'block_main_menu_before'],
  30.             'main_menu' => [$this'block_main_menu'],
  31.             'menu_item' => [$this'block_menu_item'],
  32.             'menu_subitem' => [$this'block_menu_subitem'],
  33.             'main_menu_after' => [$this'block_main_menu_after'],
  34.         ];
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EasyAdmin/menu.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EasyAdmin/menu.html.twig"));
  43.         // line 2
  44.         yield "<nav id=\"main-menu\">
  45.     ";
  46.         // line 3
  47.         yield from $this->unwrap()->yieldBlock('main_menu_before'$context$blocks);
  48.         // line 4
  49.         yield "
  50.     <ul class=\"menu\">
  51.         ";
  52.         // line 6
  53.         yield from $this->unwrap()->yieldBlock('main_menu'$context$blocks);
  54.         // line 33
  55.         yield "    </ul>
  56.     ";
  57.         // line 35
  58.         yield from $this->unwrap()->yieldBlock('main_menu_after'$context$blocks);
  59.         // line 36
  60.         yield "</nav>
  61. ";
  62.         // line 43
  63.         yield "
  64. ";
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         yield from [];
  70.     }
  71.     // line 3
  72.     /**
  73.      * @return iterable<null|scalar|\Stringable>
  74.      */
  75.     public function block_main_menu_before(array $context, array $blocks = []): iterable
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu_before"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu_before"));
  82.         
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84.         
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  86.         yield from [];
  87.     }
  88.     // line 6
  89.     /**
  90.      * @return iterable<null|scalar|\Stringable>
  91.      */
  92.     public function block_main_menu(array $context, array $blocks = []): iterable
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu"));
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu"));
  99.         // line 7
  100.         yield "            ";
  101.         $context['_parent'] = $context;
  102.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'7$this->source); })()), "mainMenu", [], "any"falsefalsefalse7), "items", [], "any"falsefalsefalse7));
  103.         $context['loop'] = [
  104.           'parent' => $context['_parent'],
  105.           'index0' => 0,
  106.           'index'  => 1,
  107.           'first'  => true,
  108.         ];
  109.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  110.             $length count($context['_seq']);
  111.             $context['loop']['revindex0'] = $length 1;
  112.             $context['loop']['revindex'] = $length;
  113.             $context['loop']['length'] = $length;
  114.             $context['loop']['last'] = === $length;
  115.         }
  116.         foreach ($context['_seq'] as $context["_key"] => $context["menuItem"]) {
  117.             // line 8
  118.             yield "                ";
  119.             yield from $this->unwrap()->yieldBlock('menu_item'$context$blocks);
  120.             // line 31
  121.             yield "            ";
  122.             ++$context['loop']['index0'];
  123.             ++$context['loop']['index'];
  124.             $context['loop']['first'] = false;
  125.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  126.                 --$context['loop']['revindex0'];
  127.                 --$context['loop']['revindex'];
  128.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  129.             }
  130.         }
  131.         $_parent $context['_parent'];
  132.         unset($context['_seq'], $context['_key'], $context['menuItem'], $context['_parent'], $context['loop']);
  133.         $context array_intersect_key($context$_parent) + $_parent;
  134.         // line 32
  135.         yield "        ";
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.         
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140.         yield from [];
  141.     }
  142.     // line 8
  143.     /**
  144.      * @return iterable<null|scalar|\Stringable>
  145.      */
  146.     public function block_menu_item(array $context, array $blocks = []): iterable
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_item"));
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_item"));
  153.         // line 9
  154.         yield "                    ";
  155.         $context["is_submenu_item_with_no_items"] = ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'9$this->source); })()), "type", [], "any"falsefalsefalse9) == Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Dto\\MenuItemDto::TYPE_SUBMENU")) &&  !CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'9$this->source); })()), "hasSubItems", [], "any"falsefalsefalse9));
  156.         // line 10
  157.         yield "                    ";
  158.         if ((isset($context["is_submenu_item_with_no_items"]) || array_key_exists("is_submenu_item_with_no_items"$context) ? $context["is_submenu_item_with_no_items"] : (function () { throw new RuntimeError('Variable "is_submenu_item_with_no_items" does not exist.'10$this->source); })())) {
  159.             // line 11
  160.             yield "                        ";
  161.             // line 13
  162.             yield "                    ";
  163.         } else {
  164.             // line 14
  165.             yield "                        <li class=\"";
  166.             yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'14$this->source); })()), "isMenuSection", [], "any"falsefalsefalse14)) ? ("menu-header") : ("menu-item"));
  167.             yield " ";
  168.             yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'14$this->source); })()), "hasSubItems", [], "any"falsefalsefalse14)) ? ("has-submenu") : (""));
  169.             yield " ";
  170.             yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'14$this->source); })()), "isSelected", [], "any"falsefalsefalse14)) ? ("active") : (""));
  171.             yield " ";
  172.             yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'14$this->source); })()), "isExpanded", [], "any"falsefalsefalse14)) ? ("expanded") : (""));
  173.             yield "\">
  174.                             ";
  175.             // line 15
  176.             yield $this->getTemplateForMacro("macro_render_menu_item"$context15$this->getSourceContext())->macro_render_menu_item(...[(isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'15$this->source); })())]);
  177.             yield "
  178.                             ";
  179.             // line 17
  180.             if (CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'17$this->source); })()), "hasSubItems", [], "any"falsefalsefalse17)) {
  181.                 // line 18
  182.                 yield "                                <ul class=\"submenu\">
  183.                                     ";
  184.                 // line 19
  185.                 $context['_parent'] = $context;
  186.                 $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["menuItem"]) || array_key_exists("menuItem"$context) ? $context["menuItem"] : (function () { throw new RuntimeError('Variable "menuItem" does not exist.'19$this->source); })()), "subItems", [], "any"falsefalsefalse19));
  187.                 $context['loop'] = [
  188.                   'parent' => $context['_parent'],
  189.                   'index0' => 0,
  190.                   'index'  => 1,
  191.                   'first'  => true,
  192.                 ];
  193.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  194.                     $length count($context['_seq']);
  195.                     $context['loop']['revindex0'] = $length 1;
  196.                     $context['loop']['revindex'] = $length;
  197.                     $context['loop']['length'] = $length;
  198.                     $context['loop']['last'] = === $length;
  199.                 }
  200.                 foreach ($context['_seq'] as $context["_key"] => $context["menuSubItem"]) {
  201.                     // line 20
  202.                     yield "                                        ";
  203.                     yield from $this->unwrap()->yieldBlock('menu_subitem'$context$blocks);
  204.                     // line 25
  205.                     yield "                                    ";
  206.                     ++$context['loop']['index0'];
  207.                     ++$context['loop']['index'];
  208.                     $context['loop']['first'] = false;
  209.                     if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  210.                         --$context['loop']['revindex0'];
  211.                         --$context['loop']['revindex'];
  212.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  213.                     }
  214.                 }
  215.                 $_parent $context['_parent'];
  216.                 unset($context['_seq'], $context['_key'], $context['menuSubItem'], $context['_parent'], $context['loop']);
  217.                 $context array_intersect_key($context$_parent) + $_parent;
  218.                 // line 26
  219.                 yield "                                </ul>
  220.                             ";
  221.             }
  222.             // line 28
  223.             yield "                        </li>
  224.                     ";
  225.         }
  226.         // line 30
  227.         yield "                ";
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.         yield from [];
  233.     }
  234.     // line 20
  235.     /**
  236.      * @return iterable<null|scalar|\Stringable>
  237.      */
  238.     public function block_menu_subitem(array $context, array $blocks = []): iterable
  239.     {
  240.         $macros $this->macros;
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_subitem"));
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_subitem"));
  245.         // line 21
  246.         yield "                                            <li class=\"";
  247.         yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuSubItem"]) || array_key_exists("menuSubItem"$context) ? $context["menuSubItem"] : (function () { throw new RuntimeError('Variable "menuSubItem" does not exist.'21$this->source); })()), "isMenuSection", [], "any"falsefalsefalse21)) ? ("menu-header") : ("menu-item"));
  248.         yield " ";
  249.         yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["menuSubItem"]) || array_key_exists("menuSubItem"$context) ? $context["menuSubItem"] : (function () { throw new RuntimeError('Variable "menuSubItem" does not exist.'21$this->source); })()), "isSelected", [], "any"falsefalsefalse21)) ? ("active") : (""));
  250.         yield "\">
  251.                                                 ";
  252.         // line 22
  253.         yield $this->getTemplateForMacro("macro_render_menu_item"$context22$this->getSourceContext())->macro_render_menu_item(...[(isset($context["menuSubItem"]) || array_key_exists("menuSubItem"$context) ? $context["menuSubItem"] : (function () { throw new RuntimeError('Variable "menuSubItem" does not exist.'22$this->source); })())]);
  254.         yield "
  255.                                             </li>
  256.                                         ";
  257.         
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  259.         
  260.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  261.         yield from [];
  262.     }
  263.     // line 35
  264.     /**
  265.      * @return iterable<null|scalar|\Stringable>
  266.      */
  267.     public function block_main_menu_after(array $context, array $blocks = []): iterable
  268.     {
  269.         $macros $this->macros;
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  271.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu_after"));
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu_after"));
  274.         
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  276.         
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  278.         yield from [];
  279.     }
  280.     // line 38
  281.     public function macro_render_html_attributes($item null, ...$varargs): string|Markup
  282.     {
  283.         $macros $this->macros;
  284.         $context = [
  285.             "item" => $item,
  286.             "varargs" => $varargs,
  287.         ] + $this->env->getGlobals();
  288.         $blocks = [];
  289.         return ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  290.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  291.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_html_attributes"));
  292.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  293.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_html_attributes"));
  294.             // line 39
  295.             yield "    ";
  296.             $context['_parent'] = $context;
  297.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'39$this->source); })()), "htmlAttributes", [], "any"falsefalsefalse39));
  298.             foreach ($context['_seq'] as $context["attribute_name"] => $context["attribute_value"]) {
  299.                 // line 40
  300.                 yield "        ";
  301.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attribute_name"], "html"nulltrue);
  302.                 yield "=\"";
  303.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attribute_value"], "html_attr");
  304.                 yield "\"
  305.     ";
  306.             }
  307.             $_parent $context['_parent'];
  308.             unset($context['_seq'], $context['attribute_name'], $context['attribute_value'], $context['_parent']);
  309.             $context array_intersect_key($context$_parent) + $_parent;
  310.             
  311.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  312.             
  313.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  314.             yield from [];
  315.         })())) ? '' : new Markup($tmp$this->env->getCharset());
  316.     }
  317.     // line 44
  318.     public function macro_render_menu_item($item null, ...$varargs): string|Markup
  319.     {
  320.         $macros $this->macros;
  321.         $context = [
  322.             "item" => $item,
  323.             "varargs" => $varargs,
  324.         ] + $this->env->getGlobals();
  325.         $blocks = [];
  326.         return ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  327.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  328.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_menu_item"));
  329.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  330.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_menu_item"));
  331.             // line 45
  332.             yield "    ";
  333.             if (CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'45$this->source); })()), "isMenuSection", [], "any"falsefalsefalse45)) {
  334.                 // line 46
  335.                 yield "        <span class=\"menu-header-contents\" ";
  336.                 yield $this->getTemplateForMacro("macro_render_html_attributes"$context46$this->getSourceContext())->macro_render_html_attributes(...[(isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'46$this->source); })())]);
  337.                 yield ">
  338.             ";
  339.                 // line 47
  340.                 if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'47$this->source); })()), "icon", [], "any"falsefalsefalse47))) {
  341.                     yield "<i class=\"menu-icon fa-fw ";
  342.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'47$this->source); })()), "icon", [], "any"falsefalsefalse47), "html"nulltrue);
  343.                     yield "\"></i>";
  344.                 }
  345.                 // line 48
  346.                 yield "            <span class=\"menu-item-label position-relative ";
  347.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'48$this->source); })()), "cssClass", [], "any"falsefalsefalse48), "html"nulltrue);
  348.                 yield "\">
  349.                 ";
  350.                 // line 49
  351.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'49$this->source); })()), "label", [], "any"falsefalsefalse49));
  352.                 yield "
  353.             </span>
  354.             ";
  355.                 // line 51
  356.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'51$this->source); })()), "badge", [], "any"falsefalsefalse51)) {
  357.                     // line 52
  358.                     yield "                <span class=\"menu-item-badge rounded-pill badge ";
  359.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'52$this->source); })()), "badge", [], "any"falsefalsefalse52), "cssClass", [], "any"falsefalsefalse52), "html"nulltrue);
  360.                     yield "\" ";
  361.                     yield $this->getTemplateForMacro("macro_render_html_attributes"$context52$this->getSourceContext())->macro_render_html_attributes(...[CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'52$this->source); })()), "badge", [], "any"falsefalsefalse52)]);
  362.                     yield " style=\"";
  363.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'52$this->source); })()), "badge", [], "any"falsefalsefalse52), "htmlStyle", [], "any"falsefalsefalse52), "html"nulltrue);
  364.                     yield "\">";
  365.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'52$this->source); })()), "badge", [], "any"falsefalsefalse52), "content", [], "any"falsefalsefalse52), "html"nulltrue);
  366.                     yield "</span>
  367.             ";
  368.                 }
  369.                 // line 54
  370.                 yield "        </span>
  371.     ";
  372.             } else {
  373.                 // line 56
  374.                 yield "        <a href=\"";
  375.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })()), "linkUrl", [], "any"falsefalsefalse56), "html"nulltrue);
  376.                 yield "\" class=\"menu-item-contents ";
  377.                 yield ((CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })()), "hasSubItems", [], "any"falsefalsefalse56)) ? ("submenu-toggle") : (""));
  378.                 yield " ";
  379.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })()), "cssClass", [], "any"falsefalsefalse56), "html"nulltrue);
  380.                 yield "\" target=\"";
  381.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })()), "linkTarget", [], "any"falsefalsefalse56), "html"nulltrue);
  382.                 yield "\" rel=\"";
  383.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })()), "linkRel", [], "any"falsefalsefalse56), "html"nulltrue);
  384.                 yield "\" referrerpolicy=\"origin-when-cross-origin\" ";
  385.                 yield $this->getTemplateForMacro("macro_render_html_attributes"$context56$this->getSourceContext())->macro_render_html_attributes(...[(isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'56$this->source); })())]);
  386.                 yield ">
  387.             ";
  388.                 // line 57
  389.                 if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'57$this->source); })()), "icon", [], "any"falsefalsefalse57))) {
  390.                     yield "<i class=\"menu-icon fa-fw ";
  391.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'57$this->source); })()), "icon", [], "any"falsefalsefalse57), "html"nulltrue);
  392.                     yield "\"></i>";
  393.                 }
  394.                 // line 58
  395.                 yield "            <span class=\"menu-item-label position-relative\">
  396.                 ";
  397.                 // line 59
  398.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'59$this->source); })()), "label", [], "any"falsefalsefalse59));
  399.                 yield "
  400.             </span>
  401.             ";
  402.                 // line 61
  403.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'61$this->source); })()), "hasSubItems", [], "any"falsefalsefalse61)) {
  404.                     yield "<i class=\"fa fa-fw fa-angle-right submenu-toggle-icon\"></i>";
  405.                 }
  406.                 // line 62
  407.                 yield "            ";
  408.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'62$this->source); })()), "badge", [], "any"falsefalsefalse62)) {
  409.                     // line 63
  410.                     yield "                <span class=\"menu-item-badge rounded-pill badge ";
  411.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'63$this->source); })()), "badge", [], "any"falsefalsefalse63), "cssClass", [], "any"falsefalsefalse63), "html"nulltrue);
  412.                     yield "\" ";
  413.                     yield $this->getTemplateForMacro("macro_render_html_attributes"$context63$this->getSourceContext())->macro_render_html_attributes(...[CoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'63$this->source); })()), "badge", [], "any"falsefalsefalse63)]);
  414.                     yield " style=\"";
  415.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'63$this->source); })()), "badge", [], "any"falsefalsefalse63), "htmlStyle", [], "any"falsefalsefalse63), "html"nulltrue);
  416.                     yield "\">";
  417.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'63$this->source); })()), "badge", [], "any"falsefalsefalse63), "content", [], "any"falsefalsefalse63), "html"nulltrue);
  418.                     yield "</span>
  419.             ";
  420.                 }
  421.                 // line 65
  422.                 yield "        </a>
  423.     ";
  424.             }
  425.             
  426.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  427.             
  428.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  429.             yield from [];
  430.         })())) ? '' : new Markup($tmp$this->env->getCharset());
  431.     }
  432.     /**
  433.      * @codeCoverageIgnore
  434.      */
  435.     public function getTemplateName(): string
  436.     {
  437.         return "@EasyAdmin/menu.html.twig";
  438.     }
  439.     /**
  440.      * @codeCoverageIgnore
  441.      */
  442.     public function isTraitable(): bool
  443.     {
  444.         return false;
  445.     }
  446.     /**
  447.      * @codeCoverageIgnore
  448.      */
  449.     public function getDebugInfo(): array
  450.     {
  451.         return array (  473 => 65,  461 => 63,  458 => 62,  454 => 61,  449 => 59,  446 => 58,  440 => 57,  425 => 56,  421 => 54,  409 => 52,  407 => 51,  402 => 49,  397 => 48,  391 => 47,  386 => 46,  383 => 45,  365 => 44,  344 => 40,  339 => 39,  321 => 38,  299 => 35,  285 => 22,  278 => 21,  265 => 20,  254 => 30,  250 => 28,  246 => 26,  232 => 25,  229 => 20,  212 => 19,  209 => 18,  207 => 17,  202 => 15,  191 => 14,  188 => 13,  186 => 11,  183 => 10,  180 => 9,  167 => 8,  156 => 32,  142 => 31,  139 => 8,  121 => 7,  108 => 6,  86 => 3,  74 => 43,  70 => 36,  68 => 35,  64 => 33,  62 => 6,  58 => 4,  56 => 3,  53 => 2,);
  452.     }
  453.     public function getSourceContext(): Source
  454.     {
  455.         return new Source("{# @var ea \\EasyCorp\\Bundle\\EasyAdminBundle\\Context\\AdminContext #}
  456. <nav id=\"main-menu\">
  457.     {% block main_menu_before %}{% endblock %}
  458.     <ul class=\"menu\">
  459.         {% block main_menu %}
  460.             {% for menuItem in ea.mainMenu.items %}
  461.                 {% block menu_item %}
  462.                     {% set is_submenu_item_with_no_items = menuItem.type == constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Dto\\\\MenuItemDto::TYPE_SUBMENU') and not menuItem.hasSubItems %}
  463.                     {% if is_submenu_item_with_no_items %}
  464.                         {# this can happen when submenu items define permissions and the current user can't see any
  465.                            of the subitems; instead of only displaying the label of the empty submenu, don't display anything #}
  466.                     {% else %}
  467.                         <li class=\"{{ menuItem.isMenuSection ? 'menu-header' : 'menu-item' }} {{ menuItem.hasSubItems ? 'has-submenu' }} {{ menuItem.isSelected ? 'active' }} {{ menuItem.isExpanded ? 'expanded' }}\">
  468.                             {{ _self.render_menu_item(menuItem) }}
  469.                             {% if menuItem.hasSubItems %}
  470.                                 <ul class=\"submenu\">
  471.                                     {% for menuSubItem in menuItem.subItems %}
  472.                                         {% block menu_subitem %}
  473.                                             <li class=\"{{ menuSubItem.isMenuSection ? 'menu-header' : 'menu-item' }} {{ menuSubItem.isSelected ? 'active' }}\">
  474.                                                 {{ _self.render_menu_item(menuSubItem) }}
  475.                                             </li>
  476.                                         {% endblock menu_subitem %}
  477.                                     {% endfor %}
  478.                                 </ul>
  479.                             {% endif %}
  480.                         </li>
  481.                     {% endif %}
  482.                 {% endblock menu_item %}
  483.             {% endfor %}
  484.         {% endblock main_menu %}
  485.     </ul>
  486.     {% block main_menu_after %}{% endblock %}
  487. </nav>
  488. {% macro render_html_attributes(item) %}
  489.     {% for attribute_name, attribute_value in item.htmlAttributes %}
  490.         {{ attribute_name }}=\"{{ attribute_value|e('html_attr') }}\"
  491.     {% endfor %}
  492. {% endmacro %}
  493. {% macro render_menu_item(item) %}
  494.     {% if item.isMenuSection %}
  495.         <span class=\"menu-header-contents\" {{ _self.render_html_attributes(item) }}>
  496.             {% if item.icon is not empty %}<i class=\"menu-icon fa-fw {{ item.icon }}\"></i>{% endif %}
  497.             <span class=\"menu-item-label position-relative {{ item.cssClass }}\">
  498.                 {{ item.label|trans|raw }}
  499.             </span>
  500.             {% if item.badge %}
  501.                 <span class=\"menu-item-badge rounded-pill badge {{ item.badge.cssClass }}\" {{ _self.render_html_attributes(item.badge) }} style=\"{{ item.badge.htmlStyle }}\">{{ item.badge.content }}</span>
  502.             {% endif %}
  503.         </span>
  504.     {% else %}
  505.         <a href=\"{{ item.linkUrl }}\" class=\"menu-item-contents {{ item.hasSubItems ? 'submenu-toggle' }} {{ item.cssClass }}\" target=\"{{ item.linkTarget }}\" rel=\"{{ item.linkRel }}\" referrerpolicy=\"origin-when-cross-origin\" {{ _self.render_html_attributes(item) }}>
  506.             {% if item.icon is not empty %}<i class=\"menu-icon fa-fw {{ item.icon }}\"></i>{% endif %}
  507.             <span class=\"menu-item-label position-relative\">
  508.                 {{ item.label|trans|raw }}
  509.             </span>
  510.             {% if item.hasSubItems %}<i class=\"fa fa-fw fa-angle-right submenu-toggle-icon\"></i>{% endif %}
  511.             {% if item.badge %}
  512.                 <span class=\"menu-item-badge rounded-pill badge {{ item.badge.cssClass }}\" {{ _self.render_html_attributes(item.badge) }} style=\"{{ item.badge.htmlStyle }}\">{{ item.badge.content }}</span>
  513.             {% endif %}
  514.         </a>
  515.     {% endif %}
  516. {% endmacro %}
  517. ""@EasyAdmin/menu.html.twig""/var/www/callcenter/vendor/easycorp/easyadmin-bundle/templates/menu.html.twig");
  518.     }
  519. }