var/cache/dev/twig/72/7237b90cdbf99d30f2a1b4c1066b3ccf.php line 40

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_72920ea1705c475fda3e545ea29cb59c 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cart/index.twig"));
  40.         // line 13
  41.         $context["body_class"] = "cart_page";
  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 15
  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 16
  59.         echo "
  60.     <div class=\"ec-role\">
  61.         <div class=\"order-navi\">
  62.             <div class=\"ec-pageHeader\">
  63.                 <h1>";
  64.         // line 20
  65.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カゴの商品"), "html"nulltrue);
  66.         echo "</h1>
  67.             </div>
  68.             <div class=\"ec-cartRole__progress\">
  69.                 <ul class=\"ec-progress\">
  70.                     ";
  71.         // line 24
  72.         $context["step"] = 1;
  73.         // line 25
  74.         echo "                    <li class=\"ec-progress__item is-complete\">
  75.                         <div class=\"ec-progress__number\">";
  76.         // line 26
  77.         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.'26$this->source); })()), 26$this->source), "html"nulltrue);
  78.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'26$this->source); })()) + 1);
  79.         // line 27
  80.         echo "                        </div>
  81.                         <div class=\"ec-progress__label\">";
  82.         // line 28
  83.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品一覧"), "html"nulltrue);
  84.         echo "
  85.                         </div>
  86.                     </li>
  87.                     ";
  88.         // line 31
  89.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  90.             // line 32
  91.             echo "                        <li class=\"ec-progress__item\">
  92.                             <div class=\"ec-progress__number\">";
  93.             // line 33
  94.             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.'33$this->source); })()), 33$this->source), "html"nulltrue);
  95.             $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'33$this->source); })()) + 1);
  96.             // line 34
  97.             echo "                            </div>
  98.                             <div class=\"ec-progress__label\">";
  99.             // line 35
  100.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お客様情報"), "html"nulltrue);
  101.             echo "
  102.                             </div>
  103.                         </li>
  104.                     ";
  105.         }
  106.         // line 39
  107.         echo "                    <li class=\"ec-progress__item\">
  108.                         <div class=\"ec-progress__number\">";
  109.         // line 40
  110.         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.'40$this->source); })()), 40$this->source), "html"nulltrue);
  111.         $context["step"] = ((isset($context["step"]) || array_key_exists("step"$context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.'40$this->source); })()) + 1);
  112.         // line 41
  113.         echo "                        </div>
  114.                         <div class=\"ec-progress__label\">";
  115.         // line 42
  116.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文手続き"), "html"nulltrue);
  117.         echo "
  118.                         </div>
  119.                     </li>
  120.                     <li class=\"ec-progress__item\">
  121.                         <div class=\"ec-progress__number\">";
  122.         // line 46
  123.         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.'46$this->source); })()), 46$this->source), "html"nulltrue);
  124.         $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);
  125.         // line 47
  126.         echo "                        </div>
  127.                         <div class=\"ec-progress__label\">";
  128.         // line 48
  129.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文内容確認"), "html"nulltrue);
  130.         echo "
  131.                         </div>
  132.                     </li>
  133.                     <li class=\"ec-progress__item\">
  134.                         <div class=\"ec-progress__number\">";
  135.         // line 52
  136.         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"nulltrue);
  137.         $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);
  138.         // line 53
  139.         echo "                        </div>
  140.                         <div class=\"ec-progress__label\">";
  141.         // line 54
  142.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("完了"), "html"nulltrue);
  143.         echo "
  144.                         </div>
  145.                     </li>
  146.                 </ul>
  147.             </div>
  148.         </div>
  149.     </div>
  150.     <div class=\"ec-cartRole order-content\">
  151.         <div class=\"content-order\">
  152.         ";
  153.         // line 63
  154.         $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.'63$this->source); })()), "session", [], "any"falsefalsetrue63), "flashbag", [], "any"falsefalsetrue63), "get", [=> "eccube.front.request.product"], "method"falsefalsetrue63);
  155.         // line 64
  156.         echo "        ";
  157.         $context['_parent'] = $context;
  158.         $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.'64$this->source); })()), "session", [], "any"falsefalsetrue64), "flashbag", [], "any"falsefalsetrue64), "get", [=> "eccube.front.request.error"], "method"falsefalsetrue64));
  159.         $context['loop'] = [
  160.           'parent' => $context['_parent'],
  161.           'index0' => 0,
  162.           'index'  => 1,
  163.           'first'  => true,
  164.         ];
  165.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  166.             $length count($context['_seq']);
  167.             $context['loop']['revindex0'] = $length 1;
  168.             $context['loop']['revindex'] = $length;
  169.             $context['loop']['length'] = $length;
  170.             $context['loop']['last'] = === $length;
  171.         }
  172.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  173.             // line 65
  174.             echo "            ";
  175.             $context["idx"] = twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue65);
  176.             // line 66
  177.             echo "            <p class=\"cart-error__block\">
  178.                 ";
  179.             // line 67
  180.             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.'67$this->source); })()), [], "array"truetruetrue67)) {
  181.                 // line 68
  182.                 echo "                    ";
  183.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 68$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.'68$this->source); })()), (isset($context["idx"]) || array_key_exists("idx"$context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.'68$this->source); })()), [], "array"falsefalsetrue68)]), "html"nulltrue));
  184.                 echo "
  185.                 ";
  186.             } else {
  187.                 // line 70
  188.                 echo "                    ";
  189.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 70$this->source)), "html"nulltrue));
  190.                 echo "
  191.                 ";
  192.             }
  193.             // line 72
  194.             echo "            </p>
  195.         ";
  196.             ++$context['loop']['index0'];
  197.             ++$context['loop']['index'];
  198.             $context['loop']['first'] = false;
  199.             if (isset($context['loop']['length'])) {
  200.                 --$context['loop']['revindex0'];
  201.                 --$context['loop']['revindex'];
  202.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  203.             }
  204.         }
  205.         $_parent $context['_parent'];
  206.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  207.         $context array_intersect_key($context$_parent) + $_parent;
  208.         // line 74
  209.         echo "        ";
  210.         $context['_parent'] = $context;
  211.         $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.'74$this->source); })()), "session", [], "any"falsefalsetrue74), "flashbag", [], "any"falsefalsetrue74), "get", [=> "eccube.front.cart.error"], "method"falsefalsetrue74));
  212.         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  213.             // line 75
  214.             echo "            <p class=\"cart-error__block\">";
  215.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 75$this->source)), "html"nulltrue));
  216.             echo "</p>
  217.         ";
  218.         }
  219.         $_parent $context['_parent'];
  220.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  221.         $context array_intersect_key($context$_parent) + $_parent;
  222.         // line 77
  223.         echo "        ";
  224.         if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity"$context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.'77$this->source); })()) > 0)) {
  225.             // line 78
  226.             echo "            <p class=\"total-price\">";
  227.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品の合計金額は「<span class=\"price-number\">%price%</span>」です。", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed((isset($context["totalPrice"]) || array_key_exists("totalPrice"$context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.'78$this->source); })()), 78$this->source))]);
  228.             echo "</p>
  229.             ";
  230.             // line 79
  231.             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.'79$this->source); })())) > 1)) {
  232.                 // line 80
  233.                 echo "                <p class=\"cart-error\">";
  234.                 echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同時購入できない商品がカートに含まれています。"), "html"nulltrue));
  235.                 echo "</p>
  236.             ";
  237.             }
  238.             // line 82
  239.             echo "
  240.             <form name=\"form\" id=\"form_cart\" method=\"post\" action=\"";
  241.             // line 83
  242.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  243.             echo "\">
  244.                 ";
  245.             // line 85
  246.             $context['_parent'] = $context;
  247.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'85$this->source); })()));
  248.             $context['loop'] = [
  249.               'parent' => $context['_parent'],
  250.               'index0' => 0,
  251.               'index'  => 1,
  252.               'first'  => true,
  253.             ];
  254.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  255.                 $length count($context['_seq']);
  256.                 $context['loop']['revindex0'] = $length 1;
  257.                 $context['loop']['revindex'] = $length;
  258.                 $context['loop']['length'] = $length;
  259.                 $context['loop']['last'] = === $length;
  260.             }
  261.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  262.                 // line 86
  263.                 echo "                    ";
  264.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue86);
  265.                 // line 87
  266.                 echo "                    ";
  267.                 $context['_parent'] = $context;
  268.                 $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.'87$this->source); })()), "session", [], "any"falsefalsetrue87), "flashbag", [], "any"falsefalsetrue87), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'87$this->source); })())) . ".request.error")], "method"falsefalsetrue87));
  269.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  270.                     // line 88
  271.                     echo "                        <p class=\"cart-error__block\">";
  272.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 88$this->source)), "html"nulltrue));
  273.                     echo "</p>
  274.                     ";
  275.                 }
  276.                 $_parent $context['_parent'];
  277.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  278.                 $context array_intersect_key($context$_parent) + $_parent;
  279.                 // line 90
  280.                 echo "
  281.                     <div class=\"content-detail\">
  282.                         <ul class=\"detail-order__list\">
  283.                             ";
  284.                 // line 93
  285.                 $context['_parent'] = $context;
  286.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Cart"], "CartItems", [], "any"falsefalsetrue93));
  287.                 foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
  288.                     // line 94
  289.                     echo "                                ";
  290.                     $context["ProductClass"] = twig_get_attribute($this->env$this->source$context["CartItem"], "ProductClass", [], "any"falsefalsetrue94);
  291.                     // line 95
  292.                     echo "                                ";
  293.                     $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.'95$this->source); })()), "Product", [], "any"falsefalsetrue95);
  294.                     // line 96
  295.                     echo "                                <li class=\"detail-order__item\">
  296.                                     <a class=\"button-circle btn-destructive\" href=\"";
  297.                     // line 97
  298.                     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.'97$this->source); })()), "id", [], "any"falsefalsetrue97)]), "html"nulltrue);
  299.                     echo "\" ";
  300.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  301.                     echo " data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  302.                                         <img src=\"";
  303.                     // line 98
  304.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html"nulltrue);
  305.                     echo "\" alt=\"delete\">
  306.                                     </a>
  307.                                     <div class=\"order-item__item\">
  308.                                         <div class=\"order-item__img\">
  309.                                             <a target=\"_blank\" href=\"";
  310.                     // line 102
  311.                     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.'102$this->source); })()), "id", [], "any"falsefalsetrue102)]), "html"nulltrue);
  312.                     echo "\">
  313.                                                 <img src=\"";
  314.                     // line 103
  315.                     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.'103$this->source); })()), "MainListImage", [], "any"falsefalsetrue103), 103$this->source)), "save_image"), "html"nulltrue);
  316.                     echo "\" alt=\"";
  317.                     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.'103$this->source); })()), "name", [], "any"falsefalsetrue103), 103$this->source), "html"nulltrue);
  318.                     echo "\"/>
  319.                                             </a>
  320.                                         </div>
  321.                                         <dl class=\"order-item__detail\">
  322.                                             <dt>
  323.                                                 <a target=\"_blank\" href=\"";
  324.                     // line 108
  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.'108$this->source); })()), "id", [], "any"falsefalsetrue108)]), "html"nulltrue);
  326.                     echo "\">";
  327.                     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.'108$this->source); })()), "name", [], "any"falsefalsetrue108), 108$this->source), "html"nulltrue);
  328.                     echo "</a>
  329.                                                 ";
  330.                     // line 109
  331.                     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.'109$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue109) && 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.'109$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue109), "id", [], "any"falsefalsetrue109))) {
  332.                         // line 110
  333.                         echo "                                                    <br>";
  334.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'110$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue110), "ClassName", [], "any"falsefalsetrue110), "name", [], "any"falsefalsetrue110), 110$this->source), "html"nulltrue);
  335.                         echo ":";
  336.                         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.'110$this->source); })()), "ClassCategory1", [], "any"falsefalsetrue110), 110$this->source), "html"nulltrue);
  337.                         echo "
  338.                                                 ";
  339.                     }
  340.                     // line 112
  341.                     echo "                                                ";
  342.                     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.'112$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue112) && 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.'112$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue112), "id", [], "any"falsefalsetrue112))) {
  343.                         // line 113
  344.                         echo "                                                    <br>";
  345.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'113$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue113), "ClassName", [], "any"falsefalsetrue113), "name", [], "any"falsefalsetrue113), 113$this->source), "html"nulltrue);
  346.                         echo ":";
  347.                         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.'113$this->source); })()), "ClassCategory2", [], "any"falsefalsetrue113), 113$this->source), "html"nulltrue);
  348.                         echo "
  349.                                                 ";
  350.                     }
  351.                     // line 115
  352.                     echo "                                            </dt>
  353.                                             <dd>";
  354.                     // line 116
  355.                     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"falsefalsetrue116), 116$this->source)), "html"nulltrue);
  356.                     echo "</dd>
  357.                                         </dl>
  358.                                     </div>
  359.                                     <dl class=\"order-item__quantity\">
  360.                                         <dt>";
  361.                     // line 120
  362.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  363.                     echo "</dt>
  364.                                         <dd>
  365.                                             <div class=\"change-quantity\">
  366.                                                 ";
  367.                     // line 123
  368.                     if ((twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue123) > 1)) {
  369.                         // line 124
  370.                         echo "                                                    <a href=\"";
  371.                         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.'124$this->source); })()), "id", [], "any"falsefalsetrue124)]), "html"nulltrue);
  372.                         echo "\" ";
  373.                         echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  374.                         echo " class=\"load-overlay\" data-method=\"put\" data-confirm=\"false\">-</a>
  375.                                                 ";
  376.                     } else {
  377.                         // line 126
  378.                         echo "                                                    <span class=\"btn-disabled\">-</span>
  379.                                                 ";
  380.                     }
  381.                     // line 128
  382.                     echo "                                            </div>
  383.                                             <span class=\"current-quantity\">";
  384.                     // line 129
  385.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CartItem"], "quantity", [], "any"falsefalsetrue129), 129$this->source)), "html"nulltrue);
  386.                     echo "</span>
  387.                                             <div class=\"change-quantity\">
  388.                                                 <a href=\"";
  389.                     // line 131
  390.                     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.'131$this->source); })()), "id", [], "any"falsefalsetrue131)]), "html"nulltrue);
  391.                     echo "\" ";
  392.                     echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
  393.                     echo " class=\"load-overlay\" data-method=\"put\" data-confirm=\"false\">+</a>
  394.                                             </div>
  395.                                         </dd>
  396.                                     </dl>
  397.                                     <dl class=\"order-item__subtotal\">
  398.                                         <dt>";
  399.                     // line 136
  400.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("小計"), "html"nulltrue);
  401.                     echo "</dt>
  402.                                         <dd>";
  403.                     // line 137
  404.                     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"falsefalsetrue137), 137$this->source)), "html"nulltrue);
  405.                     echo "</dd>
  406.                                     </dl>
  407.                                 </li>
  408.                             ";
  409.                 }
  410.                 $_parent $context['_parent'];
  411.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
  412.                 $context array_intersect_key($context$_parent) + $_parent;
  413.                 // line 141
  414.                 echo "                        </ul>
  415.                     </div>
  416.                     <dl class=\"total-amount\">
  417.                         <dt>";
  418.                 // line 144
  419.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("合計"), "html"nulltrue);
  420.                 echo "</dt>
  421.                         <dd>";
  422.                 // line 145
  423.                 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"falsefalsetrue145), 145$this->source)), "html"nulltrue);
  424.                 echo "<span class=\"tax-label\">(税・送料込み)</span></dd>
  425.                     </dl>
  426.                     <div class=\"form-unit__actions\">
  427.                         <a class=\"ec-blockBtn--action\" href=\"";
  428.                 // line 148
  429.                 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.'148$this->source); })())]), "html"nulltrue);
  430.                 echo "\">";
  431.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("レジに進む"), "html"nulltrue);
  432.                 echo "</a>
  433.                         ";
  434.                 // line 149
  435.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue149)) {
  436.                     // line 150
  437.                     echo "                            <a class=\"ec-blockBtn--cancel\" href=\"";
  438.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  439.                     echo "\">";
  440.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  441.                     echo "</a>
  442.                         ";
  443.                 }
  444.                 // line 152
  445.                 echo "                    </div>
  446.                 ";
  447.                 ++$context['loop']['index0'];
  448.                 ++$context['loop']['index'];
  449.                 $context['loop']['first'] = false;
  450.                 if (isset($context['loop']['length'])) {
  451.                     --$context['loop']['revindex0'];
  452.                     --$context['loop']['revindex'];
  453.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  454.                 }
  455.             }
  456.             $_parent $context['_parent'];
  457.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  458.             $context array_intersect_key($context$_parent) + $_parent;
  459.             // line 154
  460.             echo "            </form>
  461.         ";
  462.         } else {
  463.             // line 156
  464.             echo "            ";
  465.             $context['_parent'] = $context;
  466.             $context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts"$context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.'156$this->source); })()));
  467.             foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
  468.                 // line 157
  469.                 echo "                ";
  470.                 $context["cartKey"] = twig_get_attribute($this->env$this->source$context["Cart"], "cart_key", [], "any"falsefalsetrue157);
  471.                 // line 158
  472.                 echo "                ";
  473.                 $context['_parent'] = $context;
  474.                 $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.'158$this->source); })()), "session", [], "any"falsefalsetrue158), "flashbag", [], "any"falsefalsetrue158), "get", [=> (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey"$context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.'158$this->source); })())) . ".request.error")], "method"falsefalsetrue158));
  475.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  476.                     // line 159
  477.                     echo "                    <div class=\"ec-cartRole__error\">
  478.                         <div class=\"ec-alert-warning\">
  479.                             <div class=\"ec-alert-warning__icon\"><img src=\"";
  480.                     // line 161
  481.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  482.                     echo "\"></div>
  483.                             <div class=\"ec-alert-warning__text\">
  484.                                 ";
  485.                     // line 163
  486.                     echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 163$this->source)), "html"nulltrue));
  487.                     echo "
  488.                             </div>
  489.                         </div>
  490.                     </div>
  491.                 ";
  492.                 }
  493.                 $_parent $context['_parent'];
  494.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  495.                 $context array_intersect_key($context$_parent) + $_parent;
  496.                 // line 168
  497.                 echo "            ";
  498.             }
  499.             $_parent $context['_parent'];
  500.             unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
  501.             $context array_intersect_key($context$_parent) + $_parent;
  502.             // line 169
  503.             echo "            <p class=\"cart-error__block\">";
  504.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在カート内に商品はございません。"), "html"nulltrue);
  505.             echo "</p>
  506.         ";
  507.         }
  508.         // line 171
  509.         echo "        </div>
  510.     </div>
  511. ";
  512.         
  513.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  514.         
  515.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  516.     }
  517.     public function getTemplateName()
  518.     {
  519.         return "Cart/index.twig";
  520.     }
  521.     public function isTraitable()
  522.     {
  523.         return false;
  524.     }
  525.     public function getDebugInfo()
  526.     {
  527.         return array (  524 => 171,  518 => 169,  512 => 168,  501 => 163,  496 => 161,  492 => 159,  487 => 158,  484 => 157,  479 => 156,  475 => 154,  460 => 152,  452 => 150,  450 => 149,  444 => 148,  438 => 145,  434 => 144,  429 => 141,  419 => 137,  415 => 136,  405 => 131,  400 => 129,  397 => 128,  393 => 126,  385 => 124,  383 => 123,  377 => 120,  370 => 116,  367 => 115,  359 => 113,  356 => 112,  348 => 110,  346 => 109,  340 => 108,  330 => 103,  326 => 102,  319 => 98,  313 => 97,  310 => 96,  307 => 95,  304 => 94,  300 => 93,  295 => 90,  286 => 88,  281 => 87,  278 => 86,  261 => 85,  256 => 83,  253 => 82,  247 => 80,  245 => 79,  240 => 78,  237 => 77,  228 => 75,  223 => 74,  208 => 72,  202 => 70,  196 => 68,  194 => 67,  191 => 66,  188 => 65,  170 => 64,  168 => 63,  156 => 54,  153 => 53,  150 => 52,  143 => 48,  140 => 47,  137 => 46,  130 => 42,  127 => 41,  124 => 40,  121 => 39,  114 => 35,  111 => 34,  108 => 33,  105 => 32,  103 => 31,  97 => 28,  94 => 27,  91 => 26,  88 => 25,  86 => 24,  79 => 20,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  528.     }
  529.     public function getSourceContext()
  530.     {
  531.         return new Source("{#
  532. This file is part of EC-CUBE
  533. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  534. http://www.ec-cube.co.jp/
  535. For the full copyright and license information, please view the LICENSE
  536. file that was distributed with this source code.
  537. #}
  538. {% extends 'default_frame.twig' %}
  539. {% set body_class = 'cart_page' %}
  540. {% block main %}
  541.     <div class=\"ec-role\">
  542.         <div class=\"order-navi\">
  543.             <div class=\"ec-pageHeader\">
  544.                 <h1>{{ 'カゴの商品'|trans }}</h1>
  545.             </div>
  546.             <div class=\"ec-cartRole__progress\">
  547.                 <ul class=\"ec-progress\">
  548.                     {% set step = 1 %}
  549.                     <li class=\"ec-progress__item is-complete\">
  550.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  551.                         </div>
  552.                         <div class=\"ec-progress__label\">{{ '商品一覧'|trans }}
  553.                         </div>
  554.                     </li>
  555.                     {% if is_granted('ROLE_USER') == false %}
  556.                         <li class=\"ec-progress__item\">
  557.                             <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  558.                             </div>
  559.                             <div class=\"ec-progress__label\">{{ 'お客様情報'|trans }}
  560.                             </div>
  561.                         </li>
  562.                     {% endif %}
  563.                     <li class=\"ec-progress__item\">
  564.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  565.                         </div>
  566.                         <div class=\"ec-progress__label\">{{ 'ご注文手続き'|trans }}
  567.                         </div>
  568.                     </li>
  569.                     <li class=\"ec-progress__item\">
  570.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  571.                         </div>
  572.                         <div class=\"ec-progress__label\">{{ 'ご注文内容確認'|trans }}
  573.                         </div>
  574.                     </li>
  575.                     <li class=\"ec-progress__item\">
  576.                         <div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
  577.                         </div>
  578.                         <div class=\"ec-progress__label\">{{ '完了'|trans }}
  579.                         </div>
  580.                     </li>
  581.                 </ul>
  582.             </div>
  583.         </div>
  584.     </div>
  585.     <div class=\"ec-cartRole order-content\">
  586.         <div class=\"content-order\">
  587.         {% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
  588.         {% for error in app.session.flashbag.get('eccube.front.request.error') %}
  589.             {% set idx = loop.index0 %}
  590.             <p class=\"cart-error__block\">
  591.                 {% if productStr[idx] is defined %}
  592.                     {{ error|trans({'%product%':productStr[idx]})|nl2br }}
  593.                 {% else %}
  594.                     {{ error|trans|nl2br }}
  595.                 {% endif %}
  596.             </p>
  597.         {% endfor %}
  598.         {% for error in app.session.flashbag.get('eccube.front.cart.error') %}
  599.             <p class=\"cart-error__block\">{{ error|trans|nl2br }}</p>
  600.         {% endfor %}
  601.         {% if totalQuantity > 0 %}
  602.             <p class=\"total-price\">{{ '商品の合計金額は「<span class=\"price-number\">%price%</span>」です。'|trans({ '%price%': totalPrice|price })|raw }}</p>
  603.             {% if Carts|length > 1 %}
  604.                 <p class=\"cart-error\">{{ '同時購入できない商品がカートに含まれています。'|trans|nl2br }}</p>
  605.             {% endif %}
  606.             <form name=\"form\" id=\"form_cart\" method=\"post\" action=\"{{ url('cart') }}\">
  607.                 {% for CartIndex,Cart in Carts %}
  608.                     {% set cartKey = Cart.cart_key %}
  609.                     {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  610.                         <p class=\"cart-error__block\">{{ error|trans|nl2br }}</p>
  611.                     {% endfor %}
  612.                     <div class=\"content-detail\">
  613.                         <ul class=\"detail-order__list\">
  614.                             {% for CartItem in Cart.CartItems %}
  615.                                 {% set ProductClass = CartItem.ProductClass %}
  616.                                 {% set Product = ProductClass.Product %}
  617.                                 <li class=\"detail-order__item\">
  618.                                     <a class=\"button-circle btn-destructive\" href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
  619.                                         <img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
  620.                                     </a>
  621.                                     <div class=\"order-item__item\">
  622.                                         <div class=\"order-item__img\">
  623.                                             <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
  624.                                                 <img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
  625.                                             </a>
  626.                                         </div>
  627.                                         <dl class=\"order-item__detail\">
  628.                                             <dt>
  629.                                                 <a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
  630.                                                 {% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
  631.                                                     <br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
  632.                                                 {% endif %}
  633.                                                 {% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
  634.                                                     <br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
  635.                                                 {% endif %}
  636.                                             </dt>
  637.                                             <dd>{{ CartItem.price|price }}</dd>
  638.                                         </dl>
  639.                                     </div>
  640.                                     <dl class=\"order-item__quantity\">
  641.                                         <dt>{{ '数量'|trans }}</dt>
  642.                                         <dd>
  643.                                             <div class=\"change-quantity\">
  644.                                                 {% if CartItem.quantity > 1 %}
  645.                                                     <a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"load-overlay\" data-method=\"put\" data-confirm=\"false\">-</a>
  646.                                                 {% else %}
  647.                                                     <span class=\"btn-disabled\">-</span>
  648.                                                 {% endif %}
  649.                                             </div>
  650.                                             <span class=\"current-quantity\">{{ CartItem.quantity|number_format }}</span>
  651.                                             <div class=\"change-quantity\">
  652.                                                 <a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"load-overlay\" data-method=\"put\" data-confirm=\"false\">+</a>
  653.                                             </div>
  654.                                         </dd>
  655.                                     </dl>
  656.                                     <dl class=\"order-item__subtotal\">
  657.                                         <dt>{{ '小計'|trans }}</dt>
  658.                                         <dd>{{ CartItem.total_price|price }}</dd>
  659.                                     </dl>
  660.                                 </li>
  661.                             {% endfor %}
  662.                         </ul>
  663.                     </div>
  664.                     <dl class=\"total-amount\">
  665.                         <dt>{{ '合計'|trans }}</dt>
  666.                         <dd>{{ Cart.totalPrice|price }}<span class=\"tax-label\">(税・送料込み)</span></dd>
  667.                     </dl>
  668.                     <div class=\"form-unit__actions\">
  669.                         <a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'レジに進む'|trans }}</a>
  670.                         {% if loop.last %}
  671.                             <a class=\"ec-blockBtn--cancel\" href=\"{{ path('homepage') }}\">{{ 'お買い物を続ける'|trans }}</a>
  672.                         {% endif %}
  673.                     </div>
  674.                 {% endfor %}
  675.             </form>
  676.         {% else %}
  677.             {% for CartIndex,Cart in Carts %}
  678.                 {% set cartKey = Cart.cart_key %}
  679.                 {% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
  680.                     <div class=\"ec-cartRole__error\">
  681.                         <div class=\"ec-alert-warning\">
  682.                             <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
  683.                             <div class=\"ec-alert-warning__text\">
  684.                                 {{ error|trans|nl2br }}
  685.                             </div>
  686.                         </div>
  687.                     </div>
  688.                 {% endfor %}
  689.             {% endfor %}
  690.             <p class=\"cart-error__block\">{{ '現在カート内に商品はございません。'|trans }}</p>
  691.         {% endif %}
  692.         </div>
  693.     </div>
  694. {% endblock %}
  695. ""Cart/index.twig""/home/xs362797/magamar.jp/public_html/app/template/magamar/Cart/index.twig");
  696.     }
  697.     
  698.     public function checkSecurity()
  699.     {
  700.         static $tags = array("set" => 13"if" => 31"for" => 64);
  701.         static $filters = array("escape" => 20"trans" => 20"nl2br" => 68"raw" => 78"price" => 78"length" => 79"no_image_product" => 103"number_format" => 129);
  702.         static $functions = array("is_granted" => 31"url" => 83"csrf_token_for_anchor" => 97"asset" => 98"path" => 148);
  703.         try {
  704.             $this->sandbox->checkSecurity(
  705.                 ['set''if''for'],
  706.                 ['escape''trans''nl2br''raw''price''length''no_image_product''number_format'],
  707.                 ['is_granted''url''csrf_token_for_anchor''asset''path']
  708.             );
  709.         } catch (SecurityError $e) {
  710.             $e->setSourceContext($this->source);
  711.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  712.                 $e->setTemplateLine($tags[$e->getTagName()]);
  713.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  714.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  715.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  716.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  717.             }
  718.             throw $e;
  719.         }
  720.     }
  721. }