var/cache/dev/twig/62/62115bab59eae3a8a32c991c3253844a.php line 35

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/shared/order_summary.html.twig */
  14. class __TwigTemplate_49aee5a72cc3cdb27d4b597620f374c1 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart/shared/order_summary.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart/shared/order_summary.html.twig"));
  35.         // line 1
  36.         echo "<h4 class=\"d-flex justify-content-between align-items-center mb-3\">
  37.     <span class=\"\">";
  38.         // line 2
  39.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.summary"), "html"nulltrue);
  40.         echo "</span>
  41.     <span class=\"badge badge-secondary badge-pill\">";
  42.         // line 3
  43.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'3$this->source); })()), "itemAmount", [], "any"falsefalsetrue3), 3$this->source), "html"nulltrue);
  44.         echo "</span>
  45. </h4>
  46. <ul class=\"list-group mb-3\">
  47.     <li class=\"list-group-item d-flex justify-content-between\">
  48.         <div>
  49.             <p class=\"mb-0\"><strong class=\"my-0\">";
  50.         // line 8
  51.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.products"), "html"nulltrue);
  52.         echo "</strong></p>
  53.             <small class=\"text-muted\">
  54.                 ";
  55.         // line 11
  56.         $context['_parent'] = $context;
  57.         $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.'11$this->source); })()), "items", [], "any"falsefalsetrue11));
  58.         foreach ($context['_seq'] as $context["_key"] => $context["cartItem"]) {
  59.             // line 12
  60.             echo "
  61.                     <div>";
  62.             // line 13
  63.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["cartItem"], "name", [], "any"falsefalsetrue13), 13$this->source), "html"nulltrue);
  64.             echo "</div>
  65.                 ";
  66.         }
  67.         $_parent $context['_parent'];
  68.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cartItem'], $context['_parent'], $context['loop']);
  69.         $context array_intersect_key($context$_parent) + $_parent;
  70.         // line 16
  71.         echo "
  72.             </small>
  73.         </div>
  74.         <span class=\"text-muted text-nowrap text-right\">";
  75.         // line 19
  76.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'19$this->source); })()), "priceCalculator", [], "any"falsefalsetrue19), "subTotal", [], "any"falsefalsetrue19), 19$this->source), "html"nulltrue);
  77.         echo "</span>
  78.     </li>
  79.     ";
  80.         // line 22
  81.         $context['_parent'] = $context;
  82.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'22$this->source); })()), "priceCalculator", [], "any"falsefalsetrue22), "priceModifications", [], "any"falsefalsetrue22));
  83.         foreach ($context['_seq'] as $context["name"] => $context["modification"]) {
  84.             // line 23
  85.             echo "
  86.         <li class=\"list-group-item d-flex justify-content-between\">
  87.             <div>
  88.                 <strong class=\"my-0\">
  89.                     ";
  90.             // line 27
  91.             if (twig_get_attribute($this->env$this->source$context["modification"], "description", [], "any"falsefalsetrue27)) {
  92.                 // line 28
  93.                 echo "                        ";
  94.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["modification"], "description", [], "any"falsefalsetrue28), 28$this->source), "html"nulltrue);
  95.                 echo "
  96.                     ";
  97.             } else {
  98.                 // line 30
  99.                 echo "                        ";
  100.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["name"], 30$this->source), "html"nulltrue);
  101.                 echo "
  102.                     ";
  103.             }
  104.             // line 32
  105.             echo "                </strong>
  106.             </div>
  107.             <span class=\"text-muted text-nowrap text-right\">";
  108.             // line 34
  109.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["modification"], 34$this->source), "html"nulltrue);
  110.             echo "</span>
  111.         </li>
  112.     ";
  113.         }
  114.         $_parent $context['_parent'];
  115.         unset($context['_seq'], $context['_iterated'], $context['name'], $context['modification'], $context['_parent'], $context['loop']);
  116.         $context array_intersect_key($context$_parent) + $_parent;
  117.         // line 39
  118.         echo "
  119.     <li class=\"list-group-item d-flex justify-content-between\" style=\"border-top: 2px solid\">
  120.         <h6><span>";
  121.         // line 41
  122.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.totalprice"), "html"nulltrue);
  123.         echo "</span></h6>
  124.         <h6 class=\"text-nowrap text-right\">";
  125.         // line 42
  126.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'42$this->source); })()), "priceCalculator", [], "any"falsefalsetrue42), "grandTotal", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue);
  127.         echo "</h6>
  128.     </li>
  129. </ul>";
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.     }
  135.     /**
  136.      * @codeCoverageIgnore
  137.      */
  138.     public function getTemplateName()
  139.     {
  140.         return "cart/shared/order_summary.html.twig";
  141.     }
  142.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     /**
  150.      * @codeCoverageIgnore
  151.      */
  152.     public function getDebugInfo()
  153.     {
  154.         return array (  140 => 42,  136 => 41,  132 => 39,  121 => 34,  117 => 32,  111 => 30,  105 => 28,  103 => 27,  97 => 23,  93 => 22,  87 => 19,  82 => 16,  73 => 13,  70 => 12,  66 => 11,  60 => 8,  52 => 3,  48 => 2,  45 => 1,);
  155.     }
  156.     public function getSourceContext()
  157.     {
  158.         return new Source("<h4 class=\"d-flex justify-content-between align-items-center mb-3\">
  159.     <span class=\"\">{{ 'checkout.summary' | trans }}</span>
  160.     <span class=\"badge badge-secondary badge-pill\">{{ cart.itemAmount }}</span>
  161. </h4>
  162. <ul class=\"list-group mb-3\">
  163.     <li class=\"list-group-item d-flex justify-content-between\">
  164.         <div>
  165.             <p class=\"mb-0\"><strong class=\"my-0\">{{ 'checkout.products' | trans }}</strong></p>
  166.             <small class=\"text-muted\">
  167.                 {% for cartItem in cart.items %}
  168.                     <div>{{ cartItem.name }}</div>
  169.                 {% endfor %}
  170.             </small>
  171.         </div>
  172.         <span class=\"text-muted text-nowrap text-right\">{{ cart.priceCalculator.subTotal }}</span>
  173.     </li>
  174.     {% for name, modification in cart.priceCalculator.priceModifications %}
  175.         <li class=\"list-group-item d-flex justify-content-between\">
  176.             <div>
  177.                 <strong class=\"my-0\">
  178.                     {% if(modification.description) %}
  179.                         {{ modification.description }}
  180.                     {% else %}
  181.                         {{ name }}
  182.                     {% endif %}
  183.                 </strong>
  184.             </div>
  185.             <span class=\"text-muted text-nowrap text-right\">{{ modification }}</span>
  186.         </li>
  187.     {% endfor %}
  188.     <li class=\"list-group-item d-flex justify-content-between\" style=\"border-top: 2px solid\">
  189.         <h6><span>{{ 'checkout.totalprice' | trans }}</span></h6>
  190.         <h6 class=\"text-nowrap text-right\">{{ cart.priceCalculator.grandTotal }}</h6>
  191.     </li>
  192. </ul>""cart/shared/order_summary.html.twig""/var/www/html/templates/cart/shared/order_summary.html.twig");
  193.     }
  194.     
  195.     public function checkSecurity()
  196.     {
  197.         static $tags = array("for" => 11"if" => 27);
  198.         static $filters = array("escape" => 2"trans" => 2);
  199.         static $functions = array();
  200.         try {
  201.             $this->sandbox->checkSecurity(
  202.                 ['for''if'],
  203.                 ['escape''trans'],
  204.                 []
  205.             );
  206.         } catch (SecurityError $e) {
  207.             $e->setSourceContext($this->source);
  208.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  209.                 $e->setTemplateLine($tags[$e->getTagName()]);
  210.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  211.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  212.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  213.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  214.             }
  215.             throw $e;
  216.         }
  217.     }
  218. }