<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* cart/cart_listing.html.twig */
class __TwigTemplate_91d8b35f65270b10505cabb6d9d31ef1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 4
return "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "cart/cart_listing.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "cart/cart_listing.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "cart/cart_listing.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
echo "
<div class=\"py-5 bg-light\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-4 order-md-2 mb-4\">
";
// line 13
$this->loadTemplate("cart/shared/order_summary.html.twig", "cart/cart_listing.html.twig", 13)->display($context);
// line 14
echo "
<form method=\"post\" action=\"";
// line 15
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-cart-apply-voucher");
echo "\" class=\"card p-2 mb-4\">
";
// line 17
if ((twig_length_filter($this->env, 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.', 17, $this->source); })()), "pricingManagerTokenInformationDetails", [], "any", false, false, false, 17)) > 0)) {
// line 18
echo "
<ul class=\"list-group pb-3\">
";
// line 21
$context['_parent'] = $context;
$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", false, false, false, 21));
foreach ($context['_seq'] as $context["_key"] => $context["codeInfo"]) {
// line 22
echo "
<li class=\"list-group-item\">
<div class=\"row\">
<div class=\"col-10\" style=\"padding-top: 4px\">
<div>";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["codeInfo"], "tokenCode", [], "any", false, false, false, 26), "html", null, true);
echo "</div>
";
// line 27
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["codeInfo"], "errorMessages", [], "any", false, false, false, 27)) > 0)) {
// line 28
echo " <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> ";
echo twig_escape_filter($this->env, twig_join_filter(twig_get_attribute($this->env, $this->source, $context["codeInfo"], "errorMessages", [], "any", false, false, false, 28), ", "), "html", null, true);
echo "</small>
";
}
// line 30
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["codeInfo"], "noValidRule", [], "any", false, false, false, 30)) {
// line 31
echo " <small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.voucher-no-rule"), "html", null, true);
echo "</small>
";
}
// line 33
echo " </div>
<div class=\"col-2\">
<a href=\"";
// line 36
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", false, false, false, 36)]), "html", null, true);
echo "\" class=\"btn btn-outline-danger btn-sm\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
</div>
</div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['codeInfo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo "
</ul>
";
}
// line 48
echo "
<div class=\"input-group\">
<input name=\"voucher-code\" type=\"text\" class=\"form-control\" placeholder=\"";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.voucher-code"), "html", null, true);
echo "\">
<div class=\"input-group-append\">
<button type=\"submit\" class=\"btn btn-secondary\">";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.apply-voucher-code"), "html", null, true);
echo "</button>
</div>
</div>
</form>
<div class=\"card p-2\">
<a href=\"";
// line 59
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-checkout-address");
echo "\" class=\"btn btn-success btn-lg\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.start-checkout"), "html", null, true);
echo "</a>
</div>
</div>
<div class=\"col-md-8 order-md-1\">
<h4 class=\"mb-3\">";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.title"), "html", null, true);
echo "</h4>
<div class=\"card shopping-cart\">
<form method=\"post\">
<div class=\"card-body\">
";
// line 68
$context['_parent'] = $context;
$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", false, false, false, 68));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 69
echo "
";
// line 70
$context["product"] = twig_get_attribute($this->env, $this->source, $context["item"], "product", [], "any", false, false, false, 70);
// line 71
echo "
<div class=\"row\">
<div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
";
// line 75
if (twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "mainImage", [], "any", true, true, false, 75)) {
// line 76
echo "
";
// line 77
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 77, $this->source); })()), "mainImage", [], "any", false, false, false, 77), "thumbnail", [0 => "cart"], "method", false, false, false, 77), "html", [0 => ["imgAttributes" => ["class" => "img-responsive", "style" => "width:100%; height: auto"]]], "method", false, false, false, 77);
echo "
";
}
// line 80
echo "
</div>
<div class=\"col-8 text-sm-left col-md-5 text-md-left col-md-4\">
<h6 style=\"padding-top: 3px\" class=\"product-name\">";
// line 83
echo twig_escape_filter($this->env, 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.', 83, $this->source); })()), "oSName", [], "any", false, false, false, 83), "html", null, true);
echo "</h6>
";
// line 84
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"])) {
// line 85
echo " <p class=\"text-muted small\">";
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", false, false, false, 85);
echo "</p>
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 86
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 86, $this->source); })()), "saleInformation", [], "any", false, false, false, 86), "saleInformation", [], "any", false, false, false, 86)) {
// line 87
echo " <p class=\"text-muted small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("attribute." . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 87, $this->source); })()), "saleInformation", [], "any", false, false, false, 87), "saleInformation", [], "any", false, false, false, 87), "condition", [], "any", false, false, false, 87))), "html", null, true);
echo "</p>
";
}
// line 89
echo "
";
// line 90
$context["priceInfo"] = twig_get_attribute($this->env, $this->source, $context["item"], "priceInfo", [], "any", false, false, false, 90);
// line 91
echo "
";
// line 92
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", false, false, false, 92)) {
// line 93
echo "
<div class=\"alert alert-success mb-1\" role=\"alert\">
<p class=\"extra-small small mb-2\"><strong>";
// line 96
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.your-benefits"), "html", null, true);
echo "</strong></p>
<ul class=\"list-unstyled mb-0 extra-small\">
";
// line 99
$context['_parent'] = $context;
$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", false, false, false, 99));
foreach ($context['_seq'] as $context["_key"] => $context["rule"]) {
// line 100
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rule"], "label", [], "any", false, false, false, 100), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rule'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo " </ul>
</div>
";
}
// line 107
echo "
</div>
<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\">
<div class=\"col-7 col-sm-7 col-md-8 text-right pr-0\" style=\"padding-top: 3px\">
<h6>";
// line 113
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "price", [], "any", false, false, false, 113), "html", null, true);
echo " <span class=\"text-muted\">x</span></h6>
</div>
<div class=\"col-3 col-sm-3 col-md-3\">
<div class=\"quantity\">
<input name=\"items[";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "itemKey", [], "any", false, false, false, 117), "html", null, true);
echo "]\" type=\"number\" step=\"1\" max=\"99\" min=\"1\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "count", [], "any", false, false, false, 117), "html", null, true);
echo "\" title=\"Qty\" class=\"qty w-100\" size=\"4\">
</div>
</div>
<div class=\"col-2 col-sm-2 col-md-1 text-right px-md-0\">
<a href=\"";
// line 121
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", false, false, false, 121)]), "html", null, true);
echo "\" class=\"btn btn-outline-danger btn-sm\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
</div>
</div>
</div>
<hr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo "
<div class=\"text-right\">
<button type=\"submit\" class=\"btn btn-outline-secondary text-right\">
";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.update-cart"), "html", null, true);
echo "
</button>
</div>
</div>
</form>
</div>
";
// line 140
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", false, false, false, 140)) {
// line 141
echo " <h6 class=\"mt-5 mb-0\">Gifts</h6>
<div class=\"card shopping-cart\">
<div class=\"card-body\">
";
// line 145
$context['_parent'] = $context;
$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", false, false, false, 145));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 146
echo "
";
// line 147
$context["product"] = twig_get_attribute($this->env, $this->source, $context["item"], "product", [], "any", false, false, false, 147);
// line 148
echo "
<div class=\"row\">
<div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
";
// line 152
if (twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "mainImage", [], "any", true, true, false, 152)) {
// line 153
echo "
";
// line 154
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 154, $this->source); })()), "mainImage", [], "any", false, false, false, 154), "thumbnail", [0 => "cart"], "method", false, false, false, 154), "html", [0 => ["imgAttributes" => ["class" => "img-responsive", "style" => "width:100%; height: auto"]]], "method", false, false, false, 154);
echo "
";
}
// line 157
echo "
</div>
<div class=\"col-8 text-sm-left text-md-left\">
<h6 style=\"padding-top: 3px\" class=\"product-name\">";
// line 160
echo twig_escape_filter($this->env, 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.', 160, $this->source); })()), "oSName", [], "any", false, false, false, 160), "html", null, true);
echo "</h6>
";
// line 161
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"])) {
// line 162
echo " <p class=\"text-muted small\">";
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", false, false, false, 162);
echo "</p>
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 163
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 163, $this->source); })()), "saleInformation", [], "any", false, false, false, 163), "saleInformation", [], "any", false, false, false, 163)) {
// line 164
echo " <p class=\"text-muted small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("attribute." . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 164, $this->source); })()), "saleInformation", [], "any", false, false, false, 164), "saleInformation", [], "any", false, false, false, 164), "condition", [], "any", false, false, false, 164))), "html", null, true);
echo "</p>
";
}
// line 166
echo "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
echo " </div>
</div>
";
}
// line 173
echo " </div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "cart/cart_listing.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# @var cart \\Pimcore\\Bundle\\EcommerceFrameworkBundle\\CartManager\\CartInterface #}
{# @var product \\App\\Model\\Product\\AbstractProduct #}
{% extends 'layouts/layout.html.twig' %}
{% block content %}
<div class=\"py-5 bg-light\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-4 order-md-2 mb-4\">
{% include 'cart/shared/order_summary.html.twig' %}
<form method=\"post\" action=\"{{ path('shop-cart-apply-voucher') }}\" class=\"card p-2 mb-4\">
{% if(cart.pricingManagerTokenInformationDetails | length > 0) %}
<ul class=\"list-group pb-3\">
{% for codeInfo in cart.pricingManagerTokenInformationDetails %}
<li class=\"list-group-item\">
<div class=\"row\">
<div class=\"col-10\" style=\"padding-top: 4px\">
<div>{{ codeInfo.tokenCode }}</div>
{% if (codeInfo.errorMessages | length) > 0 %}
<small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> {{ codeInfo.errorMessages | join(', ') }}</small>
{% endif %}
{% if (codeInfo.noValidRule) %}
<small class=\"text-muted\"><i class=\"fas fa-exclamation-triangle\"></i> {{ 'cart.voucher-no-rule' | trans }}</small>
{% endif %}
</div>
<div class=\"col-2\">
<a href=\"{{ path('shop-cart-remove-voucher', {'voucher-code': codeInfo.tokenCode}) }}\" class=\"btn btn-outline-danger btn-sm\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
</div>
</div>
</li>
{% endfor %}
</ul>
{% endif %}
<div class=\"input-group\">
<input name=\"voucher-code\" type=\"text\" class=\"form-control\" placeholder=\"{{ 'cart.voucher-code' | trans }}\">
<div class=\"input-group-append\">
<button type=\"submit\" class=\"btn btn-secondary\">{{ 'cart.apply-voucher-code' | trans }}</button>
</div>
</div>
</form>
<div class=\"card p-2\">
<a href=\"{{ path('shop-checkout-address') }}\" class=\"btn btn-success btn-lg\">{{ 'cart.start-checkout' | trans }}</a>
</div>
</div>
<div class=\"col-md-8 order-md-1\">
<h4 class=\"mb-3\">{{ 'cart.title' | trans }}</h4>
<div class=\"card shopping-cart\">
<form method=\"post\">
<div class=\"card-body\">
{% for item in cart.items %}
{% set product = item.product %}
<div class=\"row\">
<div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
{% if(product.mainImage is defined) %}
{{ product.mainImage.thumbnail('cart').html({imgAttributes: {class: 'img-responsive', style: 'width:100%; height: auto'}}) | raw }}
{% endif %}
</div>
<div class=\"col-8 text-sm-left col-md-5 text-md-left col-md-4\">
<h6 style=\"padding-top: 3px\" class=\"product-name\">{{ product.oSName }}</h6>
{% if( product is instanceof('App\\\\Model\\\\Product\\\\Car')) %}
<p class=\"text-muted small\">{{ product.subText | raw }}</p>
{% elseif(product.saleInformation.saleInformation) %}
<p class=\"text-muted small\">{{ 'general.condition' | trans }}: {{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans }}</p>
{% endif %}
{% set priceInfo = item.priceInfo %}
{% if(priceInfo.rules) %}
<div class=\"alert alert-success mb-1\" role=\"alert\">
<p class=\"extra-small small mb-2\"><strong>{{ 'general.your-benefits' | trans }}</strong></p>
<ul class=\"list-unstyled mb-0 extra-small\">
{% for rule in priceInfo.rules %}
<li>{{ rule.label }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
<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\">
<div class=\"col-7 col-sm-7 col-md-8 text-right pr-0\" style=\"padding-top: 3px\">
<h6>{{ item.price }} <span class=\"text-muted\">x</span></h6>
</div>
<div class=\"col-3 col-sm-3 col-md-3\">
<div class=\"quantity\">
<input name=\"items[{{ item.itemKey }}]\" type=\"number\" step=\"1\" max=\"99\" min=\"1\" value=\"{{ item.count }}\" title=\"Qty\" class=\"qty w-100\" size=\"4\">
</div>
</div>
<div class=\"col-2 col-sm-2 col-md-1 text-right px-md-0\">
<a href=\"{{ path('shop-remove-from-cart', {id: item.itemKey}) }}\" class=\"btn btn-outline-danger btn-sm\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
</div>
</div>
</div>
<hr>
{% endfor %}
<div class=\"text-right\">
<button type=\"submit\" class=\"btn btn-outline-secondary text-right\">
{{ 'cart.update-cart' | trans }}
</button>
</div>
</div>
</form>
</div>
{% if(cart.giftItems) %}
<h6 class=\"mt-5 mb-0\">Gifts</h6>
<div class=\"card shopping-cart\">
<div class=\"card-body\">
{% for item in cart.giftItems %}
{% set product = item.product %}
<div class=\"row\">
<div class=\"col-4 col-sm-4 col-md-2 text-md-center text-sm-left \">
{% if(product.mainImage is defined) %}
{{ product.mainImage.thumbnail('cart').html({imgAttributes: {class: 'img-responsive', style: 'width:100%; height: auto'}}) | raw }}
{% endif %}
</div>
<div class=\"col-8 text-sm-left text-md-left\">
<h6 style=\"padding-top: 3px\" class=\"product-name\">{{ product.oSName }}</h6>
{% if( product is instanceof('App\\\\Model\\\\Product\\\\Car')) %}
<p class=\"text-muted small\">{{ product.subText | raw }}</p>
{% elseif(product.saleInformation.saleInformation) %}
<p class=\"text-muted small\">{{ 'general.condition' | trans }}: {{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans }}</p>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}", "cart/cart_listing.html.twig", "/var/www/html/siteone/templates/cart/cart_listing.html.twig");
}
}