var/cache/dev/twig/b2/b258119b716433a361e91337488b8dd9.php line 33

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_831def4801397beba106f39a910f2fdd 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart/shared/order_summary.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""cart/shared/order_summary.html.twig"));
  33.         // line 1
  34.         echo "<h4 class=\"d-flex justify-content-between align-items-center mb-3\">
  35.     <span class=\"\">";
  36.         // line 2
  37.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.summary"), "html"nulltrue);
  38.         echo "</span>
  39.     <span class=\"badge badge-secondary badge-pill\">";
  40.         // line 3
  41.         echo twig_escape_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.'3$this->source); })()), "itemAmount", [], "any"falsefalsefalse3), "html"nulltrue);
  42.         echo "</span>
  43. </h4>
  44. <ul class=\"list-group mb-3\">
  45.     <li class=\"list-group-item d-flex justify-content-between\">
  46.         <div>
  47.             <p class=\"mb-0\"><strong class=\"my-0\">";
  48.         // line 8
  49.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.products"), "html"nulltrue);
  50.         echo "</strong></p>
  51.             <small class=\"text-muted\">
  52.                 ";
  53.         // line 11
  54.         $context['_parent'] = $context;
  55.         $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"falsefalsefalse11));
  56.         foreach ($context['_seq'] as $context["_key"] => $context["cartItem"]) {
  57.             // line 12
  58.             echo "
  59.                     <div>";
  60.             // line 13
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cartItem"], "name", [], "any"falsefalsefalse13), "html"nulltrue);
  62.             echo "</div>
  63.                 ";
  64.         }
  65.         $_parent $context['_parent'];
  66.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cartItem'], $context['_parent'], $context['loop']);
  67.         $context array_intersect_key($context$_parent) + $_parent;
  68.         // line 16
  69.         echo "
  70.             </small>
  71.         </div>
  72.         <span class=\"text-muted text-nowrap text-right\">";
  73.         // line 19
  74.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "subTotal", [], "any"falsefalsefalse19), "html"nulltrue);
  75.         echo "</span>
  76.     </li>
  77.     ";
  78.         // line 22
  79.         $context['_parent'] = $context;
  80.         $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"falsefalsefalse22), "priceModifications", [], "any"falsefalsefalse22));
  81.         foreach ($context['_seq'] as $context["name"] => $context["modification"]) {
  82.             // line 23
  83.             echo "
  84.         <li class=\"list-group-item d-flex justify-content-between\">
  85.             <div>
  86.                 <strong class=\"my-0\">
  87.                     ";
  88.             // line 27
  89.             if (twig_get_attribute($this->env$this->source$context["modification"], "description", [], "any"falsefalsefalse27)) {
  90.                 // line 28
  91.                 echo "                        ";
  92.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["modification"], "description", [], "any"falsefalsefalse28), "html"nulltrue);
  93.                 echo "
  94.                     ";
  95.             } else {
  96.                 // line 30
  97.                 echo "                        ";
  98.                 echo twig_escape_filter($this->env$context["name"], "html"nulltrue);
  99.                 echo "
  100.                     ";
  101.             }
  102.             // line 32
  103.             echo "                </strong>
  104.             </div>
  105.             <span class=\"text-muted text-nowrap text-right\">";
  106.             // line 34
  107.             echo twig_escape_filter($this->env$context["modification"], "html"nulltrue);
  108.             echo "</span>
  109.         </li>
  110.     ";
  111.         }
  112.         $_parent $context['_parent'];
  113.         unset($context['_seq'], $context['_iterated'], $context['name'], $context['modification'], $context['_parent'], $context['loop']);
  114.         $context array_intersect_key($context$_parent) + $_parent;
  115.         // line 39
  116.         echo "
  117.     <li class=\"list-group-item d-flex justify-content-between\" style=\"border-top: 2px solid\">
  118.         <h6><span>";
  119.         // line 41
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.totalprice"), "html"nulltrue);
  121.         echo "</span></h6>
  122.         <h6 class=\"text-nowrap text-right\">";
  123.         // line 42
  124.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse42), "grandTotal", [], "any"falsefalsefalse42), "html"nulltrue);
  125.         echo "</h6>
  126.     </li>
  127. </ul>";
  128.         
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.     }
  133.     public function getTemplateName()
  134.     {
  135.         return "cart/shared/order_summary.html.twig";
  136.     }
  137.     public function isTraitable()
  138.     {
  139.         return false;
  140.     }
  141.     public function getDebugInfo()
  142.     {
  143.         return array (  138 => 42,  134 => 41,  130 => 39,  119 => 34,  115 => 32,  109 => 30,  103 => 28,  101 => 27,  95 => 23,  91 => 22,  85 => 19,  80 => 16,  71 => 13,  68 => 12,  64 => 11,  58 => 8,  50 => 3,  46 => 2,  43 => 1,);
  144.     }
  145.     public function getSourceContext()
  146.     {
  147.         return new Source("<h4 class=\"d-flex justify-content-between align-items-center mb-3\">
  148.     <span class=\"\">{{ 'checkout.summary' | trans }}</span>
  149.     <span class=\"badge badge-secondary badge-pill\">{{ cart.itemAmount }}</span>
  150. </h4>
  151. <ul class=\"list-group mb-3\">
  152.     <li class=\"list-group-item d-flex justify-content-between\">
  153.         <div>
  154.             <p class=\"mb-0\"><strong class=\"my-0\">{{ 'checkout.products' | trans }}</strong></p>
  155.             <small class=\"text-muted\">
  156.                 {% for cartItem in cart.items %}
  157.                     <div>{{ cartItem.name }}</div>
  158.                 {% endfor %}
  159.             </small>
  160.         </div>
  161.         <span class=\"text-muted text-nowrap text-right\">{{ cart.priceCalculator.subTotal }}</span>
  162.     </li>
  163.     {% for name, modification in cart.priceCalculator.priceModifications %}
  164.         <li class=\"list-group-item d-flex justify-content-between\">
  165.             <div>
  166.                 <strong class=\"my-0\">
  167.                     {% if(modification.description) %}
  168.                         {{ modification.description }}
  169.                     {% else %}
  170.                         {{ name }}
  171.                     {% endif %}
  172.                 </strong>
  173.             </div>
  174.             <span class=\"text-muted text-nowrap text-right\">{{ modification }}</span>
  175.         </li>
  176.     {% endfor %}
  177.     <li class=\"list-group-item d-flex justify-content-between\" style=\"border-top: 2px solid\">
  178.         <h6><span>{{ 'checkout.totalprice' | trans }}</span></h6>
  179.         <h6 class=\"text-nowrap text-right\">{{ cart.priceCalculator.grandTotal }}</h6>
  180.     </li>
  181. </ul>""cart/shared/order_summary.html.twig""/var/www/pimcore/MovieCollection/templates/cart/shared/order_summary.html.twig");
  182.     }
  183. }