<?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;
/* product/detail.html.twig */
class __TwigTemplate_1e4b5938759a2ed6c8f420d40e145bf0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'additionalimages' => [$this, 'block_additionalimages'],
'colorvariants' => [$this, 'block_colorvariants'],
'detailinfos' => [$this, 'block_detailinfos'],
'salesinfos' => [$this, 'block_salesinfos'],
'description' => [$this, 'block_description'],
'attributes' => [$this, 'block_attributes'],
'productrelations' => [$this, 'block_productrelations'],
];
}
protected function doGetParent(array $context)
{
// line 5
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", "product/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/detail.html.twig"));
// line 3
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("product/macros.html.twig", "product/detail.html.twig", 3)->unwrap();
// line 5
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "product/detail.html.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
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 8
echo "
<div id=\"main-content\" class=\"main-content\">
<div class=\"d-md-none mt-3\">
";
// line 12
if ((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.', 12, $this->source); })()), "manufacturer", [], "any", false, false, false, 12) && 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.', 12, $this->source); })()), "manufacturer", [], "any", false, false, false, 12), "logo", [], "any", false, false, false, 12))) {
// line 13
echo " ";
echo twig_get_attribute($this->env, $this->source, 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.', 13, $this->source); })()), "manufacturer", [], "any", false, false, false, 13), "logo", [], "any", false, false, false, 13), "thumbnail", [0 => "product_detail_manufacturer"], "method", false, false, false, 13), "getHTML", [0 => ["imgAttributes" => ["class" => "img-fluid float-right"]]], "method", false, false, false, 13);
echo "
";
}
// line 15
echo " <div class=\"page-header\">
<h1>";
// line 16
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.', 16, $this->source); })()), "oSName", [], "any", false, false, false, 16), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"bg-white my-3\">
<div class=\"row\">
<div class=\"col-md-6 mb-4\">
";
// line 24
if (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.', 24, $this->source); })()), "mainImage", [], "any", false, false, false, 24)) {
// line 25
echo "
<div class=\"p-3\">
<a href=\"";
// line 27
echo 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.', 27, $this->source); })()), "mainImage", [], "any", false, false, false, 27), "getThumbnail", [0 => "galleryLightbox"], "method", false, false, false, 27);
echo "\" class=\"thumbnail\">
";
// line 28
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.', 28, $this->source); })()), "mainImage", [], "any", false, false, false, 28), "thumbnail", [0 => "product_detail"], "method", false, false, false, 28), "getHTML", [0 => ["imgAttributes" => ["class" => "img-thumbnail1 img-fluid"]]], "method", false, false, false, 28);
echo "
</a>
";
// line 31
$this->displayBlock('additionalimages', $context, $blocks);
// line 53
echo " </div>
";
}
// line 55
echo " </div>
<div class=\"col-md-6 mb-4\">
<div class=\"p-3 pt-4\">
<div class=\"row d-none d-md-block mb-3\">
<div class=\"col-12\">
";
// line 63
if ((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.', 63, $this->source); })()), "manufacturer", [], "any", false, false, false, 63) && 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.', 63, $this->source); })()), "manufacturer", [], "any", false, false, false, 63), "logo", [], "any", false, false, false, 63))) {
// line 64
echo " ";
echo twig_get_attribute($this->env, $this->source, 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.', 64, $this->source); })()), "manufacturer", [], "any", false, false, false, 64), "logo", [], "any", false, false, false, 64), "thumbnail", [0 => "product_detail_manufacturer"], "method", false, false, false, 64), "getHTML", [0 => ["imgAttributes" => ["class" => "img-fluid float-right"]]], "method", false, false, false, 64);
echo "
";
}
// line 66
echo "
<h2 class=\"\">";
// line 67
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.', 67, $this->source); })()), "oSName", [], "any", false, false, false, 67), "html", null, true);
echo "</h2>
</div>
</div>
<div class=\"row\">
";
// line 72
$this->displayBlock('colorvariants', $context, $blocks);
// line 86
echo "
";
// line 87
$this->displayBlock('detailinfos', $context, $blocks);
// line 100
echo "
";
// line 101
$this->displayBlock('salesinfos', $context, $blocks);
// line 117
echo "
</div>
<hr/>
<div class=\"mt-4 text-center\">
";
// line 122
$context["priceInfo"] = 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.', 122, $this->source); })()), "oSPriceInfo", [], "any", false, false, false, 122);
// line 123
echo " ";
$context["price"] = 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.', 123, $this->source); })()), "oSPrice", [], "any", false, false, false, 123);
// line 124
echo "
";
// line 125
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.', 125, $this->source); })()), "rules", [], "any", false, false, false, 125)) {
// line 126
echo "
<div class=\"alert alert-success mb-4\" role=\"alert\">
<p class=\"small mb-2\"><strong>";
// line 129
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 small\">
";
// line 132
$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.', 132, $this->source); })()), "rules", [], "any", false, false, false, 132));
foreach ($context['_seq'] as $context["_key"] => $context["rule"]) {
// line 133
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rule"], "label", [], "any", false, false, false, 133), "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 135
echo " </ul>
</div>
";
}
// line 140
echo "
";
// line 141
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.', 141, $this->source); })()), "hasDiscount", [], "any", false, false, false, 141)) {
// line 142
echo " <p class=\"detail-price original mb-3\">";
echo twig_escape_filter($this->env, 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.', 142, $this->source); })()), "originalPrice", [], "any", false, false, false, 142), "html", null, true);
echo "</p>
";
}
// line 144
echo "
<p class=\"detail-price mb-2\">";
// line 145
echo twig_escape_filter($this->env, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 145, $this->source); })()), "html", null, true);
echo "</p>
<div class=\"detail-tax text-muted\">
<ul class=\"list-unstyled\">
";
// line 149
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 149, $this->source); })()), "taxEntries", [], "any", false, false, false, 149));
foreach ($context['_seq'] as $context["_key"] => $context["taxEntry"]) {
// line 150
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxEntry"], "entry", [], "any", false, false, false, 150), "name", [], "any", false, false, false, 150), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["taxEntry"], "percent", [], "any", false, false, false, 150), "html", null, true);
echo "% (";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\Currency']->format(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["taxEntry"], "amount", [], "any", false, false, false, 150), "asNumeric", [], "any", false, false, false, 150), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 150, $this->source); })()), "currency", [], "any", false, false, false, 150), "shortName", [], "any", false, false, false, 150)), "html", null, true);
echo ")</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxEntry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 152
echo " </ul>
</div>
";
// line 155
if (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.', 155, $this->source); })()), "saleInformation", [], "any", false, false, false, 155), "saleInformation", [], "any", false, false, false, 155)) {
// line 156
echo " <p class=\"small text-muted mt-1\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.available-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("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.', 156, $this->source); })()), "saleInformation", [], "any", false, false, false, 156), "saleInformation", [], "any", false, false, false, 156), "availabilityType", [], "any", false, false, false, 156)))), "html", null, true);
echo "</p>
";
}
// line 158
echo " </div>
<a href=\"";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-add-to-cart", ["id" => 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); })()), "id", [], "any", false, false, false, 160)]), "html", null, true);
echo "\" class=\"btn btn-success btn-block\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.add-to-cart"), "html", null, true);
echo "</a>
</div>
</div>
</div>
<hr>
";
// line 170
$this->displayBlock('description', $context, $blocks);
// line 180
echo "
";
// line 181
$this->displayBlock('attributes', $context, $blocks);
// line 280
echo "
";
// line 281
$this->displayBlock('productrelations', $context, $blocks);
// line 305
echo "
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 31
public function block_additionalimages($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", "additionalimages"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additionalimages"));
// line 32
echo " ";
$context["additionalImages"] = 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.', 32, $this->source); })()), "additionalImages", [], "any", false, false, false, 32);
// line 33
echo " ";
if ((isset($context["additionalImages"]) || array_key_exists("additionalImages", $context) ? $context["additionalImages"] : (function () { throw new RuntimeError('Variable "additionalImages" does not exist.', 33, $this->source); })())) {
// line 34
echo "
<div class=\"row\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["additionalImages"]) || array_key_exists("additionalImages", $context) ? $context["additionalImages"] : (function () { throw new RuntimeError('Variable "additionalImages" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 38
echo "
<div class=\"col-4 mt-3\">
<a href=\"";
// line 41
echo twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", [0 => "galleryLightbox"], "method", false, false, false, 41);
echo "\" class=\"thumbnail\">
";
// line 42
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "thumbnail", [0 => "product_detail_small"], "method", false, false, false, 42), "getHTML", [0 => ["imgAttributes" => ["class" => "img-thumbnail1 img-fluid"]]], "method", false, false, false, 42);
echo "
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo "
</div>
";
}
// line 52
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 72
public function block_colorvariants($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", "colorvariants"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "colorvariants"));
// line 73
echo " <dl class=\"item-property col-12\">
<dt>";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.color"), "html", null, true);
echo "</dt>
<dd>
";
// line 76
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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); })()), "colorVariants", [], "any", false, false, false, 76));
foreach ($context['_seq'] as $context["_key"] => $context["colorVariant"]) {
// line 77
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\ProductPageExtension']->generateLink($context["colorVariant"]), "html", null, true);
echo "\"
class=\"btn ";
// line 78
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.', 78, $this->source); })()), "id", [], "any", false, false, false, 78) == twig_get_attribute($this->env, $this->source, $context["colorVariant"], "id", [], "any", false, false, false, 78))) ? ("btn-primary") : ("btn-outline-primary"));
echo "\">
";
// line 79
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\ProductPageExtension']->getColorName(twig_get_attribute($this->env, $this->source, $context["colorVariant"], "color", [], "any", false, false, false, 79)), "html", null, true);
echo "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colorVariant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
echo " </dd>
</dl>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 87
public function block_detailinfos($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", "detailinfos"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "detailinfos"));
// line 88
echo " ";
if (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.', 88, $this->source); })()), "bodyStyle", [], "any", false, false, false, 88)) {
// line 89
echo " <dl class=\"item-property col-6\">
<dt>";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.body-style"), "html", null, true);
echo "</dt>
<dd>";
// line 91
echo twig_escape_filter($this->env, 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.', 91, $this->source); })()), "bodyStyle", [], "any", false, false, false, 91), "name", [], "any", false, false, false, 91), "html", null, true);
echo "</dd>
</dl>
";
}
// line 94
echo "
<dl class=\"item-property col-6\">
<dt>";
// line 96
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.car-class"), "html", null, true);
echo "</dt>
<dd>";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("attribute." . 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.', 97, $this->source); })()), "carClass", [], "any", false, false, false, 97)))), "html", null, true);
echo "</dd>
</dl>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 101
public function block_salesinfos($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", "salesinfos"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "salesinfos"));
// line 102
echo "
";
// line 103
if (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.', 103, $this->source); })()), "saleInformation", [], "any", false, false, false, 103), "saleInformation", [], "any", false, false, false, 103)) {
// line 104
echo "
<dl class=\"item-property col-6 mb-0\">
<dt>";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html", null, true);
echo "</dt>
<dd>";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_lower_filter($this->env, ("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.', 107, $this->source); })()), "saleInformation", [], "any", false, false, false, 107), "saleInformation", [], "any", false, false, false, 107), "condition", [], "any", false, false, false, 107)))), "html", null, true);
echo "</dd>
</dl>
<dl class=\"item-property col-6 mb-0\">
<dt>";
// line 111
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.milage"), "html", null, true);
echo "</dt>
<dd>";
// line 112
echo twig_escape_filter($this->env, 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.', 112, $this->source); })()), "saleInformation", [], "any", false, false, false, 112), "saleInformation", [], "any", false, false, false, 112), "milage", [], "any", false, false, false, 112), "html", null, true);
echo "</dd>
</dl>
";
}
// line 116
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 170
public function block_description($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", "description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
// line 171
echo " <div class=\"mt-5 col-12 text-center\">
<h4 class=\"text-center\">";
// line 172
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.additional-information"), "html", null, true);
echo "</h4>
";
// line 174
if (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.', 174, $this->source); })()), "description", [], "any", false, false, false, 174)) {
// line 175
echo " <p>";
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.', 175, $this->source); })()), "description", [], "any", false, false, false, 175);
echo "</p>
";
}
// line 177
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 181
public function block_attributes($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", "attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "attributes"));
// line 182
echo " <div class=\"col-12\">
<ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
<li class=\"nav-item\">
<a class=\"nav-link active\" id=\"home-tab\" data-toggle=\"tab\" href=\"#home\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">";
// line 186
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.general"), "html", null, true);
echo "</a>
</li>
";
// line 188
if ((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.', 188, $this->source); })()), "attributes", [], "any", false, false, false, 188), "dimensions", [], "any", false, false, false, 188) || 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.', 188, $this->source); })()), "attributes", [], "any", false, false, false, 188), "bodywork", [], "any", false, false, false, 188))) {
// line 189
echo " <li class=\"nav-item\">
<a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.dimensions"), "html", null, true);
echo "</a>
</li>
";
}
// line 193
echo " ";
if ((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.', 193, $this->source); })()), "attributes", [], "any", false, false, false, 193), "engine", [], "any", false, false, false, 193) || 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.', 193, $this->source); })()), "attributes", [], "any", false, false, false, 193), "transmission", [], "any", false, false, false, 193))) {
// line 194
echo " <li class=\"nav-item\">
<a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">";
// line 195
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.engine"), "html", null, true);
echo "</a>
</li>
";
}
// line 198
echo " </ul>
<div class=\"tab-content\" id=\"myTabContent\">
<div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
<div class=\"m-3\">
<div class=\"row\">
";
// line 206
if (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.', 206, $this->source); })()), "manufacturer", [], "any", false, false, false, 206)) {
// line 207
echo " <dl class=\"item-property col-6 col-md-3\">
<dt>";
// line 208
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.manufacturer"), "html", null, true);
echo "</dt>
<dd>";
// line 209
echo twig_escape_filter($this->env, 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.', 209, $this->source); })()), "manufacturer", [], "any", false, false, false, 209), "name", [], "any", false, false, false, 209), "html", null, true);
echo "</dd>
</dl>
";
}
// line 212
echo "
";
// line 213
echo twig_call_macro($macros["macros"], "macro_attribute", [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.', 213, $this->source); })()), "productionYear", [], "any", false, false, false, 213), "general.productionYear"], 213, $context, $this->getSourceContext());
echo "
";
// line 215
if (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.', 215, $this->source); })()), "country", [], "any", false, false, false, 215)) {
// line 216
echo " <dl class=\"item-property col-6 col-md-3\">
<dt>";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.country"), "html", null, true);
echo "</dt>
<dd>";
// line 218
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('country')->getCallable(), [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.', 218, $this->source); })()), "country", [], "any", false, false, false, 218)]), "html", null, true);
echo "</dd>
</dl>
";
}
// line 221
echo "
</div>
</div>
</div>
";
// line 227
if ((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.', 227, $this->source); })()), "attributes", [], "any", false, false, false, 227), "dimensions", [], "any", false, false, false, 227) || 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.', 227, $this->source); })()), "attributes", [], "any", false, false, false, 227), "bodywork", [], "any", false, false, false, 227))) {
// line 228
echo " <div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
<div class=\"m-3\">
<div class=\"row\">
";
// line 234
if (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.', 234, $this->source); })()), "attributes", [], "any", false, false, false, 234), "dimensions", [], "any", false, false, false, 234)) {
// line 235
echo " ";
echo twig_call_macro($macros["macros"], "macro_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.', 235, $this->source); })()), "attributes", [], "any", false, false, false, 235), "dimensions", [], "any", false, false, false, 235), "length", [], "any", false, false, false, 235), "general.length"], 235, $context, $this->getSourceContext());
echo "
";
// line 236
echo twig_call_macro($macros["macros"], "macro_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.', 236, $this->source); })()), "attributes", [], "any", false, false, false, 236), "dimensions", [], "any", false, false, false, 236), "width", [], "any", false, false, false, 236), "general.width"], 236, $context, $this->getSourceContext());
echo "
";
// line 237
echo twig_call_macro($macros["macros"], "macro_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.', 237, $this->source); })()), "attributes", [], "any", false, false, false, 237), "dimensions", [], "any", false, false, false, 237), "wheelbase", [], "any", false, false, false, 237), "general.wheelbase"], 237, $context, $this->getSourceContext());
echo "
";
// line 238
echo twig_call_macro($macros["macros"], "macro_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.', 238, $this->source); })()), "attributes", [], "any", false, false, false, 238), "dimensions", [], "any", false, false, false, 238), "weight", [], "any", false, false, false, 238), "general.weight"], 238, $context, $this->getSourceContext());
echo "
";
}
// line 240
echo "
";
// line 241
if (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.', 241, $this->source); })()), "attributes", [], "any", false, false, false, 241), "bodywork", [], "any", false, false, false, 241)) {
// line 242
echo " ";
echo twig_call_macro($macros["macros"], "macro_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.', 242, $this->source); })()), "attributes", [], "any", false, false, false, 242), "bodywork", [], "any", false, false, false, 242), "numberOfDoors", [], "any", false, false, false, 242), "general.numberOfDoors"], 242, $context, $this->getSourceContext());
echo "
";
// line 243
echo twig_call_macro($macros["macros"], "macro_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.', 243, $this->source); })()), "attributes", [], "any", false, false, false, 243), "bodywork", [], "any", false, false, false, 243), "numberOfSeats", [], "any", false, false, false, 243), "general.numberOfSeats"], 243, $context, $this->getSourceContext());
echo "
";
}
// line 245
echo "
</div>
</div>
</div>
";
}
// line 252
echo " ";
if ((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.', 252, $this->source); })()), "attributes", [], "any", false, false, false, 252), "engine", [], "any", false, false, false, 252) || 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.', 252, $this->source); })()), "attributes", [], "any", false, false, false, 252), "transmission", [], "any", false, false, false, 252))) {
// line 253
echo " <div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
<div class=\"m-3\">
<div class=\"row\">
";
// line 259
if (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.', 259, $this->source); })()), "attributes", [], "any", false, false, false, 259), "engine", [], "any", false, false, false, 259)) {
// line 260
echo " ";
echo twig_call_macro($macros["macros"], "macro_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.', 260, $this->source); })()), "attributes", [], "any", false, false, false, 260), "engine", [], "any", false, false, false, 260), "cylinders", [], "any", false, false, false, 260), "general.cylinders"], 260, $context, $this->getSourceContext());
echo "
";
// line 261
echo twig_call_macro($macros["macros"], "macro_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.', 261, $this->source); })()), "attributes", [], "any", false, false, false, 261), "engine", [], "any", false, false, false, 261), "capacity", [], "any", false, false, false, 261), "general.capacity"], 261, $context, $this->getSourceContext());
echo "
";
// line 262
echo twig_call_macro($macros["macros"], "macro_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.', 262, $this->source); })()), "attributes", [], "any", false, false, false, 262), "engine", [], "any", false, false, false, 262), "power", [], "any", false, false, false, 262), "general.power"], 262, $context, $this->getSourceContext());
echo "
";
// line 263
echo twig_call_macro($macros["macros"], "macro_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.', 263, $this->source); })()), "attributes", [], "any", false, false, false, 263), "engine", [], "any", false, false, false, 263), "engineLocation", [], "any", false, false, false, 263), "general.engineLocation"], 263, $context, $this->getSourceContext());
echo "
";
}
// line 265
echo "
";
// line 266
if (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.', 266, $this->source); })()), "attributes", [], "any", false, false, false, 266), "transmission", [], "any", false, false, false, 266)) {
// line 267
echo " ";
echo twig_call_macro($macros["macros"], "macro_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.', 267, $this->source); })()), "attributes", [], "any", false, false, false, 267), "transmission", [], "any", false, false, false, 267), "wheelDrive", [], "any", false, false, false, 267), "general.wheelDrive", true, "attribute."], 267, $context, $this->getSourceContext());
echo "
";
}
// line 269
echo "
</div>
</div>
</div>
";
}
// line 276
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 281
public function block_productrelations($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", "productrelations"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "productrelations"));
// line 282
echo " ";
$context["accessories"] = 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.', 282, $this->source); })()), "accessories", [], "any", false, false, false, 282);
// line 283
echo "
";
// line 284
if (twig_get_attribute($this->env, $this->source, (isset($context["accessories"]) || array_key_exists("accessories", $context) ? $context["accessories"] : (function () { throw new RuntimeError('Variable "accessories" does not exist.', 284, $this->source); })()), "count", [], "any", false, false, false, 284)) {
// line 285
echo "
<hr>
<div class=\"mt-5 col-12\">
<h4 class=\"text-center\">";
// line 289
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.accessories"), "html", null, true);
echo "</h4>
<div class=\"row\">
";
// line 292
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["accessories"]) || array_key_exists("accessories", $context) ? $context["accessories"] : (function () { throw new RuntimeError('Variable "accessories" does not exist.', 292, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 293
echo "
<div class=\"col-md-3 d-flex align-items-stretch\">
";
// line 295
$this->loadTemplate("product/product_teaser.html.twig", "product/detail.html.twig", 295)->display(twig_array_merge($context, ["product" => $context["item"]]));
// line 296
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 299
echo " </div>
</div>
";
}
// line 304
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "product/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 860 => 304, 853 => 299, 837 => 296, 835 => 295, 831 => 293, 814 => 292, 808 => 289, 802 => 285, 800 => 284, 797 => 283, 794 => 282, 784 => 281, 771 => 276, 762 => 269, 756 => 267, 754 => 266, 751 => 265, 746 => 263, 742 => 262, 738 => 261, 733 => 260, 731 => 259, 723 => 253, 720 => 252, 711 => 245, 706 => 243, 701 => 242, 699 => 241, 696 => 240, 691 => 238, 687 => 237, 683 => 236, 678 => 235, 676 => 234, 668 => 228, 666 => 227, 658 => 221, 652 => 218, 648 => 217, 645 => 216, 643 => 215, 638 => 213, 635 => 212, 629 => 209, 625 => 208, 622 => 207, 620 => 206, 610 => 198, 604 => 195, 601 => 194, 598 => 193, 592 => 190, 589 => 189, 587 => 188, 582 => 186, 576 => 182, 566 => 181, 554 => 177, 548 => 175, 546 => 174, 541 => 172, 538 => 171, 528 => 170, 518 => 116, 511 => 112, 507 => 111, 500 => 107, 496 => 106, 492 => 104, 490 => 103, 487 => 102, 477 => 101, 464 => 97, 460 => 96, 456 => 94, 450 => 91, 446 => 90, 443 => 89, 440 => 88, 430 => 87, 417 => 82, 408 => 79, 404 => 78, 399 => 77, 395 => 76, 390 => 74, 387 => 73, 377 => 72, 367 => 52, 361 => 48, 349 => 42, 345 => 41, 340 => 38, 336 => 37, 331 => 34, 328 => 33, 325 => 32, 315 => 31, 301 => 305, 299 => 281, 296 => 280, 294 => 181, 291 => 180, 289 => 170, 274 => 160, 270 => 158, 262 => 156, 260 => 155, 255 => 152, 242 => 150, 238 => 149, 231 => 145, 228 => 144, 222 => 142, 220 => 141, 217 => 140, 210 => 135, 201 => 133, 197 => 132, 191 => 129, 186 => 126, 184 => 125, 181 => 124, 178 => 123, 176 => 122, 169 => 117, 167 => 101, 164 => 100, 162 => 87, 159 => 86, 157 => 72, 149 => 67, 146 => 66, 140 => 64, 138 => 63, 128 => 55, 124 => 53, 122 => 31, 116 => 28, 112 => 27, 108 => 25, 106 => 24, 95 => 16, 92 => 15, 86 => 13, 84 => 12, 78 => 8, 68 => 7, 57 => 5, 55 => 3, 42 => 5,);
}
public function getSourceContext()
{
return new Source("{# @var product \\App\\Model\\Product\\Car #}
{% import 'product/macros.html.twig' as macros %}
{% extends 'layouts/layout.html.twig' %}
{% block content %}
<div id=\"main-content\" class=\"main-content\">
<div class=\"d-md-none mt-3\">
{% if(product.manufacturer and product.manufacturer.logo) %}
{{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
{% endif %}
<div class=\"page-header\">
<h1>{{ product.oSName }}</h1>
</div>
</div>
<div class=\"bg-white my-3\">
<div class=\"row\">
<div class=\"col-md-6 mb-4\">
{% if(product.mainImage) %}
<div class=\"p-3\">
<a href=\"{{ product.mainImage.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
{{ product.mainImage.thumbnail('product_detail').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
</a>
{% block additionalimages %}
{% set additionalImages = product.additionalImages %}
{% if(additionalImages) %}
<div class=\"row\">
{% for image in additionalImages %}
<div class=\"col-4 mt-3\">
<a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
{{ image.thumbnail('product_detail_small').getHTML({imgAttributes: {class: 'img-thumbnail1 img-fluid'}})|raw }}
</a>
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}
</div>
{% endif %}
</div>
<div class=\"col-md-6 mb-4\">
<div class=\"p-3 pt-4\">
<div class=\"row d-none d-md-block mb-3\">
<div class=\"col-12\">
{% if(product.manufacturer and product.manufacturer.logo) %}
{{ product.manufacturer.logo.thumbnail('product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }}
{% endif %}
<h2 class=\"\">{{ product.oSName }}</h2>
</div>
</div>
<div class=\"row\">
{% block colorvariants %}
<dl class=\"item-property col-12\">
<dt>{{ 'general.color' | trans }}</dt>
<dd>
{% for colorVariant in product.colorVariants %}
<a href=\"{{ app_product_detaillink(colorVariant) }}\"
class=\"btn {{ product.id == colorVariant.id ? 'btn-primary' : 'btn-outline-primary' }}\">
{{ colorVariant.color | colorname }}
</a>
{% endfor %}
</dd>
</dl>
{% endblock %}
{% block detailinfos %}
{% if(product.bodyStyle) %}
<dl class=\"item-property col-6\">
<dt>{{ 'general.body-style' | trans }}</dt>
<dd>{{ product.bodyStyle.name }}</dd>
</dl>
{% endif %}
<dl class=\"item-property col-6\">
<dt>{{ 'general.car-class' | trans }}</dt>
<dd>{{ ('attribute.' ~ product.carClass) | lower | trans }}</dd>
</dl>
{% endblock %}
{% block salesinfos %}
{% if product.saleInformation.saleInformation %}
<dl class=\"item-property col-6 mb-0\">
<dt>{{ 'general.condition' | trans }}</dt>
<dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | lower | trans}}</dd>
</dl>
<dl class=\"item-property col-6 mb-0\">
<dt>{{ 'general.milage' | trans }}</dt>
<dd>{{ product.saleInformation.saleInformation.milage}}</dd>
</dl>
{% endif %}
{% endblock %}
</div>
<hr/>
<div class=\"mt-4 text-center\">
{% set priceInfo = product.oSPriceInfo %}
{% set price = product.oSPrice %}
{% if(priceInfo.rules) %}
<div class=\"alert alert-success mb-4\" role=\"alert\">
<p class=\"small mb-2\"><strong>{{ 'general.your-benefits' | trans }}</strong></p>
<ul class=\"list-unstyled mb-0 small\">
{% for rule in priceInfo.rules %}
<li>{{ rule.label }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if(priceInfo.hasDiscount) %}
<p class=\"detail-price original mb-3\">{{ priceInfo.originalPrice }}</p>
{% endif %}
<p class=\"detail-price mb-2\">{{ price }}</p>
<div class=\"detail-tax text-muted\">
<ul class=\"list-unstyled\">
{% for taxEntry in price.taxEntries %}
<li>{{ taxEntry.entry.name }}: {{ taxEntry.percent }}% ({{ taxEntry.amount.asNumeric | currency(price.currency.shortName) }})</li>
{% endfor %}
</ul>
</div>
{% if product.saleInformation.saleInformation %}
<p class=\"small text-muted mt-1\">{{ 'general.available-in' | trans }} {{ ('attribute.' ~ product.saleInformation.saleInformation.availabilityType) | lower | trans }}</p>
{% endif %}
</div>
<a href=\"{{ path('shop-add-to-cart', { id: product.id }) }}\" class=\"btn btn-success btn-block\">{{ 'general.add-to-cart' | trans }}</a>
</div>
</div>
</div>
<hr>
{% block description %}
<div class=\"mt-5 col-12 text-center\">
<h4 class=\"text-center\">{{ 'general.additional-information' | trans }}</h4>
{% if(product.description) %}
<p>{{ product.description | raw }}</p>
{% endif %}
</div>
{% endblock %}
{% block attributes %}
<div class=\"col-12\">
<ul class=\"nav nav-tabs\" id=\"attributes\" role=\"tablist\">
<li class=\"nav-item\">
<a class=\"nav-link active\" id=\"home-tab\" data-toggle=\"tab\" href=\"#home\" role=\"tab\" aria-controls=\"home\" aria-selected=\"true\">{{ 'general.general' | trans }}</a>
</li>
{% if(product.attributes.dimensions or product.attributes.bodywork) %}
<li class=\"nav-item\">
<a class=\"nav-link\" id=\"dimensions-tab\" data-toggle=\"tab\" href=\"#dimensions\" role=\"tab\" aria-controls=\"dimensions\" aria-selected=\"false\">{{ 'general.dimensions' | trans }}</a>
</li>
{% endif %}
{% if(product.attributes.engine or product.attributes.transmission) %}
<li class=\"nav-item\">
<a class=\"nav-link\" id=\"engine-tab\" data-toggle=\"tab\" href=\"#engine\" role=\"tab\" aria-controls=\"engine\" aria-selected=\"false\">{{ 'general.engine' | trans }}</a>
</li>
{% endif %}
</ul>
<div class=\"tab-content\" id=\"myTabContent\">
<div class=\"tab-pane fade show active\" id=\"home\" role=\"tabpanel\" aria-labelledby=\"home-tab\">
<div class=\"m-3\">
<div class=\"row\">
{% if(product.manufacturer) %}
<dl class=\"item-property col-6 col-md-3\">
<dt>{{ 'general.manufacturer' | trans }}</dt>
<dd>{{ product.manufacturer.name }}</dd>
</dl>
{% endif %}
{{ macros.attribute(product.productionYear, 'general.productionYear') }}
{% if(product.country) %}
<dl class=\"item-property col-6 col-md-3\">
<dt>{{ 'general.country' | trans }}</dt>
<dd>{{ product.country | country }}</dd>
</dl>
{% endif %}
</div>
</div>
</div>
{% if(product.attributes.dimensions or product.attributes.bodywork) %}
<div class=\"tab-pane fade\" id=\"dimensions\" role=\"tabpanel\" aria-labelledby=\"dimensions-tab\">
<div class=\"m-3\">
<div class=\"row\">
{% if(product.attributes.dimensions) %}
{{ macros.attribute(product.attributes.dimensions.length, 'general.length') }}
{{ macros.attribute(product.attributes.dimensions.width, 'general.width') }}
{{ macros.attribute(product.attributes.dimensions.wheelbase, 'general.wheelbase') }}
{{ macros.attribute(product.attributes.dimensions.weight, 'general.weight') }}
{% endif %}
{% if(product.attributes.bodywork) %}
{{ macros.attribute(product.attributes.bodywork.numberOfDoors, 'general.numberOfDoors') }}
{{ macros.attribute(product.attributes.bodywork.numberOfSeats, 'general.numberOfSeats') }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% if(product.attributes.engine or product.attributes.transmission) %}
<div class=\"tab-pane fade\" id=\"engine\" role=\"tabpanel\" aria-labelledby=\"engine-tab\">
<div class=\"m-3\">
<div class=\"row\">
{% if(product.attributes.engine) %}
{{ macros.attribute(product.attributes.engine.cylinders, 'general.cylinders') }}
{{ macros.attribute(product.attributes.engine.capacity, 'general.capacity') }}
{{ macros.attribute(product.attributes.engine.power, 'general.power') }}
{{ macros.attribute(product.attributes.engine.engineLocation, 'general.engineLocation') }}
{% endif %}
{% if(product.attributes.transmission) %}
{{ macros.attribute(product.attributes.transmission.wheelDrive, 'general.wheelDrive', true, 'attribute.') }}
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block productrelations %}
{% set accessories = product.accessories %}
{% if(accessories.count) %}
<hr>
<div class=\"mt-5 col-12\">
<h4 class=\"text-center\">{{ 'general.accessories' | trans }}</h4>
<div class=\"row\">
{% for item in accessories %}
<div class=\"col-md-3 d-flex align-items-stretch\">
{% include 'product/product_teaser.html.twig' with {'product': item} %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}
</div>
</div>
{% endblock %}", "product/detail.html.twig", "/var/www/html/siteone/templates/product/detail.html.twig");
}
}