var/cache/dev/twig/53/53da205bc59b88332b80605954a409c1.php line 50

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/cart_listing.html.twig */
  14. class __TwigTemplate_fd32b536f0ce923dec05cda9d808980a extends 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 4
  31.         return "layouts/layout.html.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/cart_listing.html.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/cart_listing.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""cart/cart_listing.html.twig"4);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 6
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 7
  56.         echo "
  57.     <div class=\"py-5 bg-light\">
  58.         <div class=\"container\">
  59.             <div class=\"row\">
  60.                 <div class=\"col-md-4 order-md-2 mb-4\">
  61.                     ";
  62.         // line 13
  63.         $this->loadTemplate("cart/shared/order_summary.html.twig""cart/cart_listing.html.twig"13)->display($context);
  64.         // line 14
  65.         echo "
  66.                     <form method=\"post\" action=\"";
  67.         // line 15
  68.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-cart-apply-voucher");
  69.         echo "\" class=\"card p-2 mb-4\">
  70.                         ";
  71.         // line 17
  72.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'17$this->source); })()), "pricingManagerTokenInformationDetails", [], "any"falsefalsetrue17)) > 0)) {
  73.             // line 18
  74.             echo "
  75.                             <ul class=\"list-group pb-3\">
  76.                             ";
  77.             // line 21
  78.             $context['_parent'] = $context;
  79.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'21$this->source); })()), "pricingManagerTokenInformationDetails", [], "any"falsefalsetrue21));
  80.             foreach ($context['_seq'] as $context["_key"] => $context["codeInfo"]) {
  81.                 // line 22
  82.                 echo "
  83.                                 <li class=\"list-group-item\">
  84.                                     <div class=\"row\">
  85.                                         <div class=\"col-10\" style=\"padding-top: 4px\">
  86.                                             <div>";
  87.                 // line 26
  88.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["codeInfo"], "tokenCode", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  89.                 echo "</div>
  90.                                             ";
  91.                 // line 27
  92.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["codeInfo"], "errorMessages", [], "any"falsefalsetrue27)) > 0)) {
  93.                     // line 28
  94.                     echo "                                                <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> ";
  95.                     echo twig_escape_filter($this->envtwig_join_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["codeInfo"], "errorMessages", [], "any"falsefalsetrue28), 28$this->source), ", "), "html"nulltrue);
  96.                     echo "</small>
  97.                                             ";
  98.                 }
  99.                 // line 30
  100.                 echo "                                            ";
  101.                 if (twig_get_attribute($this->env$this->source$context["codeInfo"], "noValidRule", [], "any"falsefalsetrue30)) {
  102.                     // line 31
  103.                     echo "                                                <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> ";
  104.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.voucher-no-rule"), "html"nulltrue);
  105.                     echo "</small>
  106.                                             ";
  107.                 }
  108.                 // line 33
  109.                 echo "                                        </div>
  110.                                         <div class=\"col-2\">
  111.                                             <a href=\"";
  112.                 // line 36
  113.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-cart-remove-voucher", ["voucher-code" => twig_get_attribute($this->env$this->source$context["codeInfo"], "tokenCode", [], "any"falsefalsetrue36)]), "html"nulltrue);
  114.                 echo "\" class=\"btn btn-outline-danger btn-sm\">
  115.                                                 <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  116.                                             </a>
  117.                                         </div>
  118.                                     </div>
  119.                                 </li>
  120.                             ";
  121.             }
  122.             $_parent $context['_parent'];
  123.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['codeInfo'], $context['_parent'], $context['loop']);
  124.             $context array_intersect_key($context$_parent) + $_parent;
  125.             // line 44
  126.             echo "
  127.                             </ul>
  128.                         ";
  129.         }
  130.         // line 48
  131.         echo "
  132.                         <div class=\"input-group\">
  133.                             <input name=\"voucher-code\" type=\"text\" class=\"form-control\" placeholder=\"";
  134.         // line 51
  135.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.voucher-code"), "html"nulltrue);
  136.         echo "\">
  137.                             <div class=\"input-group-append\">
  138.                                 <button type=\"submit\" class=\"btn btn-secondary\">";
  139.         // line 53
  140.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.apply-voucher-code"), "html"nulltrue);
  141.         echo "</button>
  142.                             </div>
  143.                         </div>
  144.                     </form>
  145.                     <div class=\"card p-2\">
  146.                         <a href=\"";
  147.         // line 59
  148.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-checkout-address");
  149.         echo "\" class=\"btn btn-success btn-lg\">";
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.start-checkout"), "html"nulltrue);
  151.         echo "</a>
  152.                     </div>
  153.                 </div>
  154.                 <div class=\"col-md-8 order-md-1\">
  155.                     <h4 class=\"mb-3\">";
  156.         // line 63
  157.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.title"), "html"nulltrue);
  158.         echo "</h4>
  159.                     <div class=\"card shopping-cart\">
  160.                         <form method=\"post\">
  161.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  162.         // line 66
  163.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("cartListing"), "html"nulltrue);
  164.         echo "\">
  165.                             <div class=\"card-body\">
  166.                                 ";
  167.         // line 69
  168.         $context['_parent'] = $context;
  169.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'69$this->source); })()), "items", [], "any"falsefalsetrue69));
  170.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  171.             // line 70
  172.             echo "
  173.                                     ";
  174.             // line 71
  175.             $context["product"] = twig_get_attribute($this->env$this->source$context["item"], "product", [], "any"falsefalsetrue71);
  176.             // line 72
  177.             echo "
  178.                                     <div class=\"row\">
  179.                                         <div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
  180.                                             ";
  181.             // line 76
  182.             if ( !twig_test_empty(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.'76$this->source); })()), "mainImage", [], "any"falsefalsetrue76))) {
  183.                 // line 77
  184.                 echo "
  185.                                                 ";
  186.                 // line 78
  187.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'78$this->source); })()), "mainImage", [], "any"falsefalsetrue78), "thumbnail", ["cart"], "method"falsefalsetrue78), "html", [["imgAttributes" => ["class" => "img-responsive""style" => "width:100%; height: auto"]]], "method"falsefalsetrue78), 78$this->source);
  188.                 echo "
  189.                                             ";
  190.             }
  191.             // line 81
  192.             echo "
  193.                                         </div>
  194.                                         <div class=\"col-8 text-sm-left col-md-5 text-md-left col-md-4\">
  195.                                             <h6 style=\"padding-top: 3px\" class=\"product-name\">";
  196.             // line 84
  197.             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.'84$this->source); })()), "oSName", [], "any"falsefalsetrue84), 84$this->source), "html"nulltrue);
  198.             echo "</h6>
  199.                                             ";
  200.             // line 85
  201.             if ($this->env->getTest('instanceof')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'85$this->source); })()), "App\\Model\\Product\\Car")) {
  202.                 // line 86
  203.                 echo "                                                <p class=\"text-muted small\">";
  204.                 echo $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.'86$this->source); })()), "subText", [], "any"falsefalsetrue86), 86$this->source);
  205.                 echo "</p>
  206.                                             ";
  207.             } elseif (( !twig_test_empty(twig_get_attribute($this->env$this->source,             // line 87
  208. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'87$this->source); })()), "saleInformation", [], "any"falsefalsetrue87)) && twig_get_attribute($this->env$this->sourcetwig_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.'87$this->source); })()), "saleInformation", [], "any"falsefalsetrue87), "saleInformation", [], "any"falsefalsetrue87))) {
  209.                 // line 88
  210.                 echo "                                                <p class=\"text-muted small\">";
  211.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html"nulltrue);
  212.                 echo ": ";
  213.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'88$this->source); })()), "saleInformation", [], "any"falsefalsetrue88), "saleInformation", [], "any"falsefalsetrue88), "condition", [], "any"falsefalsetrue88), 88$this->source))), "html"nulltrue);
  214.                 echo "</p>
  215.                                             ";
  216.             }
  217.             // line 90
  218.             echo "
  219.                                             ";
  220.             // line 91
  221.             $context["priceInfo"] = twig_get_attribute($this->env$this->source$context["item"], "priceInfo", [], "any"falsefalsetrue91);
  222.             // line 92
  223.             echo "
  224.                                             ";
  225.             // line 93
  226.             if (twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'93$this->source); })()), "rules", [], "any"falsefalsetrue93)) {
  227.                 // line 94
  228.                 echo "
  229.                                                 <div class=\"alert alert-success mb-1\" role=\"alert\">
  230.                                                     <p class=\"extra-small small mb-2\"><strong>";
  231.                 // line 97
  232.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.your-benefits"), "html"nulltrue);
  233.                 echo "</strong></p>
  234.                                                     <ul class=\"list-unstyled mb-0 extra-small\">
  235.                                                         ";
  236.                 // line 100
  237.                 $context['_parent'] = $context;
  238.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo"$context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.'100$this->source); })()), "rules", [], "any"falsefalsetrue100));
  239.                 foreach ($context['_seq'] as $context["_key"] => $context["rule"]) {
  240.                     // line 101
  241.                     echo "                                                            <li>";
  242.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["rule"], "label", [], "any"falsefalsetrue101), 101$this->source), "html"nulltrue);
  243.                     echo "</li>
  244.                                                         ";
  245.                 }
  246.                 $_parent $context['_parent'];
  247.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rule'], $context['_parent'], $context['loop']);
  248.                 $context array_intersect_key($context$_parent) + $_parent;
  249.                 // line 103
  250.                 echo "                                                    </ul>
  251.                                                 </div>
  252.                                             ";
  253.             }
  254.             // line 108
  255.             echo "
  256.                                         </div>
  257.                                         <div class=\"col-12 col-sm-12 text-sm-center col-md-5 text-md-right row pt-md-0 pt-2 ml-0 ml-md-n1\">
  258.                                             <div class=\"col-7 col-sm-7 col-md-8 text-right pr-0\" style=\"padding-top: 3px\">
  259.                                                 <h6>";
  260.             // line 114
  261.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["item"], "price", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  262.             echo "  <span class=\"text-muted\">x</span></h6>
  263.                                             </div>
  264.                                             <div class=\"col-3 col-sm-3 col-md-3\">
  265.                                                 <div class=\"quantity\">
  266.                                                     <input name=\"items[";
  267.             // line 118
  268.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["item"], "itemKey", [], "any"falsefalsetrue118), 118$this->source), "html"nulltrue);
  269.             echo "]\" type=\"number\" step=\"1\" max=\"99\" min=\"1\" value=\"";
  270.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["item"], "count", [], "any"falsefalsetrue118), 118$this->source), "html"nulltrue);
  271.             echo "\" title=\"Qty\" class=\"qty w-100\" size=\"4\">
  272.                                                 </div>
  273.                                             </div>
  274.                                             <div class=\"col-2 col-sm-2 col-md-1 text-right px-md-0\">
  275.                                                 <a href=\"";
  276.             // line 122
  277.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-remove-from-cart", ["id" => twig_get_attribute($this->env$this->source$context["item"], "itemKey", [], "any"falsefalsetrue122)]), "html"nulltrue);
  278.             echo "\" class=\"btn btn-outline-danger btn-sm\">
  279.                                                     <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  280.                                                 </a>
  281.                                             </div>
  282.                                         </div>
  283.                                     </div>
  284.                                     <hr>
  285.                                 ";
  286.         }
  287.         $_parent $context['_parent'];
  288.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  289.         $context array_intersect_key($context$_parent) + $_parent;
  290.         // line 131
  291.         echo "
  292.                                 <div class=\"text-right\">
  293.                                     <button type=\"submit\" class=\"btn btn-outline-secondary text-right\">
  294.                                         ";
  295.         // line 134
  296.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.update-cart"), "html"nulltrue);
  297.         echo "
  298.                                     </button>
  299.                                 </div>
  300.                             </div>
  301.                         </form>
  302.                     </div>
  303.                     ";
  304.         // line 141
  305.         if (twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'141$this->source); })()), "giftItems", [], "any"falsefalsetrue141)) {
  306.             // line 142
  307.             echo "                        <h6 class=\"mt-5 mb-0\">Gifts</h6>
  308.                         <div class=\"card shopping-cart\">
  309.                             <div class=\"card-body\">
  310.                                 ";
  311.             // line 146
  312.             $context['_parent'] = $context;
  313.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'146$this->source); })()), "giftItems", [], "any"falsefalsetrue146));
  314.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  315.                 // line 147
  316.                 echo "
  317.                                     ";
  318.                 // line 148
  319.                 $context["product"] = twig_get_attribute($this->env$this->source$context["item"], "product", [], "any"falsefalsetrue148);
  320.                 // line 149
  321.                 echo "
  322.                                     <div class=\"row\">
  323.                                         <div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
  324.                                             ";
  325.                 // line 153
  326.                 if (twig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainImage", [], "any"truetruetrue153)) {
  327.                     // line 154
  328.                     echo "
  329.                                                 ";
  330.                     // line 155
  331.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'155$this->source); })()), "mainImage", [], "any"falsefalsetrue155), "thumbnail", ["cart"], "method"falsefalsetrue155), "html", [["imgAttributes" => ["class" => "img-responsive""style" => "width:100%; height: auto"]]], "method"falsefalsetrue155), 155$this->source);
  332.                     echo "
  333.                                             ";
  334.                 }
  335.                 // line 158
  336.                 echo "
  337.                                         </div>
  338.                                         <div class=\"col-8 text-sm-left text-md-left\">
  339.                                             <h6 style=\"padding-top: 3px\" class=\"product-name\">";
  340.                 // line 161
  341.                 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.'161$this->source); })()), "oSName", [], "any"falsefalsetrue161), 161$this->source), "html"nulltrue);
  342.                 echo "</h6>
  343.                                             ";
  344.                 // line 162
  345.                 if ($this->env->getTest('instanceof')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'162$this->source); })()), "App\\Model\\Product\\Car")) {
  346.                     // line 163
  347.                     echo "                                                <p class=\"text-muted small\">";
  348.                     echo $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.'163$this->source); })()), "subText", [], "any"falsefalsetrue163), 163$this->source);
  349.                     echo "</p>
  350.                                             ";
  351.                 } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 164
  352. (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'164$this->source); })()), "saleInformation", [], "any"falsefalsetrue164), "saleInformation", [], "any"falsefalsetrue164)) {
  353.                     // line 165
  354.                     echo "                                                <p class=\"text-muted small\">";
  355.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html"nulltrue);
  356.                     echo ": ";
  357.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'165$this->source); })()), "saleInformation", [], "any"falsefalsetrue165), "saleInformation", [], "any"falsefalsetrue165), "condition", [], "any"falsefalsetrue165), 165$this->source))), "html"nulltrue);
  358.                     echo "</p>
  359.                                             ";
  360.                 }
  361.                 // line 167
  362.                 echo "
  363.                                         </div>
  364.                                     </div>
  365.                                 ";
  366.             }
  367.             $_parent $context['_parent'];
  368.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  369.             $context array_intersect_key($context$_parent) + $_parent;
  370.             // line 171
  371.             echo "                            </div>
  372.                         </div>
  373.                     ";
  374.         }
  375.         // line 174
  376.         echo "                </div>
  377.             </div>
  378.         </div>
  379.     </div>
  380. ";
  381.         
  382.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  383.         
  384.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  385.     }
  386.     /**
  387.      * @codeCoverageIgnore
  388.      */
  389.     public function getTemplateName()
  390.     {
  391.         return "cart/cart_listing.html.twig";
  392.     }
  393.     /**
  394.      * @codeCoverageIgnore
  395.      */
  396.     public function isTraitable()
  397.     {
  398.         return false;
  399.     }
  400.     /**
  401.      * @codeCoverageIgnore
  402.      */
  403.     public function getDebugInfo()
  404.     {
  405.         return array (  412 => 174,  407 => 171,  398 => 167,  390 => 165,  388 => 164,  383 => 163,  381 => 162,  377 => 161,  372 => 158,  366 => 155,  363 => 154,  361 => 153,  355 => 149,  353 => 148,  350 => 147,  346 => 146,  340 => 142,  338 => 141,  328 => 134,  323 => 131,  308 => 122,  299 => 118,  292 => 114,  284 => 108,  277 => 103,  268 => 101,  264 => 100,  258 => 97,  253 => 94,  251 => 93,  248 => 92,  246 => 91,  243 => 90,  235 => 88,  233 => 87,  228 => 86,  226 => 85,  222 => 84,  217 => 81,  211 => 78,  208 => 77,  206 => 76,  200 => 72,  198 => 71,  195 => 70,  191 => 69,  185 => 66,  179 => 63,  170 => 59,  161 => 53,  156 => 51,  151 => 48,  145 => 44,  131 => 36,  126 => 33,  120 => 31,  117 => 30,  111 => 28,  109 => 27,  105 => 26,  99 => 22,  95 => 21,  90 => 18,  88 => 17,  83 => 15,  80 => 14,  78 => 13,  70 => 7,  60 => 6,  37 => 4,);
  406.     }
  407.     public function getSourceContext()
  408.     {
  409.         return new Source("{# @var cart \\Pimcore\\Bundle\\EcommerceFrameworkBundle\\CartManager\\CartInterface #}
  410. {# @var product \\App\\Model\\Product\\AbstractProduct #}
  411. {% extends 'layouts/layout.html.twig' %}
  412. {% block content %}
  413.     <div class=\"py-5 bg-light\">
  414.         <div class=\"container\">
  415.             <div class=\"row\">
  416.                 <div class=\"col-md-4 order-md-2 mb-4\">
  417.                     {% include 'cart/shared/order_summary.html.twig' %}
  418.                     <form method=\"post\" action=\"{{ path('shop-cart-apply-voucher') }}\" class=\"card p-2 mb-4\">
  419.                         {% if(cart.pricingManagerTokenInformationDetails | length > 0) %}
  420.                             <ul class=\"list-group pb-3\">
  421.                             {% for codeInfo in cart.pricingManagerTokenInformationDetails %}
  422.                                 <li class=\"list-group-item\">
  423.                                     <div class=\"row\">
  424.                                         <div class=\"col-10\" style=\"padding-top: 4px\">
  425.                                             <div>{{ codeInfo.tokenCode }}</div>
  426.                                             {% if (codeInfo.errorMessages | length) > 0 %}
  427.                                                 <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> {{ codeInfo.errorMessages | join(', ') }}</small>
  428.                                             {% endif %}
  429.                                             {% if (codeInfo.noValidRule) %}
  430.                                                 <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> {{ 'cart.voucher-no-rule' | trans }}</small>
  431.                                             {% endif %}
  432.                                         </div>
  433.                                         <div class=\"col-2\">
  434.                                             <a href=\"{{ path('shop-cart-remove-voucher', {'voucher-code': codeInfo.tokenCode}) }}\" class=\"btn btn-outline-danger btn-sm\">
  435.                                                 <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  436.                                             </a>
  437.                                         </div>
  438.                                     </div>
  439.                                 </li>
  440.                             {% endfor %}
  441.                             </ul>
  442.                         {% endif %}
  443.                         <div class=\"input-group\">
  444.                             <input name=\"voucher-code\" type=\"text\" class=\"form-control\" placeholder=\"{{ 'cart.voucher-code' | trans }}\">
  445.                             <div class=\"input-group-append\">
  446.                                 <button type=\"submit\" class=\"btn btn-secondary\">{{ 'cart.apply-voucher-code' | trans }}</button>
  447.                             </div>
  448.                         </div>
  449.                     </form>
  450.                     <div class=\"card p-2\">
  451.                         <a href=\"{{ path('shop-checkout-address') }}\" class=\"btn btn-success btn-lg\">{{ 'cart.start-checkout' | trans }}</a>
  452.                     </div>
  453.                 </div>
  454.                 <div class=\"col-md-8 order-md-1\">
  455.                     <h4 class=\"mb-3\">{{ 'cart.title' | trans }}</h4>
  456.                     <div class=\"card shopping-cart\">
  457.                         <form method=\"post\">
  458.                             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('cartListing') }}\">
  459.                             <div class=\"card-body\">
  460.                                 {% for item in cart.items %}
  461.                                     {% set product = item.product %}
  462.                                     <div class=\"row\">
  463.                                         <div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
  464.                                             {% if(product.mainImage is not empty) %}
  465.                                                 {{ product.mainImage.thumbnail('cart').html({imgAttributes: {class: 'img-responsive', style: 'width:100%; height: auto'}}) | raw }}
  466.                                             {% endif %}
  467.                                         </div>
  468.                                         <div class=\"col-8 text-sm-left col-md-5 text-md-left col-md-4\">
  469.                                             <h6 style=\"padding-top: 3px\" class=\"product-name\">{{ product.oSName }}</h6>
  470.                                             {% if( product is instanceof('App\\\\Model\\\\Product\\\\Car')) %}
  471.                                                 <p class=\"text-muted small\">{{ product.subText | raw }}</p>
  472.                                             {% elseif(product.saleInformation is not empty and product.saleInformation.saleInformation)  %}
  473.                                                 <p class=\"text-muted small\">{{ 'general.condition' | trans }}: {{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans }}</p>
  474.                                             {% endif %}
  475.                                             {% set priceInfo = item.priceInfo %}
  476.                                             {% if(priceInfo.rules) %}
  477.                                                 <div class=\"alert alert-success mb-1\" role=\"alert\">
  478.                                                     <p class=\"extra-small small mb-2\"><strong>{{ 'general.your-benefits' | trans }}</strong></p>
  479.                                                     <ul class=\"list-unstyled mb-0 extra-small\">
  480.                                                         {% for rule in priceInfo.rules %}
  481.                                                             <li>{{ rule.label }}</li>
  482.                                                         {% endfor %}
  483.                                                     </ul>
  484.                                                 </div>
  485.                                             {% endif %}
  486.                                         </div>
  487.                                         <div class=\"col-12 col-sm-12 text-sm-center col-md-5 text-md-right row pt-md-0 pt-2 ml-0 ml-md-n1\">
  488.                                             <div class=\"col-7 col-sm-7 col-md-8 text-right pr-0\" style=\"padding-top: 3px\">
  489.                                                 <h6>{{ item.price }}  <span class=\"text-muted\">x</span></h6>
  490.                                             </div>
  491.                                             <div class=\"col-3 col-sm-3 col-md-3\">
  492.                                                 <div class=\"quantity\">
  493.                                                     <input name=\"items[{{ item.itemKey }}]\" type=\"number\" step=\"1\" max=\"99\" min=\"1\" value=\"{{ item.count }}\" title=\"Qty\" class=\"qty w-100\" size=\"4\">
  494.                                                 </div>
  495.                                             </div>
  496.                                             <div class=\"col-2 col-sm-2 col-md-1 text-right px-md-0\">
  497.                                                 <a href=\"{{ path('shop-remove-from-cart', {id: item.itemKey}) }}\" class=\"btn btn-outline-danger btn-sm\">
  498.                                                     <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  499.                                                 </a>
  500.                                             </div>
  501.                                         </div>
  502.                                     </div>
  503.                                     <hr>
  504.                                 {% endfor %}
  505.                                 <div class=\"text-right\">
  506.                                     <button type=\"submit\" class=\"btn btn-outline-secondary text-right\">
  507.                                         {{ 'cart.update-cart' | trans }}
  508.                                     </button>
  509.                                 </div>
  510.                             </div>
  511.                         </form>
  512.                     </div>
  513.                     {% if(cart.giftItems) %}
  514.                         <h6 class=\"mt-5 mb-0\">Gifts</h6>
  515.                         <div class=\"card shopping-cart\">
  516.                             <div class=\"card-body\">
  517.                                 {% for item in cart.giftItems %}
  518.                                     {% set product = item.product %}
  519.                                     <div class=\"row\">
  520.                                         <div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
  521.                                             {% if(product.mainImage is defined) %}
  522.                                                 {{ product.mainImage.thumbnail('cart').html({imgAttributes: {class: 'img-responsive', style: 'width:100%; height: auto'}}) | raw }}
  523.                                             {% endif %}
  524.                                         </div>
  525.                                         <div class=\"col-8 text-sm-left text-md-left\">
  526.                                             <h6 style=\"padding-top: 3px\" class=\"product-name\">{{ product.oSName }}</h6>
  527.                                             {% if( product is instanceof('App\\\\Model\\\\Product\\\\Car')) %}
  528.                                                 <p class=\"text-muted small\">{{ product.subText | raw }}</p>
  529.                                             {% elseif(product.saleInformation.saleInformation)  %}
  530.                                                 <p class=\"text-muted small\">{{ 'general.condition' | trans }}: {{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans }}</p>
  531.                                             {% endif %}
  532.                                         </div>
  533.                                     </div>
  534.                                 {% endfor %}
  535.                             </div>
  536.                         </div>
  537.                     {% endif %}
  538.                 </div>
  539.             </div>
  540.         </div>
  541.     </div>
  542. {% endblock %}""cart/cart_listing.html.twig""/var/www/html/templates/cart/cart_listing.html.twig");
  543.     }
  544.     
  545.     public function checkSecurity()
  546.     {
  547.         static $tags = array("include" => 13"if" => 17"for" => 21"set" => 71);
  548.         static $filters = array("length" => 17"escape" => 26"join" => 28"trans" => 31"raw" => 78);
  549.         static $functions = array("path" => 15"csrf_token" => 66);
  550.         try {
  551.             $this->sandbox->checkSecurity(
  552.                 ['include''if''for''set'],
  553.                 ['length''escape''join''trans''raw'],
  554.                 ['path''csrf_token']
  555.             );
  556.         } catch (SecurityError $e) {
  557.             $e->setSourceContext($this->source);
  558.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  559.                 $e->setTemplateLine($tags[$e->getTagName()]);
  560.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  561.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  562.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  563.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  564.             }
  565.             throw $e;
  566.         }
  567.     }
  568. }