var/cache/dev/twig/b0/b0d92a3181ef0b28b2238d84a290c69a.php line 54

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. /* Cart/index.twig */
  14. class __TwigTemplate_ea63b42c9ab1a1821140278c4e9466f9 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->blocks = [
  23.             'stylesheet' => [$this, 'block_stylesheet'],
  24.             'main' => [$this, 'block_main'],
  25.         ];
  26.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros = $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cart/index.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cart/index.twig"));
  41.         // line 13
  42.         $context["body_class"] = "cart_page";
  43.         // line 11
  44.         $this->parent = $this->loadTemplate("default_frame.twig", "Cart/index.twig", 11);
  45.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 15
  52.     public function block_stylesheet($context, array $blocks = [])
  53.     {
  54.         $macros = $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  59.         // line 16
  60.         echo "    <link rel=\"stylesheet\" href=\"";
  61.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/cart.css", "user_data"), "html", null, true);
  62.         echo "\">
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 19
  70.     public function block_main($context, array $blocks = [])
  71.     {
  72.         $macros = $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  77.         // line 20
  78.         echo "    <div class=\"ec-role\">
  79.         <div class=\"ec-pageHeader\">
  80.             <h1>";
  81.         // line 22
  82.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ショッピングカート"), "html", null, true);
  83.         echo "</h1>
  84.         </div>
  85.     </div>
  86.     <div class=\"ec-cartRole\">
  87.         <div class=\"ec-cartRole__progress\">
  88.             <ul class=\"ec-progress\">
  89.                 ";
  90.         // line 28
  91.         $context["step"] = 1;
  92.         // line 29
  93.         echo "                <li class=\"ec-progress__item is-complete\">
  94.                     <div class=\"ec-progress__number\">";
  95.         // line 30
  96.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 30, $this->source); })()), 30, $this->source), "html", null, true);
  97.         $context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 30, $this->source); })()) + 1);
  98.         // line 31
  99.         echo "                    </div>
  100.                     <div class=\"ec-progress__label\">カートの<span class=\"common_br\">商品</span></div>
  101.                 </li>
  102.                 ";
  103.         // line 34
  104.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  105.             // line 35
  106.             echo "                    <li class=\"ec-progress__item\">
  107.                         <div class=\"ec-progress__number\">";
  108.             // line 36
  109.             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 36, $this->source); })()), 36, $this->source), "html", null, true);
  110.             $context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 36, $this->source); })()) + 1);
  111.             // line 37
  112.             echo "                        </div>
  113.                         <div class=\"ec-progress__label\">お客様<span class=\"common_br\">情報</span></div>
  114.                     </li>
  115.                 ";
  116.         }
  117.         // line 41
  118.         echo "                <li class=\"ec-progress__item\">
  119.                     <div class=\"ec-progress__number\">";
  120.         // line 42
  121.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 42, $this->source); })()), 42, $this->source), "html", null, true);
  122.         $context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 42, $this->source); })()) + 1);
  123.         // line 43
  124.         echo "                    </div>
  125.                     <div class=\"ec-progress__label\">ご注文<span class=\"common_br\">手続き</span></div>
  126.                 </li>
  127.                 <li class=\"ec-progress__item\">
  128.                     <div class=\"ec-progress__number\">";
  129.         // line 47
  130.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 47, $this->source); })()), 47, $this->source), "html", null, true);
  131.         $context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 47, $this->source); })()) + 1);
  132.         // line 48
  133.         echo "                    </div>
  134.                     <div class=\"ec-progress__label\">ご注文<span class=\"common_br\">内容確認</span></div>
  135.                 </li>
  136.                 <li class=\"ec-progress__item\">
  137.                     <div class=\"ec-progress__number\">";
  138.         // line 52
  139.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 52, $this->source); })()), 52, $this->source), "html", null, true);
  140.         $context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 52, $this->source); })()) + 1);
  141.         // line 53
  142.         echo "                    </div>
  143.                     <div class=\"ec-progress__label\">完了</div>
  144.                 </li>
  145.             </ul>
  146.         </div>
  147.         ";
  148.         // line 58
  149.         $context["productStr"] = 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.', 58, $this->source); })()), "session", [], "any", false, false, true, 58), "flashbag", [], "any", false, false, true, 58), "get", [0 => "eccube.front.request.product"], "method", false, false, true, 58);
  150.         // line 59
  151.         echo "        ";
  152.         $context['_parent'] = $context;
  153.         $context['_seq'] = twig_ensure_traversable(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.', 59, $this->source); })()), "session", [], "any", false, false, true, 59), "flashbag", [], "any", false, false, true, 59), "get", [0 => "eccube.front.request.error"], "method", false, false, true, 59));
  154.         $context['loop'] = [
  155.           'parent' => $context['_parent'],
  156.           'index0' => 0,
  157.           'index'  => 1,
  158.           'first'  => true,
  159.         ];
  160.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  161.             $length = count($context['_seq']);
  162.             $context['loop']['revindex0'] = $length - 1;
  163.             $context['loop']['revindex'] = $length;
  164.             $context['loop']['length'] = $length;
  165.             $context['loop']['last'] = 1 === $length;
  166.         }
  167.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  168.             // line 60
  169.             echo "            ";
  170.             $context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 60);
  171.             // line 61
  172.             echo "            <div class=\"ec-cartRole__error\">
  173.                 <div class=\"ec-alert-warning\">
  174.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  175.             // line 63
  176.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
  177.             echo "\"></div>
  178.                     <div class=\"ec-alert-warning__text\">
  179.                         ";
  180.             // line 65
  181.             if (twig_get_attribute($this->env, $this->source, ($context["productStr"] ?? null), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 65, $this->source); })()), [], "array", true, true, true, 65)) {
  182.                 // line 66
  183.                 echo "                            ";
  184.                 echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 66, $this->source), ["%product%" => twig_get_attribute($this->env, $this->source, (isset($context["productStr"]) || array_key_exists("productStr", $context) ? $context["productStr"] : (function () { throw new RuntimeError('Variable "productStr" does not exist.', 66, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 66, $this->source); })()), [], "array", false, false, true, 66)]), "html", null, true));
  185.                 echo "
  186.                         ";
  187.             } else {
  188.                 // line 68
  189.                 echo "                            ";
  190.                 echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 68, $this->source)), "html", null, true));
  191.                 echo "
  192.                         ";
  193.             }
  194.             // line 70
  195.             echo "                    </div>
  196.                 </div>
  197.             </div>
  198.         ";
  199.             ++$context['loop']['index0'];
  200.             ++$context['loop']['index'];
  201.             $context['loop']['first'] = false;
  202.             if (isset($context['loop']['length'])) {
  203.                 --$context['loop']['revindex0'];
  204.                 --$context['loop']['revindex'];
  205.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  206.             }
  207.         }
  208.         $_parent = $context['_parent'];
  209.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  210.         $context = array_intersect_key($context, $_parent) + $_parent;
  211.         // line 74
  212.         echo "        ";
  213.         $context['_parent'] = $context;
  214.         $context['_seq'] = twig_ensure_traversable(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.', 74, $this->source); })()), "session", [], "any", false, false, true, 74), "flashbag", [], "any", false, false, true, 74), "get", [0 => "eccube.front.cart.error"], "method", false, false, true, 74));
  215.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  216.             // line 75
  217.             echo "            <div class=\"ec-cartRole__error\">
  218.                 <div class=\"ec-alert-warning\">
  219.                     <div class=\"ec-alert-warning__icon\"><img src=\"";
  220.             // line 77
  221.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
  222.             echo "\"></div>
  223.                     <div class=\"ec-alert-warning__text\">
  224.                         ";
  225.             // line 79
  226.             echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 79, $this->source)), "html", null, true));
  227.             echo "
  228.                     </div>
  229.                 </div>
  230.             </div>
  231.         ";
  232.         }
  233.         $_parent = $context['_parent'];
  234.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  235.         $context = array_intersect_key($context, $_parent) + $_parent;
  236.         // line 84
  237.         echo "        ";
  238.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 84, $this->source); })()) > 0)) {
  239.             // line 85
  240.             echo "            ";
  241.             if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 85, $this->source); })())) > 1)) {
  242.                 // line 86
  243.                 echo "                <div class=\"ec-cartRole__error\">
  244.                     <div class=\"ec-alert-warning\">
  245.                         <div class=\"ec-alert-warning__text\">
  246.                             ";
  247.                 // line 89
  248.                 echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html", null, true));
  249.                 echo "
  250.                         </div>
  251.                     </div>
  252.                 </div>
  253.             ";
  254.             }
  255.             // line 94
  256.             echo "            <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
  257.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  258.             echo "\">
  259.                 ";
  260.             // line 95
  261.             $context['_parent'] = $context;
  262.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 95, $this->source); })()));
  263.             $context['loop'] = [
  264.               'parent' => $context['_parent'],
  265.               'index0' => 0,
  266.               'index'  => 1,
  267.               'first'  => true,
  268.             ];
  269.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  270.                 $length = count($context['_seq']);
  271.                 $context['loop']['revindex0'] = $length - 1;
  272.                 $context['loop']['revindex'] = $length;
  273.                 $context['loop']['length'] = $length;
  274.                 $context['loop']['last'] = 1 === $length;
  275.             }
  276.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  277.                 // line 96
  278.                 echo "                    ";
  279.                 $context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 96);
  280.                 // line 97
  281.                 echo "                    ";
  282.                 $context['_parent'] = $context;
  283.                 $context['_seq'] = twig_ensure_traversable(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.', 97, $this->source); })()), "session", [], "any", false, false, true, 97), "flashbag", [], "any", false, false, true, 97), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 97, $this->source); })())) . ".request.error")], "method", false, false, true, 97));
  284.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  285.                     // line 98
  286.                     echo "                        <div class=\"ec-cartRole__error\">
  287.                             <div class=\"ec-alert-warning\">
  288.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  289.                     // line 100
  290.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
  291.                     echo "\"></div>
  292.                                 <div class=\"ec-alert-warning__text\">
  293.                                     ";
  294.                     // line 102
  295.                     echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 102, $this->source)), "html", null, true));
  296.                     echo "
  297.                                 </div>
  298.                             </div>
  299.                         </div>
  300.                     ";
  301.                 }
  302.                 $_parent = $context['_parent'];
  303.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  304.                 $context = array_intersect_key($context, $_parent) + $_parent;
  305.                 // line 107
  306.                 echo "                    <div class=\"ec-cartRole__cart\">
  307.                         <div class=\"ec-cartTable\">
  308.                             ";
  309.                 // line 109
  310.                 $context['_parent'] = $context;
  311.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 109));
  312.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  313.                     // line 110
  314.                     echo "                                ";
  315.                     $context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 110);
  316.                     // line 111
  317.                     echo "                                ";
  318.                     $context["Product"] = twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 111, $this->source); })()), "Product", [], "any", false, false, true, 111);
  319.                     // line 112
  320.                     echo "                                <ul class=\"ec-cartRow\">
  321.                                     <li class=\"ec-cartRow__contentColumn\">
  322.                                         <div class=\"ec-cartRow__img\">
  323.                                             <a target=\"_blank\" href=\"";
  324.                     // line 115
  325.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 115, $this->source); })()), "id", [], "any", false, false, true, 115)]), "html", null, true);
  326.                     echo "\">
  327.                                                 <img src=\"";
  328.                     // line 116
  329.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 116, $this->source); })()), "MainListImage", [], "any", false, false, true, 116), 116, $this->source)), "save_image"), "html", null, true);
  330.                     echo "\" alt=\"";
  331.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 116, $this->source); })()), "name", [], "any", false, false, true, 116), 116, $this->source), "html", null, true);
  332.                     echo "\"/>
  333.                                             </a>
  334.                                         </div>
  335.                                         <div class=\"ec-cartRow__summary\">
  336.                                             <div class=\"cart_inner_wrap01\">
  337.                                                 <div class=\"ec-cartRow__name\">
  338.                                                     <a target=\"_blank\" href=\"";
  339.                     // line 122
  340.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 122, $this->source); })()), "id", [], "any", false, false, true, 122)]), "html", null, true);
  341.                     echo "\">";
  342.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 122, $this->source); })()), "name", [], "any", false, false, true, 122), 122, $this->source), "html", null, true);
  343.                     echo "</a>
  344.                                                     <div>
  345.                                                         ";
  346.                     // line 124
  347.                     if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 124, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 124) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 124, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 124), "id", [], "any", false, false, true, 124))) {
  348.                         // line 125
  349.                         echo "                                                            <p>";
  350.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 125, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 125), "ClassName", [], "any", false, false, true, 125), "name", [], "any", false, false, true, 125), 125, $this->source), "html", null, true);
  351.                         echo ":";
  352.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 125, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 125), 125, $this->source), "html", null, true);
  353.                         echo "</p>
  354.                                                         ";
  355.                     }
  356.                     // line 127
  357.                     echo "                                                        ";
  358.                     if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 127, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 127) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 127, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 127), "id", [], "any", false, false, true, 127))) {
  359.                         // line 128
  360.                         echo "                                                            <p>";
  361.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 128, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 128), "ClassName", [], "any", false, false, true, 128), "name", [], "any", false, false, true, 128), 128, $this->source), "html", null, true);
  362.                         echo ":";
  363.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 128, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 128), 128, $this->source), "html", null, true);
  364.                         echo "</p>
  365.                                                         ";
  366.                     }
  367.                     // line 130
  368.                     echo "                                                    </div>
  369.                                                 </div>
  370.                                                 <div class=\"ec-cartRow__unitPrice\">";
  371.                     // line 132
  372.                     echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, true, 132), 132, $this->source)), "html", null, true);
  373.                     echo "</div>
  374.                                             </div>
  375.                                             <div class=\"ec-cartRow__amount\">";
  376.                     // line 134
  377.                     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 134), 134, $this->source)), "html", null, true);
  378.                     echo "</div>
  379.                                             <div class=\"cart_inner_wrap02\">
  380.                                                 <div class=\"ec-cartRow__amountUpDown\">
  381.                                                     ";
  382.                     // line 137
  383.                     if ((twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 137) > 1)) {
  384.                         // line 138
  385.                         echo "                                                        <a href=\"";
  386.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "down", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 138, $this->source); })()), "id", [], "any", false, false, true, 138)]), "html", null, true);
  387.                         echo "\" ";
  388.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  389.                         echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  390.                                                             <i class=\"fas fa-minus-circle\"></i>
  391.                                                         </a>
  392.                                                     ";
  393.                     } else {
  394.                         // line 142
  395.                         echo "                                                        <div class=\"ec-cartRow__amountDownButtonDisabled\">
  396.                                                             <i class=\"fas fa-minus-circle\"></i>
  397.                                                         </div>
  398.                                                     ";
  399.                     }
  400.                     // line 146
  401.                     echo "                                                    <div class=\"ec-cartRow__amountSP\"><span>数量</span>";
  402.                     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 146), 146, $this->source)), "html", null, true);
  403.                     echo "</div>
  404.                                                     <a href=\"";
  405.                     // line 147
  406.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "up", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 147, $this->source); })()), "id", [], "any", false, false, true, 147)]), "html", null, true);
  407.                     echo "\" ";
  408.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  409.                     echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  410.                                                         <i class=\"fas fa-plus-circle\"></i>
  411.                                                     </a>
  412.                                                 </div>
  413.                                                 <div class=\"ec-cartRow__sutbtotalSP\"><span>";
  414.                     // line 151
  415.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html", null, true);
  416.                     echo "</span>";
  417.                     echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, true, 151), 151, $this->source)), "html", null, true);
  418.                     echo "</div>
  419.                                             </div>
  420.                                             <div class=\"ec-cartRow_delete\">
  421.                                                 <a href=\"";
  422.                     // line 154
  423.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 154, $this->source); })()), "id", [], "any", false, false, true, 154)]), "html", null, true);
  424.                     echo "\" ";
  425.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  426.                     echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  427.                                                     <i class=\"fas fa-times\"></i>
  428.                                                 </a>
  429.                                             </div>
  430.                                         </div>
  431.                                     </li>
  432.                                     <li class=\"ec-cartRow__subtotalColumn\">
  433.                                         <div class=\"ec-cartRow__sutbtotal\">";
  434.                     // line 161
  435.                     echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, true, 161), 161, $this->source)), "html", null, true);
  436.                     echo "</div>
  437.                                     </li>
  438.                                 </ul>
  439.                             ";
  440.                 }
  441.                 $_parent = $context['_parent'];
  442.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  443.                 $context = array_intersect_key($context, $_parent) + $_parent;
  444.                 // line 165
  445.                 echo "                        </div>
  446.                     </div>
  447.                     <div class=\"ec-cartRole__progress\">
  448.                         ";
  449.                 // line 168
  450.                 if ((twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 168, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 168) && twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 168, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 168))) {
  451.                     // line 169
  452.                     echo "                            ";
  453.                     if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 169, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 169, $this->source); })()), [], "array", false, false, true, 169)) {
  454.                         // line 170
  455.                         echo "                                ";
  456.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です!"), "html", null, true);
  457.                         echo "
  458.                             ";
  459.                     } else {
  460.                         // line 172
  461.                         echo "                                ";
  462.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買上げで送料無料になります!", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 172, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 172, $this->source); })()), [], "array", false, false, true, 172), 172, $this->source)), "%quantity%" => twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 172, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 172, $this->source); })()), [], "array", false, false, true, 172), 172, $this->source))]);
  463.                         echo "
  464.                             ";
  465.                     }
  466.                     // line 174
  467.                     echo "                        ";
  468.                 } elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 174, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 174)) {
  469.                     // line 175
  470.                     echo "                            ";
  471.                     if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 175, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 175, $this->source); })()), [], "array", false, false, true, 175)) {
  472.                         // line 176
  473.                         echo "                                ";
  474.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です!"), "html", null, true);
  475.                         echo "
  476.                             ";
  477.                     } else {
  478.                         // line 178
  479.                         echo "                                ";
  480.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと <strong>%price%</strong> のお買上げで送料無料になります!", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 178, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 178, $this->source); })()), [], "array", false, false, true, 178), 178, $this->source))]);
  481.                         echo "
  482.                             ";
  483.                     }
  484.                     // line 180
  485.                     echo "                        ";
  486.                 } elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 180, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 180)) {
  487.                     // line 181
  488.                     echo "                            ";
  489.                     if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 181, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 181, $this->source); })()), [], "array", false, false, true, 181)) {
  490.                         // line 182
  491.                         echo "                                ";
  492.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在送料無料です!"), "html", null, true);
  493.                         echo "
  494.                             ";
  495.                     } else {
  496.                         // line 184
  497.                         echo "                                ";
  498.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("あと「<strong>%quantity%個</strong>」のお買上げで送料無料になります!", ["%quantity%" => twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 184, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 184, $this->source); })()), [], "array", false, false, true, 184), 184, $this->source))]);
  499.                         echo "
  500.                             ";
  501.                     }
  502.                     // line 186
  503.                     echo "                        ";
  504.                 }
  505.                 // line 187
  506.                 echo "                    </div>
  507.                     <div class=\"ec-cartRole__actions\">
  508.                         <div class=\"ec-cartRole__total\">";
  509.                 // line 189
  510.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計"), "html", null, true);
  511.                 echo "<span class=\"ec-cartRole__totalAmount\">";
  512.                 echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "totalPrice", [], "any", false, false, true, 189), 189, $this->source)), "html", null, true);
  513.                 echo "</span>
  514.                         </div>
  515.                         <a class=\"ec-blockBtn--action\" href=\"";
  516.                 // line 191
  517.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_buystep", ["cart_key" => (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 191, $this->source); })())]), "html", null, true);
  518.                 echo "\">";
  519.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html", null, true);
  520.                 echo "</a>
  521.                         ";
  522.                 // line 192
  523.                 if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 192)) {
  524.                     // line 193
  525.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  526.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  527.                     echo "\">";
  528.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
  529.                     echo "</a>
  530.                         ";
  531.                 }
  532.                 // line 195
  533.                 echo "                    </div>
  534.                 ";
  535.                 ++$context['loop']['index0'];
  536.                 ++$context['loop']['index'];
  537.                 $context['loop']['first'] = false;
  538.                 if (isset($context['loop']['length'])) {
  539.                     --$context['loop']['revindex0'];
  540.                     --$context['loop']['revindex'];
  541.                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  542.                 }
  543.             }
  544.             $_parent = $context['_parent'];
  545.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  546.             $context = array_intersect_key($context, $_parent) + $_parent;
  547.             // line 197
  548.             echo "            </form>
  549.         ";
  550.         } else {
  551.             // line 199
  552.             echo "            ";
  553.             $context['_parent'] = $context;
  554.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 199, $this->source); })()));
  555.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  556.                 // line 200
  557.                 echo "                ";
  558.                 $context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 200);
  559.                 // line 201
  560.                 echo "                ";
  561.                 $context['_parent'] = $context;
  562.                 $context['_seq'] = twig_ensure_traversable(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.', 201, $this->source); })()), "session", [], "any", false, false, true, 201), "flashbag", [], "any", false, false, true, 201), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 201, $this->source); })())) . ".request.error")], "method", false, false, true, 201));
  563.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  564.                     // line 202
  565.                     echo "                    <div class=\"ec-cartRole__error\">
  566.                         <div class=\"ec-alert-warning\">
  567.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  568.                     // line 204
  569.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
  570.                     echo "\"></div>
  571.                             <div class=\"ec-alert-warning__text\">
  572.                                 ";
  573.                     // line 206
  574.                     echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 206, $this->source)), "html", null, true));
  575.                     echo "
  576.                             </div>
  577.                         </div>
  578.                     </div>
  579.                 ";
  580.                 }
  581.                 $_parent = $context['_parent'];
  582.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  583.                 $context = array_intersect_key($context, $_parent) + $_parent;
  584.                 // line 211
  585.                 echo "            ";
  586.             }
  587.             $_parent = $context['_parent'];
  588.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  589.             $context = array_intersect_key($context, $_parent) + $_parent;
  590.             // line 212
  591.             echo "            <div class=\"ec-role\">
  592.                 <div class=\"ec-off3Grid\">
  593.                     <div class=\"ec-off3Grid__cell\">
  594.                         <div class=\"ec-alert-warning\">
  595.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  596.             // line 216
  597.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
  598.             echo "\"></div>
  599.                             <div class=\"ec-alert-warning__text\">";
  600.             // line 217
  601.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html", null, true);
  602.             echo "</div>
  603.                         </div>
  604.                     </div>
  605.                 </div>
  606.             </div>
  607.         ";
  608.         }
  609.         // line 223
  610.         echo "    </div>
  611. ";
  612.         
  613.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  614.         
  615.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  616.     }
  617.     public function getTemplateName()
  618.     {
  619.         return "Cart/index.twig";
  620.     }
  621.     public function isTraitable()
  622.     {
  623.         return false;
  624.     }
  625.     public function getDebugInfo()
  626.     {
  627.         return array (  629 => 223,  620 => 217,  616 => 216,  610 => 212,  604 => 211,  593 => 206,  588 => 204,  584 => 202,  579 => 201,  576 => 200,  571 => 199,  567 => 197,  552 => 195,  544 => 193,  542 => 192,  536 => 191,  529 => 189,  525 => 187,  522 => 186,  516 => 184,  510 => 182,  507 => 181,  504 => 180,  498 => 178,  492 => 176,  489 => 175,  486 => 174,  480 => 172,  474 => 170,  471 => 169,  469 => 168,  464 => 165,  454 => 161,  442 => 154,  434 => 151,  425 => 147,  420 => 146,  414 => 142,  404 => 138,  402 => 137,  396 => 134,  391 => 132,  387 => 130,  379 => 128,  376 => 127,  368 => 125,  366 => 124,  359 => 122,  348 => 116,  344 => 115,  339 => 112,  336 => 111,  333 => 110,  329 => 109,  325 => 107,  314 => 102,  309 => 100,  305 => 98,  300 => 97,  297 => 96,  280 => 95,  275 => 94,  267 => 89,  262 => 86,  259 => 85,  256 => 84,  245 => 79,  240 => 77,  236 => 75,  231 => 74,  214 => 70,  208 => 68,  202 => 66,  200 => 65,  195 => 63,  191 => 61,  188 => 60,  170 => 59,  168 => 58,  161 => 53,  158 => 52,  152 => 48,  149 => 47,  143 => 43,  140 => 42,  137 => 41,  131 => 37,  128 => 36,  125 => 35,  123 => 34,  118 => 31,  115 => 30,  112 => 29,  110 => 28,  101 => 22,  97 => 20,  87 => 19,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  628.     }
  629.     public function getSourceContext()
  630.     {
  631.         return new Source("{#
  632. This file is part of EC-CUBE
  633. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  634. http://www.ec-cube.co.jp/
  635. For the full copyright and license information, please view the LICENSE
  636. file that was distributed with this source code.
  637. #}
  638. {% extends 'default_frame.twig' %}
  639. {% set body_class = 'cart_page' %}
  640. {% block stylesheet %}
  641.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/cart.css', 'user_data') }}\">
  642. {% endblock %}
  643. {% block main %}
  644.     <div class=\"ec-role\">
  645.         <div class=\"ec-pageHeader\">
  646.             <h1>{{ 'ショッピングカート'|trans }}</h1>
  647.         </div>
  648.     </div>
  649.     <div class=\"ec-cartRole\">
  650.         <div class=\"ec-cartRole__progress\">
  651.             <ul class=\"ec-progress\">
  652.                 {% set step = 1 %}
  653.                 <li class=\"ec-progress__item is-complete\">
  654.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  655.                     </div>
  656.                     <div class=\"ec-progress__label\">カートの<span class=\"common_br\">商品</span></div>
  657.                 </li>
  658.                 {% if is_granted('ROLE_USER') == false %}
  659.                     <li class=\"ec-progress__item\">
  660.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  661.                         </div>
  662.                         <div class=\"ec-progress__label\">お客様<span class=\"common_br\">情報</span></div>
  663.                     </li>
  664.                 {% endif %}
  665.                 <li class=\"ec-progress__item\">
  666.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  667.                     </div>
  668.                     <div class=\"ec-progress__label\">ご注文<span class=\"common_br\">手続き</span></div>
  669.                 </li>
  670.                 <li class=\"ec-progress__item\">
  671.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  672.                     </div>
  673.                     <div class=\"ec-progress__label\">ご注文<span class=\"common_br\">内容確認</span></div>
  674.                 </li>
  675.                 <li class=\"ec-progress__item\">
  676.                     <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  677.                     </div>
  678.                     <div class=\"ec-progress__label\">完了</div>
  679.                 </li>
  680.             </ul>
  681.         </div>
  682.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  683.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  684.             {% set idx = loop.index0 %}
  685.             <div class=\"ec-cartRole__error\">
  686.                 <div class=\"ec-alert-warning\">
  687.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  688.                     <div class=\"ec-alert-warning__text\">
  689.                         {% if productStr[idx] is defined %}
  690.                             {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  691.                         {% else %}
  692.                             {{ error|trans|nl2br }}
  693.                         {% endif %}
  694.                     </div>
  695.                 </div>
  696.             </div>
  697.         {% endfor %}
  698.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  699.             <div class=\"ec-cartRole__error\">
  700.                 <div class=\"ec-alert-warning\">
  701.                     <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  702.                     <div class=\"ec-alert-warning__text\">
  703.                         {{ error|trans|nl2br }}
  704.                     </div>
  705.                 </div>
  706.             </div>
  707.         {% endfor %}
  708.         {% if totalQuantity > 0 %}
  709.             {% if Carts|length > 1 %}
  710.                 <div class=\"ec-cartRole__error\">
  711.                     <div class=\"ec-alert-warning\">
  712.                         <div class=\"ec-alert-warning__text\">
  713.                             {{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}
  714.                         </div>
  715.                     </div>
  716.                 </div>
  717.             {% endif %}
  718.             <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
  719.                 {% for CartIndex,Cart in Carts %}
  720.                     {% set cartKey = Cart.cart_key %}
  721.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  722.                         <div class=\"ec-cartRole__error\">
  723.                             <div class=\"ec-alert-warning\">
  724.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  725.                                 <div class=\"ec-alert-warning__text\">
  726.                                     {{ error|trans|nl2br }}
  727.                                 </div>
  728.                             </div>
  729.                         </div>
  730.                     {% endfor %}
  731.                     <div class=\"ec-cartRole__cart\">
  732.                         <div class=\"ec-cartTable\">
  733.                             {% for CartItem in Cart.CartItems %}
  734.                                 {% set ProductClass = CartItem.ProductClass %}
  735.                                 {% set Product = ProductClass.Product %}
  736.                                 <ul class=\"ec-cartRow\">
  737.                                     <li class=\"ec-cartRow__contentColumn\">
  738.                                         <div class=\"ec-cartRow__img\">
  739.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  740.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  741.                                             </a>
  742.                                         </div>
  743.                                         <div class=\"ec-cartRow__summary\">
  744.                                             <div class=\"cart_inner_wrap01\">
  745.                                                 <div class=\"ec-cartRow__name\">
  746.                                                     <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  747.                                                     <div>
  748.                                                         {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  749.                                                             <p>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}</p>
  750.                                                         {% endif %}
  751.                                                         {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  752.                                                             <p>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}</p>
  753.                                                         {% endif %}
  754.                                                     </div>
  755.                                                 </div>
  756.                                                 <div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
  757.                                             </div>
  758.                                             <div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
  759.                                             <div class=\"cart_inner_wrap02\">
  760.                                                 <div class=\"ec-cartRow__amountUpDown\">
  761.                                                     {% if CartItem.quantity > 1 %}
  762.                                                         <a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  763.                                                             <i class=\"fas fa-minus-circle\"></i>
  764.                                                         </a>
  765.                                                     {% else %}
  766.                                                         <div class=\"ec-cartRow__amountDownButtonDisabled\">
  767.                                                             <i class=\"fas fa-minus-circle\"></i>
  768.                                                         </div>
  769.                                                     {% endif %}
  770.                                                     <div class=\"ec-cartRow__amountSP\"><span>数量</span>{{ CartItem.quantity|number_format }}</div>
  771.                                                     <a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
  772.                                                         <i class=\"fas fa-plus-circle\"></i>
  773.                                                     </a>
  774.                                                 </div>
  775.                                                 <div class=\"ec-cartRow__sutbtotalSP\"><span>{{ '小計'|trans }}</span>{{ CartItem.total_price|price }}</div>
  776.                                             </div>
  777.                                             <div class=\"ec-cartRow_delete\">
  778.                                                 <a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  779.                                                     <i class=\"fas fa-times\"></i>
  780.                                                 </a>
  781.                                             </div>
  782.                                         </div>
  783.                                     </li>
  784.                                     <li class=\"ec-cartRow__subtotalColumn\">
  785.                                         <div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
  786.                                     </li>
  787.                                 </ul>
  788.                             {% endfor %}
  789.                         </div>
  790.                     </div>
  791.                     <div class=\"ec-cartRole__progress\">
  792.                         {% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
  793.                             {% if is_delivery_free[cartKey] %}
  794.                                 {{ '現在送料無料です!'|trans }}
  795.                             {% else %}
  796.                                 {{ 'あと「<strong>%price%</strong>」または「<strong>%quantity%個</strong>」のお買上げで送料無料になります!'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
  797.                             {% endif %}
  798.                         {% elseif BaseInfo.delivery_free_amount %}
  799.                             {% if is_delivery_free[cartKey] %}
  800.                                 {{ '現在送料無料です!'|trans }}
  801.                             {% else %}
  802.                                 {{ 'あと <strong>%price%</strong> のお買上げで送料無料になります!'|trans({ '%price%': least[cartKey]|price })|raw }}
  803.                             {% endif %}
  804.                         {% elseif BaseInfo.delivery_free_quantity %}
  805.                             {% if is_delivery_free[cartKey] %}
  806.                                 {{ '現在送料無料です!'|trans }}
  807.                             {% else %}
  808.                                 {{ 'あと「<strong>%quantity%個</strong>」のお買上げで送料無料になります!'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
  809.                             {% endif %}
  810.                         {% endif %}
  811.                     </div>
  812.                     <div class=\"ec-cartRole__actions\">
  813.                         <div class=\"ec-cartRole__total\">{{ '合計'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
  814.                         </div>
  815.                         <a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  816.                         {% if loop.last %}
  817.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  818.                         {% endif %}
  819.                     </div>
  820.                 {% endfor %}
  821.             </form>
  822.         {% else %}
  823.             {% for CartIndex,Cart in Carts %}
  824.                 {% set cartKey = Cart.cart_key %}
  825.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  826.                     <div class=\"ec-cartRole__error\">
  827.                         <div class=\"ec-alert-warning\">
  828.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  829.                             <div class=\"ec-alert-warning__text\">
  830.                                 {{ error|trans|nl2br }}
  831.                             </div>
  832.                         </div>
  833.                     </div>
  834.                 {% endfor %}
  835.             {% endfor %}
  836.             <div class=\"ec-role\">
  837.                 <div class=\"ec-off3Grid\">
  838.                     <div class=\"ec-off3Grid__cell\">
  839.                         <div class=\"ec-alert-warning\">
  840.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  841.                             <div class=\"ec-alert-warning__text\">{{ '現在カート内に商品はございません。'|trans }}</div>
  842.                         </div>
  843.                     </div>
  844.                 </div>
  845.             </div>
  846.         {% endif %}
  847.     </div>
  848. {% endblock %}", "Cart/index.twig", "/home/unibo-test/www/html/app/template/default/Cart/index.twig");
  849.     }
  850.     
  851.     public function checkSecurity()
  852.     {
  853.         static $tags = array("set" => 13, "if" => 34, "for" => 59);
  854.         static $filters = array("escape" => 16, "trans" => 22, "nl2br" => 66, "length" => 85, "no_image_product" => 116, "price" => 132, "number_format" => 134, "raw" => 172);
  855.         static $functions = array("asset" => 16, "is_granted" => 34, "url" => 94, "csrf_token_for_anchor" => 138, "path" => 191);
  856.         try {
  857.             $this->sandbox->checkSecurity(
  858.                 ['set', 'if', 'for'],
  859.                 ['escape', 'trans', 'nl2br', 'length', 'no_image_product', 'price', 'number_format', 'raw'],
  860.                 ['asset', 'is_granted', 'url', 'csrf_token_for_anchor', 'path'],
  861.                 $this->source
  862.             );
  863.         } catch (SecurityError $e) {
  864.             $e->setSourceContext($this->source);
  865.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  866.                 $e->setTemplateLine($tags[$e->getTagName()]);
  867.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  868.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  869.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  870.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  871.             }
  872.             throw $e;
  873.         }
  874.     }
  875. }