<?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;
/* VisualMediaProductBundle/views/Product/view.html.twig */
class __TwigTemplate_c7ca2d206a0a126c7c935886938000b2 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.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", "VisualMediaProductBundle/views/Product/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaProductBundle/views/Product/view.html.twig"));
// line 3
$context["breadcrumbs"] = [];
// line 1
$this->parent = $this->loadTemplate("Layout/base.html.twig", "VisualMediaProductBundle/views/Product/view.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 21
public function block_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 22
echo " ";
// line 23
echo "
<article class=\"container product-detail\">
";
// line 25
$this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig", "VisualMediaProductBundle/views/Product/view.html.twig", 25)->display(twig_array_merge($context, ["breadcrumbs" => (isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs", $context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.', 25, $this->source); })())]));
// line 26
echo "
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<span class=\"product-detail_image\">
<div class=\"single-item\">
";
// line 31
$context["height"] = 256;
// line 32
echo " ";
$context["photo"] = $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(((twig_get_attribute($this->env, $this->source, twig_first($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.', 32, $this->source); })()), "photos", [], "any", false, false, false, 32)), "upload", [], "any", true, true, false, 32)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_first($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.', 32, $this->source); })()), "photos", [], "any", false, false, false, 32)), "upload", [], "any", false, false, false, 32), null)) : (null)), ["height" => (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 32, $this->source); })())]);
// line 33
echo " ";
$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.', 33, $this->source); })()), "photos", [], "any", false, false, false, 33));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 34
echo " <div>
<img src=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["photo"], "upload", [], "any", false, false, false, 35), ["height" => (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 35, $this->source); })())]), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 35, $this->source); })()), "html", null, true);
echo "\" class=\"img-fluid\" />
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo " </div>
</span>
</div>
<div class=\"col-12 col-lg-6\">
<h1>
";
// line 45
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.', 45, $this->source); })()), "title", [], "any", false, false, false, 45), "html", null, true);
echo "<br>
<span class=\"product-price\">
";
// line 47
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.', 47, $this->source); })()), "previousPrice", [], "any", false, false, false, 47) > 0)) {
// line 48
echo " <span class=\"product-price_prev\">€ ";
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(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.', 48, $this->source); })()), "previousPrice", [], "any", false, false, false, 48)), "html", null, true);
echo "</span>
";
}
// line 50
echo "
<span class=\"product-price_now\">€ ";
// line 51
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(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.', 51, $this->source); })()), "price", [], "any", false, false, false, 51)), "html", null, true);
echo "</span>
</span>
</h1>
";
// line 55
$context["htmlContent"] = ((twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "htmlContent", [], "any", false, false, false, 55), ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", false, false, false, 55), null)) : (null)))) : (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", false, false, false, 55), null)) : (null))));
// line 56
echo " ";
if ( !twig_test_empty((isset($context["htmlContent"]) || array_key_exists("htmlContent", $context) ? $context["htmlContent"] : (function () { throw new RuntimeError('Variable "htmlContent" does not exist.', 56, $this->source); })()))) {
// line 57
echo " <span class=\"product-detail_description\">
";
// line 58
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigContentScan']->scan((isset($context["htmlContent"]) || array_key_exists("htmlContent", $context) ? $context["htmlContent"] : (function () { throw new RuntimeError('Variable "htmlContent" does not exist.', 58, $this->source); })())), "html", null, true);
echo "
</span>
";
}
// line 61
echo "
<div class=\"btn-group cart\">
<a href=\"";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_add", ["type" => "product", "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.', 63, $this->source); })()), "id", [], "any", false, false, false, 63)]), "html", null, true);
echo "\" class=\"btn btn-success\">
<i class=\"fal fa-plus mr-1\"></i>
";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.add_cart_btn", [], "frontend"), "html", null, true);
echo "
</a>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<table class=\"table\">
<tr>
<th colspan=\"2\" style=\"border-width: 0px;\">
<h2 class=\"my-0\"><i class=\"fas fa-info mr-2\"></i>Product eigenschappen</h2>
</th>
</tr>
";
// line 78
$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.', 78, $this->source); })()), "flattenedAttributes", [], "any", false, false, false, 78));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 78), "visible", [], "any", false, false, false, 78)) {
// line 79
echo " <tr>
<td class=\"pl-2\" style=\"width: 50%; border-color: #ddd;\">
";
// line 81
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 81), "title", [], "any", false, false, false, 81)), "html", null, true);
echo "
</td>
<td style=\"border-color: #ddd;\">";
// line 85
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["attribute"], "coherentAttributes", [], "any", false, false, false, 85));
$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["content"]) {
// line 86
echo twig_escape_filter($this->env, $context["content"], "html", null, true);
// line 88
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 88), "unit", [], "any", false, false, false, 88))) {
// line 89
echo "<span class=\"product-unit\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 89), "unit", [], "any", false, false, false, 89), "html", null, true);
echo "</span>";
}
// line 92
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 92)) {
echo ", ";
}
++$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['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 94
echo "</td>
</tr>
";
$context['_iterated'] = true;
}
}
if (!$context['_iterated']) {
// line 97
echo " <tr colspan=\"2\">
<td>Er zijn geen product eigenschappen beschikbaar.</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
echo " </table>
</div>
<div class=\"col-12 mt-3\">
";
// line 105
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.', 105, $this->source); })()), "productVariant", [], "any", false, false, false, 105)) {
// line 106
echo " <table class=\"table\">
<tr>
<th style=\"border-width: 0px;\">
<h2 class=\"my-0\"><i class=\"fas fa-boxes mr-2\"></i>Product varianten</h2>
</th>
";
// line 112
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 112), "distinctAttributes", [], "any", true, true, false, 112)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 112), "distinctAttributes", [], "any", false, false, false, 112), [])) : ([])));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 113
echo " <th style=\"border-width: 0px;\"><b>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 113), "html", null, true);
echo "</b></th>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo "
<th style=\"border-width: 0px;\"><b>Prijs</b></th>
</tr>
";
// line 119
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["variants"]) || array_key_exists("variants", $context) ? $context["variants"] : (function () { throw new RuntimeError('Variable "variants" does not exist.', 119, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
// line 120
echo " <tr";
if ((twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 120) == 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.', 120, $this->source); })()), "slug", [], "any", false, false, false, 120))) {
echo " style=\"background-color: #eee;\"";
}
echo ">
<td class=\"pl-2\" style=\"border-color: #ddd;\">
";
// line 122
if ((twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 122) == 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); })()), "slug", [], "any", false, false, false, 122))) {
// line 123
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variant"], "title", [], "any", false, false, false, 123), "html", null, true);
echo "
";
} else {
// line 125
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["slug" => twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 125)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variant"], "title", [], "any", false, false, false, 125), "html", null, true);
echo "</a>
";
}
// line 127
echo " </td>
";
// line 129
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["variant"], "distinctAttributes", [], "any", false, false, false, 129));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 130
echo " <td style=\"border-color: #ddd;\">";
// line 131
echo twig_escape_filter($this->env, ((array_key_exists("content", $context)) ? (_twig_default_filter($context["content"], "-")) : ("-")), "html", null, true);
// line 133
if ( !twig_test_empty(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, true, false, 133), "unit", [], "any", true, true, false, 133)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, true, false, 133), "unit", [], "any", false, false, false, 133), null)) : (null)))) {
// line 134
echo "<sub style=\"font-size: 1.0em; padding-left: 2px;\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 134), "unit", [], "any", false, false, false, 134), "html", null, true);
echo "</sub>";
}
// line 136
echo "</td>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 138
echo "
<td style=\"border-color: #ddd;\">
€ ";
// line 140
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(twig_get_attribute($this->env, $this->source, $context["variant"], "price", [], "any", false, false, false, 140)), "html", null, true);
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 144
echo " </table>
";
}
// line 146
echo " </div>
</div>
</article>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "VisualMediaProductBundle/views/Product/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 363 => 146, 359 => 144, 349 => 140, 345 => 138, 338 => 136, 333 => 134, 331 => 133, 329 => 131, 327 => 130, 323 => 129, 319 => 127, 311 => 125, 305 => 123, 303 => 122, 295 => 120, 291 => 119, 285 => 115, 276 => 113, 272 => 112, 264 => 106, 262 => 105, 256 => 101, 247 => 97, 239 => 94, 223 => 92, 218 => 89, 216 => 88, 214 => 86, 197 => 85, 191 => 81, 187 => 79, 181 => 78, 165 => 65, 160 => 63, 156 => 61, 150 => 58, 147 => 57, 144 => 56, 142 => 55, 135 => 51, 132 => 50, 126 => 48, 124 => 47, 119 => 45, 111 => 39, 99 => 35, 96 => 34, 91 => 33, 88 => 32, 86 => 31, 79 => 26, 77 => 25, 73 => 23, 71 => 22, 61 => 21, 50 => 1, 48 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% set breadcrumbs = [] %}
{# {% if product.categories|first is not empty %}
{% set breadcrumbs = breadcrumbs|merge([
{ title: 'Categorie \"' ~ product.categories|first.category.title|default('?') ~ '\"', 'path': path('product_category', { slug: product.categories|first.category.slug }) },
]) %}
{% endif %}
{% if product.productVariant %}
{% set breadcrumbs = breadcrumbs|merge([
{ title: 'Hoofdproduct \"' ~ product.parent.title ~ '\"', 'path': path('product', { slug: product.parent.slug }) },
]) %}
{% endif %}
{% set breadcrumbs = breadcrumbs|merge([
{ title: 'Product \"' ~ product.title ~ '\"' },
]) %} #}
{% block main %}
{#% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: product.photos|default(product.parent.photos|default(null)) } only %#}
<article class=\"container product-detail\">
{% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { breadcrumbs: breadcrumbs } %}
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<span class=\"product-detail_image\">
<div class=\"single-item\">
{% set height = 256 %}
{% set photo = product.photos|first.upload|default(null)|url({ height: height }) %}
{% for photo in product.photos %}
<div>
<img src=\"{{ photo.upload|url({ height: height }) }}\" height=\"{{ height }}\" class=\"img-fluid\" />
</div>
{% endfor %}
</div>
</span>
</div>
<div class=\"col-12 col-lg-6\">
<h1>
{{ product.title }}<br>
<span class=\"product-price\">
{% if product.previousPrice > 0 %}
<span class=\"product-price_prev\">€ {{ product.previousPrice|price_format }}</span>
{% endif %}
<span class=\"product-price_now\">€ {{ product.price|price_format }}</span>
</span>
</h1>
{% set htmlContent = product.htmlContent|default(product.parent.htmlContent|default(null)) %}
{% if htmlContent is not empty %}
<span class=\"product-detail_description\">
{{ htmlContent|scan }}
</span>
{% endif %}
<div class=\"btn-group cart\">
<a href=\"{{ path('cart_add', { type: 'product', id: product.id }) }}\" class=\"btn btn-success\">
<i class=\"fal fa-plus mr-1\"></i>
{{ 'cart.add_cart_btn'|trans({}, 'frontend') }}
</a>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<table class=\"table\">
<tr>
<th colspan=\"2\" style=\"border-width: 0px;\">
<h2 class=\"my-0\"><i class=\"fas fa-info mr-2\"></i>Product eigenschappen</h2>
</th>
</tr>
{% for attribute in product.flattenedAttributes if attribute.attribute.visible %}
<tr>
<td class=\"pl-2\" style=\"width: 50%; border-color: #ddd;\">
{{ attribute.attribute.title|capitalize }}
</td>
<td style=\"border-color: #ddd;\">
{%- for content in attribute.coherentAttributes -%}
{{- content -}}
{%- if content.attribute.unit is not empty -%}
<span class=\"product-unit\">{{ content.attribute.unit }}</span>
{%- endif -%}
{%- if not loop.last -%}, {%- endif -%}
{%- endfor -%}
</td>
</tr>
{% else %}
<tr colspan=\"2\">
<td>Er zijn geen product eigenschappen beschikbaar.</td>
</tr>
{% endfor %}
</table>
</div>
<div class=\"col-12 mt-3\">
{% if product.productVariant %}
<table class=\"table\">
<tr>
<th style=\"border-width: 0px;\">
<h2 class=\"my-0\"><i class=\"fas fa-boxes mr-2\"></i>Product varianten</h2>
</th>
{% for content in product.parent.distinctAttributes|default([]) %}
<th style=\"border-width: 0px;\"><b>{{ content.attribute }}</b></th>
{% endfor %}
<th style=\"border-width: 0px;\"><b>Prijs</b></th>
</tr>
{% for variant in variants %}
<tr{% if variant.slug == product.slug %} style=\"background-color: #eee;\"{% endif %}>
<td class=\"pl-2\" style=\"border-color: #ddd;\">
{% if variant.slug == product.slug %}
{{ variant.title }}
{% else %}
<a href=\"{{ path('product', { slug: variant.slug }) }}\">{{ variant.title }}</a>
{% endif %}
</td>
{% for content in variant.distinctAttributes %}
<td style=\"border-color: #ddd;\">
{{- content|default('-') -}}
{%- if content.attribute.unit|default(null) is not empty -%}
<sub style=\"font-size: 1.0em; padding-left: 2px;\">{{ content.attribute.unit }}</sub>
{%- endif -%}
</td>
{% endfor %}
<td style=\"border-color: #ddd;\">
€ {{ variant.price|price_format }}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
</div>
</article>
{% endblock %}
", "VisualMediaProductBundle/views/Product/view.html.twig", "/var/www/public_html/templates/VisualMediaProductBundle/views/Product/view.html.twig");
}
}