var/cache/dev/twig/40/4035a0ab2c294022b187b66863afb418.php line 53

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