<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @admin/nav.twig */
class __TwigTemplate_9e253fcb2c404e388777f90f30dfa05c extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/nav.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/nav.twig"));
// line 11
echo "<nav>
";
// line 12
$context["Orders"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Order"), "findBy", [0 => ["OrderStatus" => 1]], "method", false, false, true, 12);
// line 13
echo " ";
$context["OrderCount"] = 0;
// line 14
echo " ";
$context["AuthorityId"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 14), "Authority", [], "any", false, false, true, 14), "id", [], "any", false, false, true, 14);
// line 15
echo " ";
if (((isset($context["AuthorityId"]) || array_key_exists("AuthorityId", $context) ? $context["AuthorityId"] : (function () { throw new RuntimeError('Variable "AuthorityId" does not exist.', 15, $this->source); })()) == 0)) {
// line 16
echo " ";
$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));
// line 17
echo " ";
} else {
// line 18
echo " ";
$context["UserId"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 18), "id", [], "any", false, false, true, 18);
// line 19
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Order"]) {
// line 20
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Order"], "Shippings", [], "any", false, false, true, 20));
foreach ($context['_seq'] as $context["_key"] => $context["Shipping"]) {
// line 21
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Shipping"], "vendor", [], "any", false, false, true, 21) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Shipping"], "vendor", [], "any", false, false, true, 21), "id", [], "any", false, false, true, 21) == (isset($context["UserId"]) || array_key_exists("UserId", $context) ? $context["UserId"] : (function () { throw new RuntimeError('Variable "UserId" does not exist.', 21, $this->source); })())))) {
// line 22
echo " ";
$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);
// line 23
echo " ";
}
// line 24
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Shipping'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Order'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " ";
}
// line 27
echo " <ul class=\"c-mainNavArea__nav\">
<!-- ホーム -->
<li class=\"c-mainNavArea__navItem\">
<a class=\"c-mainNavArea__navItemTitle\" href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_homepage");
echo "\">
<i class=\"fa fa-home fa-fw\" aria-hidden=\"true\"></i>
<span>";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.home"), "html", null, true);
echo "</span>
</a>
</li>
";
// line 35
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["key1"] => $context["level1"]) {
// line 36
echo " <li class=\"c-mainNavArea__navItem\">
";
// line 37
if ((twig_get_attribute($this->env, $this->source, $context["level1"], "children", [], "any", true, true, true, 37) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["level1"], "children", [], "any", false, false, true, 37)) > 0))) {
// line 38
echo " <a class=\"c-mainNavArea__navItemTitle";
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", false, false, true, 38) != $context["key1"])) ? (" collapsed") : (""));
echo "\"
data-bs-toggle=\"collapse\" href=\"#nav-";
// line 39
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key1"], 39, $this->source), "html", null, true);
echo "\"
aria-expanded=\"";
// line 40
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", false, false, true, 40) == $context["key1"])) ? ("true") : ("false"));
echo "\"
aria-controls=\"nav-";
// line 41
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key1"], 41, $this->source), "html", null, true);
echo "\">
<i class=\"fa ";
// line 42
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["level1"], "icon", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
echo " fa-fw\" aria-hidden=\"true\"></i>
<span>";
// line 43
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", false, false, true, 43), 43, $this->source)), "html", null, true);
echo "</span>
";
// line 44
if ((twig_get_attribute($this->env, $this->source, $context["level1"], "name", [], "any", false, false, true, 44) == "admin.order.order_management")) {
// line 45
echo " <span class=\"text-light badge rounded-pill bg-danger ms-4\">";
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", null, true);
echo "</span>
";
}
// line 47
echo " </a>
<ul class=\"collapse ";
// line 48
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", false, false, true, 48) == $context["key1"])) {
echo " show";
}
echo "\" id=\"nav-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key1"], 48, $this->source), "html", null, true);
echo "\">
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["level1"], "children", [], "any", false, false, true, 49));
foreach ($context['_seq'] as $context["key2"] => $context["level2"]) {
// line 50
echo " <li>
";
// line 51
if ((twig_get_attribute($this->env, $this->source, $context["level2"], "children", [], "any", true, true, true, 51) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["level2"], "children", [], "any", false, false, true, 51)) > 0))) {
// line 52
echo " <a class=\"c-mainNavArea__navItemSubTitle";
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", false, false, true, 52) != $context["key2"])) ? (" collapsed") : (""));
echo "\"
data-bs-toggle=\"collapse\" href=\"#nav-";
// line 53
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key2"], 53, $this->source), "html", null, true);
echo "\"
aria-expanded=\"";
// line 54
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", false, false, true, 54) != $context["key2"])) ? ("true") : ("false"));
echo "\"
aria-controls=\"nav-";
// line 55
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key2"], 55, $this->source), "html", null, true);
echo "\">
<span>";
// line 56
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", false, false, true, 56), 56, $this->source)), "html", null, true);
echo "</span>
</a>
<ul class=\"collapse";
// line 58
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", false, false, true, 58) == $context["key2"])) ? (" show") : (""));
echo "\" id=\"nav-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key2"], 58, $this->source), "html", null, true);
echo "\">
";
// line 59
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["level2"], "children", [], "any", false, false, true, 59));
foreach ($context['_seq'] as $context["key3"] => $context["level3"]) {
// line 60
echo " ";
if (($context["key3"] == "shop_index")) {
// line 61
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 61), "Authority", [], "any", false, false, true, 61), "id", [], "any", false, false, true, 61) == 0)) {
// line 62
echo " <li>
<a href=\"";
// line 63
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", false, false, true, 63), 63, $this->source), ((twig_get_attribute($this->env, $this->source, $context["level3"], "param", [], "any", true, true, true, 63)) ? (twig_get_attribute($this->env, $this->source, $context["level3"], "param", [], "any", false, false, true, 63)) : ([]))), "html", null, true);
echo "\"";
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", false, false, true, 63) == $context["key3"])) ? (" class=\"is-active\"") : (""));
echo ">
<span>";
// line 64
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", false, false, true, 64), 64, $this->source)), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 68
echo " ";
} else {
// line 69
echo " <li>
<a href=\"";
// line 70
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", false, false, true, 70), 70, $this->source), ((twig_get_attribute($this->env, $this->source, $context["level3"], "param", [], "any", true, true, true, 70)) ? (twig_get_attribute($this->env, $this->source, $context["level3"], "param", [], "any", false, false, true, 70)) : ([]))), "html", null, true);
echo "\"";
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", false, false, true, 70) == $context["key3"])) ? (" class=\"is-active\"") : (""));
echo ">
<span>";
// line 71
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", false, false, true, 71), 71, $this->source)), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 75
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key3'], $context['level3'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo " </ul>
";
} else {
// line 78
echo " <a href=\"";
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", false, false, true, 78), 78, $this->source), ((twig_get_attribute($this->env, $this->source, $context["level2"], "param", [], "any", true, true, true, 78)) ? (twig_get_attribute($this->env, $this->source, $context["level2"], "param", [], "any", false, false, true, 78)) : ([]))), "html", null, true);
echo "\"";
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", false, false, true, 78) == $context["key2"])) ? (" class=\"is-active\"") : (""));
echo ">
<span>";
// line 79
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", false, false, true, 79), 79, $this->source)), "html", null, true);
echo "</span>
</a>
";
}
// line 82
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key2'], $context['level2'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </ul>
";
} else {
// line 86
echo " <a class=\"c-mainNavArea__navItemTitle\" href=\"";
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", false, false, true, 86), 86, $this->source), ((twig_get_attribute($this->env, $this->source, $context["level1"], "param", [], "any", true, true, true, 86)) ? (twig_get_attribute($this->env, $this->source, $context["level1"], "param", [], "any", false, false, true, 86)) : ([]))), "html", null, true);
echo "\">
<i class=\"fa ";
// line 87
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["level1"], "icon", [], "any", false, false, true, 87), 87, $this->source), "html", null, true);
echo "\" aria-hidden=\"true\"></i>
<span>";
// line 88
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", false, false, true, 88), 88, $this->source)), "html", null, true);
echo "</span>
</a>
";
}
// line 91
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key1'], $context['level1'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " <!-- 情報 -->
<li class=\"c-mainNavArea__navItem\">
<a class=\"c-mainNavArea__navItemTitle collapsed\" data-bs-toggle=\"collapse\" href=\"#others\" aria-expanded=\"false\"
aria-controls=\"others\">
<i class=\"fa fa-info-circle fa-fw\" aria-hidden=\"true\"></i>
<span>";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info"), "html", null, true);
echo "</span>
</a>
<ul class=\"collapse\" id=\"others\">
<li>
<a href=\"";
// line 102
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", false, false, true, 102), 102, $this->source), "html", null, true);
echo "\" target=\"_blank\">
<span>";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.official_site"), "html", null, true);
echo "</span>
</a>
</li>
<li>
<a href=\"";
// line 107
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", false, false, true, 107), 107, $this->source), "html", null, true);
echo "\" target=\"_blank\">
<span>";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.community"), "html", null, true);
echo "</span>
</a>
</li>
<li>
<a href=\"";
// line 112
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", false, false, true, 112), 112, $this->source), "html", null, true);
echo "\" target=\"_blank\">
<span>";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.document"), "html", null, true);
echo "</span>
</a>
</li>
<li>
<a href=\"";
// line 117
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", false, false, true, 117), 117, $this->source), "html", null, true);
echo "\" target=\"_blank\">
<span>";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.info.manual"), "html", null, true);
echo "</span>
</a>
</li>
</ul>
</li>
</ul>
</nav>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@admin/nav.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
<nav>
{% set Orders = repository('Eccube\\\\Entity\\\\Order').findBy({'OrderStatus': 1}) %}
{% set OrderCount = 0 %}
{% set AuthorityId = app.user.Authority.id %}
{% if AuthorityId == 0 %}
{% set OrderCount = Orders|length %}
{% else %}
{% set UserId = app.user.id %}
{% for Order in Orders %}
{% for Shipping in Order.Shippings %}
{% if Shipping.vendor and Shipping.vendor.id == UserId %}
{% set OrderCount = OrderCount + 1 %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
<ul class=\"c-mainNavArea__nav\">
<!-- ホーム -->
<li class=\"c-mainNavArea__navItem\">
<a class=\"c-mainNavArea__navItemTitle\" href=\"{{ url('admin_homepage') }}\">
<i class=\"fa fa-home fa-fw\" aria-hidden=\"true\"></i>
<span>{{ 'admin.home'|trans }}</span>
</a>
</li>
{% for key1, level1 in eccubeNav %}
<li class=\"c-mainNavArea__navItem\">
{% if level1.children is defined and level1.children|length > 0 %}
<a class=\"c-mainNavArea__navItemTitle{{ active_menus(menus)[0] != key1 ? ' collapsed' }}\"
data-bs-toggle=\"collapse\" href=\"#nav-{{ key1 }}\"
aria-expanded=\"{{ active_menus(menus)[0] == key1 ? 'true' : 'false' }}\"
aria-controls=\"nav-{{ key1 }}\">
<i class=\"fa {{ level1.icon }} fa-fw\" aria-hidden=\"true\"></i>
<span>{{ level1.name|trans }}</span>
{% if level1.name == 'admin.order.order_management' %}
<span class=\"text-light badge rounded-pill bg-danger ms-4\">{{ OrderCount }}</span>
{% endif %}
</a>
<ul class=\"collapse {% if active_menus(menus)[0] == key1 %} show{% endif %}\" id=\"nav-{{ key1 }}\">
{% for key2, level2 in level1.children %}
<li>
{% if level2.children is defined and level2.children|length > 0 %}
<a class=\"c-mainNavArea__navItemSubTitle{{ active_menus(menus)[1] != key2 ? ' collapsed' }}\"
data-bs-toggle=\"collapse\" href=\"#nav-{{ key2 }}\"
aria-expanded=\"{{ active_menus(menus)[1] != key2 ? 'true' : 'false' }}\"
aria-controls=\"nav-{{ key2 }}\">
<span>{{ level2.name|trans }}</span>
</a>
<ul class=\"collapse{{ active_menus(menus)[1] == key2 ? ' show' }}\" id=\"nav-{{ key2 }}\">
{% for key3, level3 in level2.children %}
{% if key3 == \"shop_index\" %}
{% if app.user.Authority.id == 0 %}
<li>
<a href=\"{{ url(level3.url, level3.param is defined ? level3.param : []) }}\"{{ active_menus(menus)[2] == key3 ? ' class=\"is-active\"' }}>
<span>{{ level3.name|trans }}</span>
</a>
</li>
{% endif %}
{% else %}
<li>
<a href=\"{{ url(level3.url, level3.param is defined ? level3.param : []) }}\"{{ active_menus(menus)[2] == key3 ? ' class=\"is-active\"' }}>
<span>{{ level3.name|trans }}</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
<a href=\"{{ url(level2.url, level2.param is defined ? level2.param : []) }}\"{{ active_menus(menus)[1] == key2 ? ' class=\"is-active\"' }}>
<span>{{ level2.name|trans }}</span>
</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% else %}
<a class=\"c-mainNavArea__navItemTitle\" href=\"{{ url(level1.url, level1.param is defined ? level1.param : []) }}\">
<i class=\"fa {{ level1.icon }}\" aria-hidden=\"true\"></i>
<span>{{ level1.name|trans }}</span>
</a>
{% endif %}
</li>
{% endfor %}
<!-- 情報 -->
<li class=\"c-mainNavArea__navItem\">
<a class=\"c-mainNavArea__navItemTitle collapsed\" data-bs-toggle=\"collapse\" href=\"#others\" aria-expanded=\"false\"
aria-controls=\"others\">
<i class=\"fa fa-info-circle fa-fw\" aria-hidden=\"true\"></i>
<span>{{ 'admin.info'|trans }}</span>
</a>
<ul class=\"collapse\" id=\"others\">
<li>
<a href=\"{{ eccube_config.eccube_official_site_url }}\" target=\"_blank\">
<span>{{ 'admin.info.official_site'|trans }}</span>
</a>
</li>
<li>
<a href=\"{{ eccube_config.eccube_community_site_url }}\" target=\"_blank\">
<span>{{ 'admin.info.community'|trans }}</span>
</a>
</li>
<li>
<a href=\"{{ eccube_config.eccube_document_url }}\" target=\"_blank\">
<span>{{ 'admin.info.document'|trans }}</span>
</a>
</li>
<li>
<a href=\"{{ eccube_config.eccube_manual_url }}\" target=\"_blank\">
<span>{{ 'admin.info.manual'|trans }}</span>
</a>
</li>
</ul>
</li>
</ul>
</nav>
", "@admin/nav.twig", "/home/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/admin/nav.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 12, "if" => 15, "for" => 19);
static $filters = array("length" => 16, "escape" => 32, "trans" => 32);
static $functions = array("repository" => 12, "url" => 30, "active_menus" => 38);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['length', 'escape', 'trans'],
['repository', 'url', 'active_menus']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}