<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @SchilderSysteme/storefront/component/product/table.html.twig */
class __TwigTemplate_ad1d89ea8bbd31a8865d3e9ff7064b32ce4c8df3139bc3d67909c7afdc4119a6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'component_product_table_container' => [$this, 'block_component_product_table_container'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SchilderSysteme/storefront/component/product/table.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SchilderSysteme/storefront/component/product/table.html.twig"));
// line 1
$this->displayBlock('component_product_table_container', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_component_product_table_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_table_container"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_table_container"));
// line 2
echo " ";
$context["variants"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 2), "customFields", [], "any", false, false, false, 2), "variants", [], "any", false, false, false, 2);
// line 3
echo " ";
$context["ruleId"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 3), "cheapestPrice", [], "any", false, false, false, 3), "ruleId", [], "any", false, false, false, 3);
// line 4
echo " ";
$context["staplelength"] = (twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 4), "elements", [], "any", false, false, false, 4)) - 1);
// line 5
echo "
";
// line 6
if ((1 === twig_compare(twig_length_filter($this->env, ($context["variants"] ?? null)), 0))) {
// line 7
echo " ";
if ((1 === twig_compare(twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 7), "calculatedPrices", [], "any", false, false, false, 7)), 1))) {
// line 8
echo " ";
$context["bestprice"] = false;
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, ($context["variants"] ?? null), function ($__variant__) use ($context, $macros) { $context["variant"] = $__variant__; return (0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["variant"], "availableStock", [], "any", false, false, false, 9), true)); }));
foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
// line 10
echo " ";
if ((0 !== twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "customFields", [], "any", false, false, false, 10), "custom_units_piece_per_pu", [], "any", false, false, false, 10), 1))) {
// line 11
echo " ";
$context["bestprice"] = true;
// line 12
echo " ";
}
// line 13
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo " ";
if ((0 === twig_compare(($context["bestprice"] ?? null), true))) {
// line 15
echo " <div class=\"product-detail-table-container\">
<table class=\"product-detail-table ";
// line 16
if ((1 === twig_compare(twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 16)), 1))) {
echo "has-badge";
}
echo "\">
<tr class=\"table--header\">
<th align=\"center\" class=\"price-list-item\">";
// line 18
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.TableArtNr"));
echo "</th>
<th align=\"center\" class=\"price-list-item\">Variante</th>
<th align=\"center\" class=\"price-list-item\">VE</th>
<th align=\"center\"
class=\"price-list-item\">";
// line 22
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tableAvailable"));
echo "</th>
<th align=\"center\"
class=\"price-list-item\">";
// line 24
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tableQuantity"));
echo "</th>
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 25), "elements", [], "any", false, false, false, 25));
$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["price"]) {
// line 26
echo " ";
if (((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 26), false)) && (0 >= twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 26), 4)))) {
// line 27
echo " <th align=\"center\" class=\"price-list-item\">
";
// line 28
if ((1 === twig_compare(twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 28)), 1))) {
// line 29
echo " <div class=\"discount-badge\">
";
// line 30
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 30), 1))) {
echo "-5%";
}
// line 31
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 31), 2))) {
echo "-8%";
}
// line 32
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 32), 3))) {
echo "-10%";
}
// line 33
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 33), 4))) {
echo "-12%";
}
// line 34
echo " </div>
";
}
// line 36
echo " ";
echo sw_escape_filter($this->env, (sw_get_attribute($this->env, $this->source, $context["price"], "quantity", [], "any", false, false, false, 36) + 1), "html", null, true);
echo " VE / Stück
</th>
";
}
// line 39
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['price'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo " <th align=\"center\"
class=\"price-list-item\">";
// line 41
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.tableDesiredQuantityVE"));
echo "</th>
</tr>
<tr>
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, ($context["variants"] ?? null), function ($__variant__) use ($context, $macros) { $context["variant"] = $__variant__; return (0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["variant"], "availableStock", [], "any", false, false, false, 44), true)); }));
$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["variant"]) {
// line 45
echo " ";
if ((0 !== twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "customFields", [], "any", false, false, false, 45), "custom_units_piece_per_pu", [], "any", false, false, false, 45), "1"))) {
// line 46
echo " ";
$context["pricesVariant"] = twig_sort_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "prices", [], "any", false, false, false, 46), "elements", [], "any", false, false, false, 46), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (sw_get_attribute($this->env, $this->source, ($context["a"] ?? null), "quantityStart", [], "any", false, false, false, 46) <=> sw_get_attribute($this->env, $this->source, ($context["b"] ?? null), "quantityStart", [], "any", false, false, false, 46)); });
// line 47
echo " <tr>
<td>";
// line 48
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["variant"], "productNumber", [], "any", false, false, false, 48), "html", null, true);
echo "</td>
<td>
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, $context["variant"], "variation", [], "any", false, false, false, 50));
$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["variation"]) {
// line 51
echo " ";
if (sw_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 51)) {
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["variation"], "option", [], "any", false, false, false, 51), "html", null, true);
} else {
echo ", ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["variation"], "option", [], "any", false, false, false, 51), "html", null, true);
}
// line 52
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['variation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo " </td>
<td>";
// line 55
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "customFields", [], "any", false, false, false, 55), "custom_units_piece_per_pu", [], "any", false, false, false, 55), "html", null, true);
echo "</td>
<td class=\"d-flex\">";
// line 56
if (sw_get_attribute($this->env, $this->source, $context["variant"], "availableStock", [], "any", false, false, false, 56)) {
echo " <span
class=\"delivery-status-indicator bg-success mx-auto\"></span>";
}
// line 57
echo "</td>
<td>";
// line 58
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_round((sw_get_attribute($this->env, $this->source, twig_first($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "price", [], "any", false, false, false, 58), "elements", [], "any", false, false, false, 58)), "net", [], "any", false, false, false, 58) / sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "customFields", [], "any", false, false, false, 58), "custom_units_piece_per_pu", [], "any", false, false, false, 58)), 2, "floor")), "html", null, true);
echo "</td>
";
// line 60
$context["arrayRuleId"] = twig_array_filter($this->env, ($context["pricesVariant"] ?? null), function ($__el__) use ($context, $macros) { $context["el"] = $__el__; return (0 === twig_compare(sw_get_attribute($this->env, $this->source, ($context["el"] ?? null), "ruleId", [], "any", false, false, false, 60), ($context["ruleId"] ?? null))); });
// line 61
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, ($context["staplelength"] ?? null)));
$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["i"]) {
// line 62
echo " ";
$context["mainloop"] = (sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 62) + 1);
// line 63
echo " ";
if ((0 >= twig_compare(($context["mainloop"] ?? null), 5))) {
// line 64
echo " <td align=\"center\">
<strong>
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["arrayRuleId"] ?? null));
$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 67
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 67), ($context["mainloop"] ?? null)))) {
// line 68
echo " ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_round((sw_get_attribute($this->env, $this->source, twig_first($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "price", [], "any", false, false, false, 68), "elements", [], "any", false, false, false, 68)), "net", [], "any", false, false, false, 68) / sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["variant"], "customFields", [], "any", false, false, false, 68), "custom_units_piece_per_pu", [], "any", false, false, false, 68)), 2, "floor")), "html", null, true);
echo "
";
}
// line 70
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['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </strong>
</td>
";
}
// line 74
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['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo " <td>
";
// line 76
$this->loadTemplate("@SchilderSysteme/storefront/page/product-detail/buy-widget-form-table.html.twig", "@SchilderSysteme/storefront/component/product/table.html.twig", 76)->display(twig_array_merge($context, ["productTable" => // line 77
$context["variant"]]));
// line 79
echo " </td>
</tr>
";
}
// line 82
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['variant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 83
echo " </table>
</div>
";
}
// line 86
echo " ";
}
// line 87
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SchilderSysteme/storefront/component/product/table.html.twig";
}
public function getDebugInfo()
{
return array ( 426 => 87, 423 => 86, 418 => 83, 404 => 82, 399 => 79, 397 => 77, 396 => 76, 393 => 75, 379 => 74, 374 => 71, 360 => 70, 354 => 68, 351 => 67, 334 => 66, 330 => 64, 327 => 63, 324 => 62, 306 => 61, 304 => 60, 299 => 58, 296 => 57, 291 => 56, 287 => 55, 283 => 53, 269 => 52, 261 => 51, 244 => 50, 239 => 48, 236 => 47, 233 => 46, 230 => 45, 213 => 44, 207 => 41, 204 => 40, 190 => 39, 183 => 36, 179 => 34, 174 => 33, 169 => 32, 164 => 31, 160 => 30, 157 => 29, 155 => 28, 152 => 27, 149 => 26, 132 => 25, 128 => 24, 123 => 22, 116 => 18, 109 => 16, 106 => 15, 103 => 14, 97 => 13, 94 => 12, 91 => 11, 88 => 10, 83 => 9, 80 => 8, 77 => 7, 75 => 6, 72 => 5, 69 => 4, 66 => 3, 63 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% block component_product_table_container %}
{% set variants = page.product.customFields.variants %}
{% set ruleId = page.product.cheapestPrice.ruleId %}
{% set staplelength = product.calculatedPrices.elements|length - 1 %}
{% if variants|length > 0 %}
{% if page.product.calculatedPrices|length > 1 %}
{% set bestprice = false %}
{% for variant in variants|filter((variant) => variant.availableStock == true) %}
{% if variant.customFields.custom_units_piece_per_pu != 1 %}
{% set bestprice = true %}
{% endif %}
{% endfor %}
{% if bestprice == true %}
<div class=\"product-detail-table-container\">
<table class=\"product-detail-table {% if product.calculatedPrices|length > 1 %}has-badge{% endif %}\">
<tr class=\"table--header\">
<th align=\"center\" class=\"price-list-item\">{{ \"detail.TableArtNr\"|trans|sw_sanitize }}</th>
<th align=\"center\" class=\"price-list-item\">Variante</th>
<th align=\"center\" class=\"price-list-item\">VE</th>
<th align=\"center\"
class=\"price-list-item\">{{ \"detail.tableAvailable\"|trans|sw_sanitize }}</th>
<th align=\"center\"
class=\"price-list-item\">{{ \"detail.tableQuantity\"|trans|sw_sanitize }}</th>
{% for price in product.calculatedPrices.elements %}
{% if loop.last == false and loop.index<=4 %}
<th align=\"center\" class=\"price-list-item\">
{% if product.calculatedPrices|length > 1 %}
<div class=\"discount-badge\">
{% if loop.index == 1 %}-5%{% endif %}
{% if loop.index == 2 %}-8%{% endif %}
{% if loop.index == 3 %}-10%{% endif %}
{% if loop.index == 4 %}-12%{% endif %}
</div>
{% endif %}
{{ (price.quantity + 1) }} VE / Stück
</th>
{% endif %}
{% endfor %}
<th align=\"center\"
class=\"price-list-item\">{{ \"detail.tableDesiredQuantityVE\"|trans|sw_sanitize }}</th>
</tr>
<tr>
{% for variant in variants|filter((variant) => variant.availableStock == true) %}
{% if variant.customFields.custom_units_piece_per_pu !='1' %}
{% set pricesVariant = variant.prices.elements|sort((a, b) => a.quantityStart <=> b.quantityStart) %}
<tr>
<td>{{ variant.productNumber }}</td>
<td>
{% for variation in variant.variation %}
{% if loop.first %}{{ variation.option }}{% else %}, {{ variation.option }}{% endif %}
{% endfor %}
</td>
<td>{{ variant.customFields.custom_units_piece_per_pu }}</td>
<td class=\"d-flex\">{% if variant.availableStock %} <span
class=\"delivery-status-indicator bg-success mx-auto\"></span>{% endif %}</td>
<td>{{ (variant.price.elements|first.net/variant.customFields.custom_units_piece_per_pu)|round(2, 'floor')|currency }}</td>
{% set arrayRuleId = pricesVariant|filter((el) => el.ruleId == ruleId) %}
{% for i in 1..staplelength %}
{% set mainloop = loop.index + 1 %}
{% if mainloop <= 5 %}
<td align=\"center\">
<strong>
{% for item in arrayRuleId %}
{% if loop.index == mainloop %}
{{ (item.price.elements|first.net/variant.customFields.custom_units_piece_per_pu)|round(2, 'floor')|currency }}
{% endif %}
{% endfor %}
</strong>
</td>
{% endif %}
{% endfor %}
<td>
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form-table.html.twig' with {
productTable: variant
} %}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}", "@SchilderSysteme/storefront/component/product/table.html.twig", "/data/www/stage.tuerschildshop/custom/plugins/SchilderSysteme/src/Resources/views/storefront/component/product/table.html.twig");
}
}