var/cache/dev/twig/99/99b65b024aa7451cf6d507707c7b20de.php line 38

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