var/cache/dev/twig/02/026f99e52c550ab1237e10cc4f4efed1.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @admin/nav.twig */
  14. class __TwigTemplate_9e253fcb2c404e388777f90f30dfa05c extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/nav.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/nav.twig"));
  35.         // line 11
  36.         echo "<nav>
  37.     ";
  38.         // line 12
  39.         $context["Orders"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Order"), "findBy", [=> ["OrderStatus" => 1]], "method"falsefalsetrue12);
  40.         // line 13
  41.         echo "    ";
  42.         $context["OrderCount"] = 0;
  43.         // line 14
  44.         echo "    ";
  45.         $context["AuthorityId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "user", [], "any"falsefalsetrue14), "Authority", [], "any"falsefalsetrue14), "id", [], "any"falsefalsetrue14);
  46.         // line 15
  47.         echo "    ";
  48.         if (((isset($context["AuthorityId"]) || array_key_exists("AuthorityId"$context) ? $context["AuthorityId"] : (function () { throw new RuntimeError('Variable "AuthorityId" does not exist.'15$this->source); })()) == 0)) {
  49.             // line 16
  50.             echo "        ";
  51.             $context["OrderCount"] = twig_length_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["Orders"]) || array_key_exists("Orders"$context) ? $context["Orders"] : (function () { throw new RuntimeError('Variable "Orders" does not exist.'16$this->source); })()), 16$this->source));
  52.             // line 17
  53.             echo "    ";
  54.         } else {
  55.             // line 18
  56.             echo "        ";
  57.             $context["UserId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "user", [], "any"falsefalsetrue18), "id", [], "any"falsefalsetrue18);
  58.             // line 19
  59.             echo "        ";
  60.             $context['_parent'] = $context;
  61.             $context['_seq'] = twig_ensure_traversable((isset($context["Orders"]) || array_key_exists("Orders"$context) ? $context["Orders"] : (function () { throw new RuntimeError('Variable "Orders" does not exist.'19$this->source); })()));
  62.             foreach ($context['_seq'] as $context["_key"] => $context["Order"]) {
  63.                 // line 20
  64.                 echo "            ";
  65.                 $context['_parent'] = $context;
  66.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Order"], "Shippings", [], "any"falsefalsetrue20));
  67.                 foreach ($context['_seq'] as $context["_key"] => $context["Shipping"]) {
  68.                     // line 21
  69.                     echo "                ";
  70.                     if ((twig_get_attribute($this->env$this->source$context["Shipping"], "vendor", [], "any"falsefalsetrue21) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Shipping"], "vendor", [], "any"falsefalsetrue21), "id", [], "any"falsefalsetrue21) == (isset($context["UserId"]) || array_key_exists("UserId"$context) ? $context["UserId"] : (function () { throw new RuntimeError('Variable "UserId" does not exist.'21$this->source); })())))) {
  71.                         // line 22
  72.                         echo "                    ";
  73.                         $context["OrderCount"] = ((isset($context["OrderCount"]) || array_key_exists("OrderCount"$context) ? $context["OrderCount"] : (function () { throw new RuntimeError('Variable "OrderCount" does not exist.'22$this->source); })()) + 1);
  74.                         // line 23
  75.                         echo "                ";
  76.                     }
  77.                     // line 24
  78.                     echo "            ";
  79.                 }
  80.                 $_parent $context['_parent'];
  81.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Shipping'], $context['_parent'], $context['loop']);
  82.                 $context array_intersect_key($context$_parent) + $_parent;
  83.                 // line 25
  84.                 echo "        ";
  85.             }
  86.             $_parent $context['_parent'];
  87.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Order'], $context['_parent'], $context['loop']);
  88.             $context array_intersect_key($context$_parent) + $_parent;
  89.             // line 26
  90.             echo "    ";
  91.         }
  92.         // line 27
  93.         echo "    <ul class=\"c-mainNavArea__nav\">
  94.         <!-- ホーム -->
  95.         <li class=\"c-mainNavArea__navItem\">
  96.             <a class=\"c-mainNavArea__navItemTitle\" href=\"";
  97.         // line 30
  98.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_homepage");
  99.         echo "\">
  100.                 <i class=\"fa fa-home fa-fw\" aria-hidden=\"true\"></i>
  101.                 <span>";
  102.         // line 32
  103.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.home"), "html"nulltrue);
  104.         echo "</span>
  105.             </a>
  106.         </li>
  107.         ";
  108.         // line 35
  109.         $context['_parent'] = $context;
  110.         $context['_seq'] = twig_ensure_traversable((isset($context["eccubeNav"]) || array_key_exists("eccubeNav"$context) ? $context["eccubeNav"] : (function () { throw new RuntimeError('Variable "eccubeNav" does not exist.'35$this->source); })()));
  111.         foreach ($context['_seq'] as $context["key1"] => $context["level1"]) {
  112.             // line 36
  113.             echo "            <li class=\"c-mainNavArea__navItem\">
  114.                 ";
  115.             // line 37
  116.             if ((twig_get_attribute($this->env$this->source$context["level1"], "children", [], "any"truetruetrue37) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["level1"], "children", [], "any"falsefalsetrue37)) > 0))) {
  117.                 // line 38
  118.                 echo "                    <a class=\"c-mainNavArea__navItemTitle";
  119.                 echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'38$this->source); })()), 38$this->source)), 0, [], "array"falsefalsetrue38) != $context["key1"])) ? (" collapsed") : (""));
  120.                 echo "\"
  121.                        data-bs-toggle=\"collapse\" href=\"#nav-";
  122.                 // line 39
  123.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key1"], 39$this->source), "html"nulltrue);
  124.                 echo "\"
  125.                        aria-expanded=\"";
  126.                 // line 40
  127.                 echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'40$this->source); })()), 40$this->source)), 0, [], "array"falsefalsetrue40) == $context["key1"])) ? ("true") : ("false"));
  128.                 echo "\"
  129.                        aria-controls=\"nav-";
  130.                 // line 41
  131.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key1"], 41$this->source), "html"nulltrue);
  132.                 echo "\">
  133.                         <i class=\"fa ";
  134.                 // line 42
  135.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level1"], "icon", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue);
  136.                 echo " fa-fw\" aria-hidden=\"true\"></i>
  137.                         <span>";
  138.                 // line 43
  139.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level1"], "name", [], "any"falsefalsetrue43), 43$this->source)), "html"nulltrue);
  140.                 echo "</span>
  141.                         ";
  142.                 // line 44
  143.                 if ((twig_get_attribute($this->env$this->source$context["level1"], "name", [], "any"falsefalsetrue44) == "admin.order.order_management")) {
  144.                     // line 45
  145.                     echo "                            <span class=\"text-light badge rounded-pill bg-danger ms-4\">";
  146.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["OrderCount"]) || array_key_exists("OrderCount"$context) ? $context["OrderCount"] : (function () { throw new RuntimeError('Variable "OrderCount" does not exist.'45$this->source); })()), 45$this->source), "html"nulltrue);
  147.                     echo "</span>
  148.                         ";
  149.                 }
  150.                 // line 47
  151.                 echo "                    </a>
  152.                     <ul class=\"collapse ";
  153.                 // line 48
  154.                 if ((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'48$this->source); })())), 0, [], "array"falsefalsetrue48) == $context["key1"])) {
  155.                     echo " show";
  156.                 }
  157.                 echo "\" id=\"nav-";
  158.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key1"], 48$this->source), "html"nulltrue);
  159.                 echo "\">
  160.                         ";
  161.                 // line 49
  162.                 $context['_parent'] = $context;
  163.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["level1"], "children", [], "any"falsefalsetrue49));
  164.                 foreach ($context['_seq'] as $context["key2"] => $context["level2"]) {
  165.                     // line 50
  166.                     echo "                            <li>
  167.                                 ";
  168.                     // line 51
  169.                     if ((twig_get_attribute($this->env$this->source$context["level2"], "children", [], "any"truetruetrue51) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["level2"], "children", [], "any"falsefalsetrue51)) > 0))) {
  170.                         // line 52
  171.                         echo "                                    <a class=\"c-mainNavArea__navItemSubTitle";
  172.                         echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'52$this->source); })()), 52$this->source)), 1, [], "array"falsefalsetrue52) != $context["key2"])) ? (" collapsed") : (""));
  173.                         echo "\"
  174.                                        data-bs-toggle=\"collapse\" href=\"#nav-";
  175.                         // line 53
  176.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key2"], 53$this->source), "html"nulltrue);
  177.                         echo "\"
  178.                                        aria-expanded=\"";
  179.                         // line 54
  180.                         echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'54$this->source); })()), 54$this->source)), 1, [], "array"falsefalsetrue54) != $context["key2"])) ? ("true") : ("false"));
  181.                         echo "\"
  182.                                        aria-controls=\"nav-";
  183.                         // line 55
  184.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key2"], 55$this->source), "html"nulltrue);
  185.                         echo "\">
  186.                                         <span>";
  187.                         // line 56
  188.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level2"], "name", [], "any"falsefalsetrue56), 56$this->source)), "html"nulltrue);
  189.                         echo "</span>
  190.                                     </a>
  191.                                     <ul class=\"collapse";
  192.                         // line 58
  193.                         echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'58$this->source); })()), 58$this->source)), 1, [], "array"falsefalsetrue58) == $context["key2"])) ? (" show") : (""));
  194.                         echo "\" id=\"nav-";
  195.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["key2"], 58$this->source), "html"nulltrue);
  196.                         echo "\">
  197.                                         ";
  198.                         // line 59
  199.                         $context['_parent'] = $context;
  200.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["level2"], "children", [], "any"falsefalsetrue59));
  201.                         foreach ($context['_seq'] as $context["key3"] => $context["level3"]) {
  202.                             // line 60
  203.                             echo "                                            ";
  204.                             if (($context["key3"] == "shop_index")) {
  205.                                 // line 61
  206.                                 echo "                                                ";
  207.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'61$this->source); })()), "user", [], "any"falsefalsetrue61), "Authority", [], "any"falsefalsetrue61), "id", [], "any"falsefalsetrue61) == 0)) {
  208.                                     // line 62
  209.                                     echo "                                                    <li>
  210.                                                         <a href=\"";
  211.                                     // line 63
  212.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level3"], "url", [], "any"falsefalsetrue63), 63$this->source), ((twig_get_attribute($this->env$this->source$context["level3"], "param", [], "any"truetruetrue63)) ? (twig_get_attribute($this->env$this->source$context["level3"], "param", [], "any"falsefalsetrue63)) : ([]))), "html"nulltrue);
  213.                                     echo "\"";
  214.                                     echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'63$this->source); })()), 63$this->source)), 2, [], "array"falsefalsetrue63) == $context["key3"])) ? (" class=\"is-active\"") : (""));
  215.                                     echo ">
  216.                                                             <span>";
  217.                                     // line 64
  218.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level3"], "name", [], "any"falsefalsetrue64), 64$this->source)), "html"nulltrue);
  219.                                     echo "</span>
  220.                                                         </a>
  221.                                                     </li>
  222.                                                 ";
  223.                                 }
  224.                                 // line 68
  225.                                 echo "                                            ";
  226.                             } else {
  227.                                 // line 69
  228.                                 echo "                                                <li>
  229.                                                     <a href=\"";
  230.                                 // line 70
  231.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level3"], "url", [], "any"falsefalsetrue70), 70$this->source), ((twig_get_attribute($this->env$this->source$context["level3"], "param", [], "any"truetruetrue70)) ? (twig_get_attribute($this->env$this->source$context["level3"], "param", [], "any"falsefalsetrue70)) : ([]))), "html"nulltrue);
  232.                                 echo "\"";
  233.                                 echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'70$this->source); })()), 70$this->source)), 2, [], "array"falsefalsetrue70) == $context["key3"])) ? (" class=\"is-active\"") : (""));
  234.                                 echo ">
  235.                                                         <span>";
  236.                                 // line 71
  237.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level3"], "name", [], "any"falsefalsetrue71), 71$this->source)), "html"nulltrue);
  238.                                 echo "</span>
  239.                                                     </a>
  240.                                                 </li>
  241.                                             ";
  242.                             }
  243.                             // line 75
  244.                             echo "                                        ";
  245.                         }
  246.                         $_parent $context['_parent'];
  247.                         unset($context['_seq'], $context['_iterated'], $context['key3'], $context['level3'], $context['_parent'], $context['loop']);
  248.                         $context array_intersect_key($context$_parent) + $_parent;
  249.                         // line 76
  250.                         echo "                                    </ul>
  251.                                 ";
  252.                     } else {
  253.                         // line 78
  254.                         echo "                                    <a href=\"";
  255.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level2"], "url", [], "any"falsefalsetrue78), 78$this->source), ((twig_get_attribute($this->env$this->source$context["level2"], "param", [], "any"truetruetrue78)) ? (twig_get_attribute($this->env$this->source$context["level2"], "param", [], "any"falsefalsetrue78)) : ([]))), "html"nulltrue);
  256.                         echo "\"";
  257.                         echo (((twig_get_attribute($this->env$this->source$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getActiveMenus($this->sandbox->ensureToStringAllowed((isset($context["menus"]) || array_key_exists("menus"$context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.'78$this->source); })()), 78$this->source)), 1, [], "array"falsefalsetrue78) == $context["key2"])) ? (" class=\"is-active\"") : (""));
  258.                         echo ">
  259.                                         <span>";
  260.                         // line 79
  261.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level2"], "name", [], "any"falsefalsetrue79), 79$this->source)), "html"nulltrue);
  262.                         echo "</span>
  263.                                     </a>
  264.                                 ";
  265.                     }
  266.                     // line 82
  267.                     echo "                            </li>
  268.                         ";
  269.                 }
  270.                 $_parent $context['_parent'];
  271.                 unset($context['_seq'], $context['_iterated'], $context['key2'], $context['level2'], $context['_parent'], $context['loop']);
  272.                 $context array_intersect_key($context$_parent) + $_parent;
  273.                 // line 84
  274.                 echo "                    </ul>
  275.                 ";
  276.             } else {
  277.                 // line 86
  278.                 echo "                    <a class=\"c-mainNavArea__navItemTitle\" href=\"";
  279.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level1"], "url", [], "any"falsefalsetrue86), 86$this->source), ((twig_get_attribute($this->env$this->source$context["level1"], "param", [], "any"truetruetrue86)) ? (twig_get_attribute($this->env$this->source$context["level1"], "param", [], "any"falsefalsetrue86)) : ([]))), "html"nulltrue);
  280.                 echo "\">
  281.                         <i class=\"fa ";
  282.                 // line 87
  283.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level1"], "icon", [], "any"falsefalsetrue87), 87$this->source), "html"nulltrue);
  284.                 echo "\" aria-hidden=\"true\"></i>
  285.                         <span>";
  286.                 // line 88
  287.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["level1"], "name", [], "any"falsefalsetrue88), 88$this->source)), "html"nulltrue);
  288.                 echo "</span>
  289.                     </a>
  290.                 ";
  291.             }
  292.             // line 91
  293.             echo "            </li>
  294.         ";
  295.         }
  296.         $_parent $context['_parent'];
  297.         unset($context['_seq'], $context['_iterated'], $context['key1'], $context['level1'], $context['_parent'], $context['loop']);
  298.         $context array_intersect_key($context$_parent) + $_parent;
  299.         // line 93
  300.         echo "        <!-- 情報 -->
  301.         <li class=\"c-mainNavArea__navItem\">
  302.             <a class=\"c-mainNavArea__navItemTitle collapsed\" data-bs-toggle=\"collapse\" href=\"#others\" aria-expanded=\"false\"
  303.                aria-controls=\"others\">
  304.                 <i class=\"fa fa-info-circle fa-fw\" aria-hidden=\"true\"></i>
  305.                 <span>";
  306.         // line 98
  307.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info"), "html"nulltrue);
  308.         echo "</span>
  309.             </a>
  310.             <ul class=\"collapse\" id=\"others\">
  311.                 <li>
  312.                     <a href=\"";
  313.         // line 102
  314.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'102$this->source); })()), "eccube_official_site_url", [], "any"falsefalsetrue102), 102$this->source), "html"nulltrue);
  315.         echo "\" target=\"_blank\">
  316.                         <span>";
  317.         // line 103
  318.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.official_site"), "html"nulltrue);
  319.         echo "</span>
  320.                     </a>
  321.                 </li>
  322.                 <li>
  323.                     <a href=\"";
  324.         // line 107
  325.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'107$this->source); })()), "eccube_community_site_url", [], "any"falsefalsetrue107), 107$this->source), "html"nulltrue);
  326.         echo "\" target=\"_blank\">
  327.                         <span>";
  328.         // line 108
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.community"), "html"nulltrue);
  330.         echo "</span>
  331.                     </a>
  332.                 </li>
  333.                 <li>
  334.                     <a href=\"";
  335.         // line 112
  336.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'112$this->source); })()), "eccube_document_url", [], "any"falsefalsetrue112), 112$this->source), "html"nulltrue);
  337.         echo "\" target=\"_blank\">
  338.                         <span>";
  339.         // line 113
  340.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.document"), "html"nulltrue);
  341.         echo "</span>
  342.                     </a>
  343.                 </li>
  344.                 <li>
  345.                     <a href=\"";
  346.         // line 117
  347.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'117$this->source); })()), "eccube_manual_url", [], "any"falsefalsetrue117), 117$this->source), "html"nulltrue);
  348.         echo "\" target=\"_blank\">
  349.                         <span>";
  350.         // line 118
  351.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.manual"), "html"nulltrue);
  352.         echo "</span>
  353.                     </a>
  354.                 </li>
  355.             </ul>
  356.         </li>
  357.     </ul>
  358. </nav>
  359. ";
  360.         
  361.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  362.         
  363.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  364.     }
  365.     public function getTemplateName()
  366.     {
  367.         return "@admin/nav.twig";
  368.     }
  369.     public function isTraitable()
  370.     {
  371.         return false;
  372.     }
  373.     public function getDebugInfo()
  374.     {
  375.         return array (  360 => 118,  356 => 117,  349 => 113,  345 => 112,  338 => 108,  334 => 107,  327 => 103,  323 => 102,  316 => 98,  309 => 93,  302 => 91,  296 => 88,  292 => 87,  287 => 86,  283 => 84,  276 => 82,  270 => 79,  263 => 78,  259 => 76,  253 => 75,  246 => 71,  240 => 70,  237 => 69,  234 => 68,  227 => 64,  221 => 63,  218 => 62,  215 => 61,  212 => 60,  208 => 59,  202 => 58,  197 => 56,  193 => 55,  189 => 54,  185 => 53,  180 => 52,  178 => 51,  175 => 50,  171 => 49,  163 => 48,  160 => 47,  154 => 45,  152 => 44,  148 => 43,  144 => 42,  140 => 41,  136 => 40,  132 => 39,  127 => 38,  125 => 37,  122 => 36,  118 => 35,  112 => 32,  107 => 30,  102 => 27,  99 => 26,  93 => 25,  87 => 24,  84 => 23,  81 => 22,  78 => 21,  73 => 20,  68 => 19,  65 => 18,  62 => 17,  59 => 16,  56 => 15,  53 => 14,  50 => 13,  48 => 12,  45 => 11,);
  376.     }
  377.     public function getSourceContext()
  378.     {
  379.         return new Source("{#
  380. This file is part of EC-CUBE
  381. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  382. http://www.ec-cube.co.jp/
  383. For the full copyright and license information, please view the LICENSE
  384. file that was distributed with this source code.
  385. #}
  386. <nav>
  387.     {% set Orders = repository('Eccube\\\\Entity\\\\Order').findBy({'OrderStatus': 1}) %}
  388.     {% set OrderCount = 0 %}
  389.     {% set AuthorityId = app.user.Authority.id %}
  390.     {% if AuthorityId == 0 %}
  391.         {% set OrderCount = Orders|length %}
  392.     {% else %}
  393.         {% set UserId = app.user.id %}
  394.         {% for Order in Orders %}
  395.             {% for Shipping in Order.Shippings %}
  396.                 {% if Shipping.vendor and Shipping.vendor.id == UserId %}
  397.                     {% set OrderCount = OrderCount + 1 %}
  398.                 {% endif %}
  399.             {% endfor %}
  400.         {% endfor %}
  401.     {% endif %}
  402.     <ul class=\"c-mainNavArea__nav\">
  403.         <!-- ホーム -->
  404.         <li class=\"c-mainNavArea__navItem\">
  405.             <a class=\"c-mainNavArea__navItemTitle\" href=\"{{ url('admin_homepage') }}\">
  406.                 <i class=\"fa fa-home fa-fw\" aria-hidden=\"true\"></i>
  407.                 <span>{{ 'admin.home'|trans }}</span>
  408.             </a>
  409.         </li>
  410.         {% for key1, level1 in eccubeNav %}
  411.             <li class=\"c-mainNavArea__navItem\">
  412.                 {% if level1.children is defined and level1.children|length > 0 %}
  413.                     <a class=\"c-mainNavArea__navItemTitle{{ active_menus(menus)[0] != key1 ? ' collapsed' }}\"
  414.                        data-bs-toggle=\"collapse\" href=\"#nav-{{ key1 }}\"
  415.                        aria-expanded=\"{{ active_menus(menus)[0] == key1 ? 'true' : 'false' }}\"
  416.                        aria-controls=\"nav-{{ key1 }}\">
  417.                         <i class=\"fa {{ level1.icon }} fa-fw\" aria-hidden=\"true\"></i>
  418.                         <span>{{ level1.name|trans }}</span>
  419.                         {% if level1.name == 'admin.order.order_management' %}
  420.                             <span class=\"text-light badge rounded-pill bg-danger ms-4\">{{ OrderCount }}</span>
  421.                         {% endif %}
  422.                     </a>
  423.                     <ul class=\"collapse {% if active_menus(menus)[0] == key1 %} show{% endif %}\" id=\"nav-{{ key1 }}\">
  424.                         {% for key2, level2 in level1.children %}
  425.                             <li>
  426.                                 {% if level2.children is defined and level2.children|length > 0 %}
  427.                                     <a class=\"c-mainNavArea__navItemSubTitle{{ active_menus(menus)[1] != key2 ? ' collapsed' }}\"
  428.                                        data-bs-toggle=\"collapse\" href=\"#nav-{{ key2 }}\"
  429.                                        aria-expanded=\"{{ active_menus(menus)[1] != key2 ? 'true' : 'false' }}\"
  430.                                        aria-controls=\"nav-{{ key2 }}\">
  431.                                         <span>{{ level2.name|trans }}</span>
  432.                                     </a>
  433.                                     <ul class=\"collapse{{ active_menus(menus)[1] == key2 ? ' show' }}\" id=\"nav-{{ key2 }}\">
  434.                                         {% for key3, level3 in level2.children %}
  435.                                             {% if key3 == \"shop_index\" %}
  436.                                                 {% if app.user.Authority.id == 0 %}
  437.                                                     <li>
  438.                                                         <a href=\"{{ url(level3.url, level3.param is defined ? level3.param : []) }}\"{{ active_menus(menus)[2] == key3 ? ' class=\"is-active\"' }}>
  439.                                                             <span>{{ level3.name|trans }}</span>
  440.                                                         </a>
  441.                                                     </li>
  442.                                                 {% endif %}
  443.                                             {% else %}
  444.                                                 <li>
  445.                                                     <a href=\"{{ url(level3.url, level3.param is defined ? level3.param : []) }}\"{{ active_menus(menus)[2] == key3 ? ' class=\"is-active\"' }}>
  446.                                                         <span>{{ level3.name|trans }}</span>
  447.                                                     </a>
  448.                                                 </li>
  449.                                             {% endif %}
  450.                                         {% endfor %}
  451.                                     </ul>
  452.                                 {% else %}
  453.                                     <a href=\"{{ url(level2.url, level2.param is defined ? level2.param : []) }}\"{{ active_menus(menus)[1] == key2 ? ' class=\"is-active\"' }}>
  454.                                         <span>{{ level2.name|trans }}</span>
  455.                                     </a>
  456.                                 {% endif %}
  457.                             </li>
  458.                         {% endfor %}
  459.                     </ul>
  460.                 {% else %}
  461.                     <a class=\"c-mainNavArea__navItemTitle\" href=\"{{ url(level1.url, level1.param is defined ? level1.param : []) }}\">
  462.                         <i class=\"fa {{ level1.icon }}\" aria-hidden=\"true\"></i>
  463.                         <span>{{ level1.name|trans }}</span>
  464.                     </a>
  465.                 {% endif %}
  466.             </li>
  467.         {% endfor %}
  468.         <!-- 情報 -->
  469.         <li class=\"c-mainNavArea__navItem\">
  470.             <a class=\"c-mainNavArea__navItemTitle collapsed\" data-bs-toggle=\"collapse\" href=\"#others\" aria-expanded=\"false\"
  471.                aria-controls=\"others\">
  472.                 <i class=\"fa fa-info-circle fa-fw\" aria-hidden=\"true\"></i>
  473.                 <span>{{ 'admin.info'|trans }}</span>
  474.             </a>
  475.             <ul class=\"collapse\" id=\"others\">
  476.                 <li>
  477.                     <a href=\"{{ eccube_config.eccube_official_site_url }}\" target=\"_blank\">
  478.                         <span>{{ 'admin.info.official_site'|trans }}</span>
  479.                     </a>
  480.                 </li>
  481.                 <li>
  482.                     <a href=\"{{ eccube_config.eccube_community_site_url }}\" target=\"_blank\">
  483.                         <span>{{ 'admin.info.community'|trans }}</span>
  484.                     </a>
  485.                 </li>
  486.                 <li>
  487.                     <a href=\"{{ eccube_config.eccube_document_url }}\" target=\"_blank\">
  488.                         <span>{{ 'admin.info.document'|trans }}</span>
  489.                     </a>
  490.                 </li>
  491.                 <li>
  492.                     <a href=\"{{ eccube_config.eccube_manual_url }}\" target=\"_blank\">
  493.                         <span>{{ 'admin.info.manual'|trans }}</span>
  494.                     </a>
  495.                 </li>
  496.             </ul>
  497.         </li>
  498.     </ul>
  499. </nav>
  500. ""@admin/nav.twig""/home/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/admin/nav.twig");
  501.     }
  502.     
  503.     public function checkSecurity()
  504.     {
  505.         static $tags = array("set" => 12"if" => 15"for" => 19);
  506.         static $filters = array("length" => 16"escape" => 32"trans" => 32);
  507.         static $functions = array("repository" => 12"url" => 30"active_menus" => 38);
  508.         try {
  509.             $this->sandbox->checkSecurity(
  510.                 ['set''if''for'],
  511.                 ['length''escape''trans'],
  512.                 ['repository''url''active_menus']
  513.             );
  514.         } catch (SecurityError $e) {
  515.             $e->setSourceContext($this->source);
  516.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  517.                 $e->setTemplateLine($tags[$e->getTagName()]);
  518.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  519.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  520.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  521.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  522.             }
  523.             throw $e;
  524.         }
  525.     }
  526. }