var/cache/dev/twig/ad/adf73c19cb80e20f73d5d8ec892f0b11f49628cefb51683570a80e4ec6c3de34.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/product-table-brick/view.html.twig */
  16. class __TwigTemplate_964436efdd695f14360fa08b2cf3902c17d3be5f381a4f2428e00f84021e5a25 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  40.         // line 1
  41.         $context["selectedProducts"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""selectedProducts"), "getData", [], "method"falsefalsetrue1);
  42.         // line 2
  43.         $context["selectedProperties"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""selectedProperties"), "getData", [], "method"falsefalsetrue2);
  44.         // line 3
  45.         yield "
  46. ";
  47.         // line 4
  48.         yield from $this->loadTemplate("areas/product-table-brick/view.html.twig""areas/product-table-brick/view.html.twig"4"1481781932")->unwrap()->yield($context);
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.         yield from [];
  54.     }
  55.     /**
  56.      * @codeCoverageIgnore
  57.      */
  58.     public function getTemplateName(): string
  59.     {
  60.         return "areas/product-table-brick/view.html.twig";
  61.     }
  62.     /**
  63.      * @codeCoverageIgnore
  64.      */
  65.     public function isTraitable(): bool
  66.     {
  67.         return false;
  68.     }
  69.     /**
  70.      * @codeCoverageIgnore
  71.      */
  72.     public function getDebugInfo(): array
  73.     {
  74.         return array (  57 => 4,  54 => 3,  52 => 2,  50 => 1,);
  75.     }
  76.     public function getSourceContext(): Source
  77.     {
  78.         return new Source("{% set selectedProducts = pimcore_relations('selectedProducts').getData() %}
  79. {% set selectedProperties = pimcore_relations('selectedProperties').getData() %}
  80. {% embed 'app/area-brick-layout.html.twig' %}
  81.     {% block content %}
  82.         {% if selectedProducts is empty %}
  83.             {% if editmode %}
  84.                 {% embed 'app/editmodenotice.html.twig' %}
  85.                     {% block title %} Nog geen alternatieve producten geselecteerd. {% endblock %}
  86.                     {% block information %} Kies alternatieve producten middels het potloodje. {% endblock %}
  87.                 {% endembed %}
  88.             {% endif %}
  89.         {% else %}
  90.             <section class=\"py-10 bg-blue-200 lg:py-20\" x-data=\"{ tableOpen: false }\">
  91.                 <div class=\"overflow-hidden lg:container\">
  92.                     {% if editmode and selectedProperties is empty %}
  93.                         {% embed 'app/editmodenotice.html.twig' %}
  94.                             {% block title %} Nog geen producteneigenschappen geselecteerd. {% endblock %}
  95.                             {% block information %} Kies producteneigenschappen middels het potloodje {% endblock %}
  96.                         {% endembed %}
  97.                     {% endif %}
  98.                     <div class=\"grid grid-cols-12 gap-6\">
  99.                         <div class=\"col-span-12\">
  100.                             <h2 class=\"mb-4 text-2xl text-center md:text-3xl lg:text-4xl\">
  101.                                 {% include 'areas/unique-selling-point-brick/partials/_title.html.twig' %}
  102.                             </h2>
  103.                         </div>
  104.                     </div>
  105.                     {#
  106.                     Here we set the maxinum amount of specs that are shown on initial page load.
  107.                     If there are more then this amount then those will be hidden, a button will then be shown
  108.                     #}
  109.                     {% set shownSpecsOnInitialLoad = 8 %}
  110.                     {% set showReadMoreSpecsButton = false %}
  111.                     <div class=\"px-0 overflow-x-auto lg:pb-6 lg:pr-6 \">
  112.                         <table class=\"w-full lg:border-separate text-md lg:text-base lg:border-slate-500 lg:border-spacing-2\" >
  113.                             {# First, we generate the table header based on the selected properties. #}
  114.                             <thead class=\"bg-gray-50\">
  115.                                 <tr>
  116.                                     <th>
  117.                                         <!-- title -->
  118.                                     </th>
  119.                                     {% for property in selectedProperties ?: [] %}
  120.                                         <th scope=\"col\" class=\"px-4 py-2 font-normal text-left text-gray-900 lg:px-6 lg:py-4 {{ loop.index > 2 ? 'hidden lg:table-cell' : '' }}\">
  121.                                             {{ property.title ?: property.key }}
  122.                                         </th>
  123.                                     {% endfor %}
  124.                                     <th class=\"hidden lg:table-cell\">
  125.                                         <!-- info -->
  126.                                     </th>
  127.                                     <th class=\"hidden lg:table-cell\">
  128.                                         <!-- button -->
  129.                                     </th>
  130.                                     <th>
  131.                                         <!-- chevron  -->
  132.                                     </th>
  133.                                 </tr>
  134.                             </thead>
  135.                             {# then, we will output the product-rows #}
  136.                             <tbody class=\"gap-6\" x-data=\"{ rowOpen: false }\">
  137.                                 {% for product in selectedProducts %}
  138.                                     <tr
  139.                                         x-description=\"Odd row\"
  140.                                         class=\"bg-white border-t-8 border-blue-200 lg:border-t-0\"
  141.                                         {% if loop.index >= shownSpecsOnInitialLoad %}
  142.                                             :class=\"tableOpen ? '' : 'hidden'\"
  143.                                         {% endif %}
  144.                                     >
  145.                                         {# Output the product title as the first column in this row #}
  146.                                         <td class=\"px-4 py-5 mb-4 font-bold leading-4 text-md lg:text-xl lg:px-6 lg:py-4 lg:rounded-l-md whitespace-nowrap\">
  147.                                             <a href=\"{{ product.page.url | trimUrl }}\">
  148.                                                 <span class=\"hidden md:inline-block\">{{ product.name }}</span> <span class=\"text-blue\">{{ product.code ?? \"\" }}</span>
  149.                                             </a>
  150.                                         </td>
  151.                                         {#
  152.                                         then we will loop through all the selected properties...
  153.                                         We always render a column for each selected property, we do this to maintain table-like
  154.                                         formatting. In case a selected spec to highlight does not exist in a product
  155.                                         we will simply show an empty column for that product :)
  156.                                         #}
  157.                                         {% set customCounter = 0 %}
  158.                                         {% for property in selectedProperties ?: [] %}
  159.                                             {% set found = false %}
  160.                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  161.                                                 {% set specificationObject = spec.specification_property.data %}
  162.                                                 {% if specificationObject.id == property.id %}
  163.                                                     {% set found = true %}
  164.                                                     {% set customCounter = customCounter + 1 %}
  165.                                                     {# Output the specification value and unit to this row #}
  166.                                                     <td class=\"px-4 py-4 leading-4 lg:px-6 lg:py-4  whitespace-nowrap {{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  167.                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  168.                                                     </td>
  169.                                                     {# skip the rest of the spec-for-loop when entry is found #}
  170.                                                     {% break %}
  171.                                                 {% endif %}
  172.                                             {% endfor %}
  173.                                             {% if not found %}
  174.                                                 {% set customCounter = customCounter + 1 %}
  175.                                                 <td class=\"{{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  176.                                                     <!-- empty -->
  177.                                                 </td>
  178.                                             {% endif %}
  179.                                         {% endfor %}
  180.                                         <td class=\"hidden px-4 py-2 lg:px-6 lg:py-4 lg:table-cell lg:rounded-r-md\">
  181.                                             {% include 'includes/partials/_rental-form.html.twig' with {
  182.                                                 buttonText: 'Offerte aanvragen'|trans,
  183.                                                 buttonClass: 'button button__green',
  184.                                                 trackButtonId: 'conversion_rentnow',
  185.                                                 requestUrl: data.request.url
  186.                                             } %}
  187.                                         </td>
  188.                                         <td class=\"content-end px-4 py-2 text-right md:hidden lg:px-6 lg:py-4 group \">
  189.                                             <div
  190.                                                 class=\"inline-flex items-center justify-center w-8 h-8 bg-gray-200 rounded-full cursor-pointer text-blue group-hover:bg-blue group-hover:text-white lg:hidden\"
  191.                                                 :class=\"(rowOpen == {{loop.index}}) ? '-rotate-90' : 'rotate-90'\"
  192.                                                 @click=\"(rowOpen == {{loop.index}}) ? rowOpen = false : rowOpen = {{loop.index}}\"
  193.                                             >
  194.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"16\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg>
  195.                                             </div>
  196.                                         </td>
  197.                                     </tr>
  198.                                     <tr
  199.                                         class=\"bg-white border-2 rounded-md lg:hidden\"
  200.                                         :class=\"(rowOpen == {{loop.index}}) ? 'table-row' : 'hidden'\"
  201.                                     >
  202.                                         <td colspan=\"4\" class=\"px-4 pt-6 pb-6 text-sm\">
  203.                                             {% for property in selectedProperties ?: [] %}
  204.                                                 {% if loop.index > 2 %}
  205.                                                     <div class=\"flex justify-between py-1\">
  206.                                                         <span>{{ property.title ?: property.key }}</span>
  207.                                                         <span class=\"text-right text-blue\">
  208.                                                             {% set customCounter = 0 %}
  209.                                                             {% set found = false %}
  210.                                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  211.                                                                 {% set specificationObject = spec.specification_property.data %}
  212.                                                                 {% if specificationObject.id == property.id %}
  213.                                                                     {% set found = true %}
  214.                                                                     {% set customCounter = customCounter + 1 %}
  215.                                                                     {# Output the specification value and unit to this row #}
  216.                                                                     <div class=\" {{ customCounter > 2 ? '' : '' }}\">
  217.                                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  218.                                                                     </div>
  219.                                                                     {# skip the rest of the spec-for-loop when entry is found #}
  220.                                                                     {% break %}
  221.                                                                 {% endif %}
  222.                                                             {% endfor %}
  223.                                                         </span>
  224.                                                     </div>
  225.                                                 {% endif %}
  226.                                             {% endfor %}
  227.                                             <div class=\"lg:py-1.5 hidden lg:flex lg:justify-between \">
  228.                                                 <span>{{ 'Meer informatie'|trans }}</span>
  229.                                                 <span class=\"relative text-right text-blue\" x-data=\"{ tooltipOpen: false }\">
  230.                                                     <span
  231.                                                         class=\"cursor-pointer\"
  232.                                                         @click=\"tooltipOpen = !tooltipOpen\"
  233.                                                         @click.outside=\"tooltipOpen = false\"
  234.                                                     >
  235.                                                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M8.036 5.235c.433 0 .747-.081.942-.244.196-.162.294-.418.294-.767 0-.358-.098-.618-.294-.78-.195-.163-.51-.244-.942-.244-.433 0-.747.081-.943.243-.195.163-.293.423-.293.78 0 .35.098.606.293.768.196.163.51.244.943.244Zm1.06 6.965V5.959H6.976V12.2h2.122ZM8 14.4A6.4 6.4 0 1 1 14.4 8 6.407 6.407 0 0 1 8 14.4ZM0 8a8 8 0 0 0 16 0 8.009 8.009 0 0 0-8-8 8 8 0 0 0-8 8Z\"/></svg>
  236.                                                     </span>
  237.                                                     <div
  238.                                                         class=\"absolute right-0 z-10 w-64 p-4 bg-white rounded shadow-lg top-5\"
  239.                                                         :class=\"tooltipOpen ? 'block' : 'hidden'\"
  240.                                                     >
  241.                                                         <span class=\"text-sm leading-6 text-gray-900\">
  242.                                                             {{ \"Onze specialisten zorgen voor een passende oplossing, vrijblijvend advies en afstemming met u.\"|trans }}
  243.                                                         </span>
  244.                                                     </div>
  245.                                                 </span>
  246.                                             </div>
  247.                                             <div class=\"mt-4\">
  248.                                                 {% include 'includes/partials/_rental-form.html.twig' with {
  249.                                                     buttonText: 'Offerte aanvragen'|trans,
  250.                                                     buttonClass: 'button button__green',
  251.                                                     trackButtonId: 'conversion_rentnow',
  252.                                                     requestUrl: data.request.url ?? null
  253.                                                 } %}
  254.                                                 <a href=\"{{ product.page.url | trimUrl }}\" class=\"items-center justify-center !hidden lg:flex button button__secondary\">
  255.                                                     Meer informatie
  256.                                                     <span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
  257.                                                     <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  258.                                                             <path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
  259.                                                         </svg>
  260.                                                     </span>
  261.                                                 </a>
  262.                                             </div>
  263.                                         </td>
  264.                                     </tr>
  265.                                     {% set showReadMoreSpecsButton = loop.index > shownSpecsOnInitialLoad %}
  266.                                 {% endfor %}
  267.                             </tbody>
  268.                         </table>
  269.                     </div>
  270.                     {# never show this button when printing (printmode), even though there could be more specs. #}
  271.                     {% if showReadMoreSpecsButton and printmode is not defined %}
  272.                         <div class=\"flex justify-center w-full mt-6 \">
  273.                             <button
  274.                                 class=\"button button__secondary group\"
  275.                                 @click=\"tableOpen = !tableOpen\"
  276.                             >
  277.                                 <span class=\"flex w-6 h-6 mr-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white \">
  278.                                     <span class=\"flex items-center justify-center w-full h-full \">
  279.                                         <svg
  280.                                             x-show=\"!tableOpen\"
  281.                                             class=\"w-3.5\"
  282.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 14\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M6.68 0h.024a.929.929 0 0 1 .916.915l.07 4.994 4.994.07a.93.93 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024l-4.995-.07.07 4.995a.878.878 0 0 1-.89.89.93.93 0 0 1-.915-.916L5.91 7.69.914 7.62A.93.93 0 0 1 0 6.704a.878.878 0 0 1 .89-.89l4.994.07L5.814.89A.878.878 0 0 1 6.68 0Z\"/>
  283.                                         </svg>
  284.                                         <svg
  285.                                             x-show=\"tableOpen\"
  286.                                             class=\"w-3.5\"
  287.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 3\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M12.684.979a.929.929 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024L.915 2.62A.929.929 0 0 1 0 1.704a.878.878 0 0 1 .89-.89l11.794.165Z\"/>
  288.                                         </svg>
  289.                                     </span>
  290.                                 </span>
  291.                                 <span x-show=\"!tableOpen\">
  292.                                     {{ ('Meer {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  293.                                 </span>
  294.                                 <span x-show=\"tableOpen\">
  295.                                     {{ ('Minder {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  296.                                 </span>
  297.                             </button>
  298.                         </div>
  299.                     {% endif %}
  300.                 </div>
  301.             </section>
  302.         {% endif %}
  303.     {% endblock %}
  304. {% endembed %}
  305. ""areas/product-table-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/product-table-brick/view.html.twig");
  306.     }
  307.     
  308.     public function checkSecurity()
  309.     {
  310.         static $tags = ["set" => 1"embed" => 4];
  311.         static $filters = [];
  312.         static $functions = ["pimcore_relations" => 1];
  313.         try {
  314.             $this->sandbox->checkSecurity(
  315.                 ['set''embed'],
  316.                 [],
  317.                 ['pimcore_relations'],
  318.                 $this->source
  319.             );
  320.         } catch (SecurityError $e) {
  321.             $e->setSourceContext($this->source);
  322.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  323.                 $e->setTemplateLine($tags[$e->getTagName()]);
  324.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  325.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  326.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  327.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  328.             }
  329.             throw $e;
  330.         }
  331.     }
  332. }
  333. /* areas/product-table-brick/view.html.twig */
  334. class __TwigTemplate_964436efdd695f14360fa08b2cf3902c17d3be5f381a4f2428e00f84021e5a25___1481781932 extends Template
  335. {
  336.     private Source $source;
  337.     /**
  338.      * @var array<string, Template>
  339.      */
  340.     private array $macros = [];
  341.     public function __construct(Environment $env)
  342.     {
  343.         parent::__construct($env);
  344.         $this->source $this->getSourceContext();
  345.         $this->blocks = [
  346.             'content' => [$this'block_content'],
  347.         ];
  348.         $this->sandbox $this->extensions[SandboxExtension::class];
  349.         $this->checkSecurity();
  350.     }
  351.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  352.     {
  353.         return "app/area-brick-layout.html.twig";
  354.     }
  355.     protected function doDisplay(array $context, array $blocks = []): iterable
  356.     {
  357.         $macros $this->macros;
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  362.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/product-table-brick/view.html.twig"4);
  363.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  364.         
  365.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  366.         
  367.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  368.     }
  369.     // line 5
  370.     /**
  371.      * @return iterable<null|scalar|\Stringable>
  372.      */
  373.     public function block_content(array $context, array $blocks = []): iterable
  374.     {
  375.         $macros $this->macros;
  376.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  377.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  379.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  380.         // line 6
  381.         yield "
  382.         ";
  383.         // line 7
  384.         if (Twig\Extension\CoreExtension::testEmpty((isset($context["selectedProducts"]) || array_key_exists("selectedProducts"$context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.'7$this->source); })()))) {
  385.             // line 8
  386.             yield "            ";
  387.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'8$this->source); })())) {
  388.                 // line 9
  389.                 yield "                ";
  390.                 yield from $this->loadTemplate("areas/product-table-brick/view.html.twig""areas/product-table-brick/view.html.twig"9"2130027015")->unwrap()->yield($context);
  391.                 // line 13
  392.                 yield "            ";
  393.             }
  394.             // line 14
  395.             yield "        ";
  396.         } else {
  397.             // line 15
  398.             yield "            <section class=\"py-10 bg-blue-200 lg:py-20\" x-data=\"{ tableOpen: false }\">
  399.                 <div class=\"overflow-hidden lg:container\">
  400.                     ";
  401.             // line 18
  402.             if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'18$this->source); })()) && Twig\Extension\CoreExtension::testEmpty((isset($context["selectedProperties"]) || array_key_exists("selectedProperties"$context) ? $context["selectedProperties"] : (function () { throw new RuntimeError('Variable "selectedProperties" does not exist.'18$this->source); })())))) {
  403.                 // line 19
  404.                 yield "                        ";
  405.                 yield from $this->loadTemplate("areas/product-table-brick/view.html.twig""areas/product-table-brick/view.html.twig"19"1488321402")->unwrap()->yield($context);
  406.                 // line 23
  407.                 yield "                    ";
  408.             }
  409.             // line 24
  410.             yield "
  411.                     <div class=\"grid grid-cols-12 gap-6\">
  412.                         <div class=\"col-span-12\">
  413.                             <h2 class=\"mb-4 text-2xl text-center md:text-3xl lg:text-4xl\">
  414.                                 ";
  415.             // line 28
  416.             yield from $this->loadTemplate("areas/unique-selling-point-brick/partials/_title.html.twig""areas/product-table-brick/view.html.twig"28)->unwrap()->yield($context);
  417.             // line 29
  418.             yield "                            </h2>
  419.                         </div>
  420.                     </div>
  421.                     ";
  422.             // line 37
  423.             yield "                    ";
  424.             $context["shownSpecsOnInitialLoad"] = 8;
  425.             // line 38
  426.             yield "                    ";
  427.             $context["showReadMoreSpecsButton"] = false;
  428.             // line 39
  429.             yield "
  430.                     <div class=\"px-0 overflow-x-auto lg:pb-6 lg:pr-6 \">
  431.                         <table class=\"w-full lg:border-separate text-md lg:text-base lg:border-slate-500 lg:border-spacing-2\" >
  432.                             ";
  433.             // line 43
  434.             yield "                            <thead class=\"bg-gray-50\">
  435.                                 <tr>
  436.                                     <th>
  437.                                         <!-- title -->
  438.                                     </th>
  439.                                     ";
  440.             // line 48
  441.             $context['_parent'] = $context;
  442.             $context['_seq'] = CoreExtension::ensureTraversable((((isset($context["selectedProperties"]) || array_key_exists("selectedProperties"$context) ? $context["selectedProperties"] : (function () { throw new RuntimeError('Variable "selectedProperties" does not exist.'48$this->source); })())) ? ($context["selectedProperties"]) : ([])));
  443.             $context['loop'] = [
  444.               'parent' => $context['_parent'],
  445.               'index0' => 0,
  446.               'index'  => 1,
  447.               'first'  => true,
  448.             ];
  449.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  450.                 $length count($context['_seq']);
  451.                 $context['loop']['revindex0'] = $length 1;
  452.                 $context['loop']['revindex'] = $length;
  453.                 $context['loop']['length'] = $length;
  454.                 $context['loop']['last'] = === $length;
  455.             }
  456.             foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  457.                 // line 49
  458.                 yield "                                        <th scope=\"col\" class=\"px-4 py-2 font-normal text-left text-gray-900 lg:px-6 lg:py-4 ";
  459.                 yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue49) > 2)) ? ("hidden lg:table-cell") : (""));
  460.                 yield "\">
  461.                                             ";
  462.                 // line 50
  463.                 yield ((CoreExtension::getAttribute($this->env$this->source$context["property"], "title", [], "any"falsefalsetrue50)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["property"], "title", [], "any"falsefalsetrue50), 50$this->source), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["property"], "key", [], "any"falsefalsetrue50), 50$this->source), "html"nulltrue)));
  464.                 yield "
  465.                                         </th>
  466.                                     ";
  467.                 ++$context['loop']['index0'];
  468.                 ++$context['loop']['index'];
  469.                 $context['loop']['first'] = false;
  470.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  471.                     --$context['loop']['revindex0'];
  472.                     --$context['loop']['revindex'];
  473.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  474.                 }
  475.             }
  476.             $_parent $context['_parent'];
  477.             unset($context['_seq'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
  478.             $context array_intersect_key($context$_parent) + $_parent;
  479.             // line 53
  480.             yield "                                    <th class=\"hidden lg:table-cell\">
  481.                                         <!-- info -->
  482.                                     </th>
  483.                                     <th class=\"hidden lg:table-cell\">
  484.                                         <!-- button -->
  485.                                     </th>
  486.                                     <th>
  487.                                         <!-- chevron  -->
  488.                                     </th>
  489.                                 </tr>
  490.                             </thead>
  491.                             ";
  492.             // line 66
  493.             yield "                            <tbody class=\"gap-6\" x-data=\"{ rowOpen: false }\">
  494.                                 ";
  495.             // line 67
  496.             $context['_parent'] = $context;
  497.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["selectedProducts"]) || array_key_exists("selectedProducts"$context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.'67$this->source); })()));
  498.             $context['loop'] = [
  499.               'parent' => $context['_parent'],
  500.               'index0' => 0,
  501.               'index'  => 1,
  502.               'first'  => true,
  503.             ];
  504.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  505.                 $length count($context['_seq']);
  506.                 $context['loop']['revindex0'] = $length 1;
  507.                 $context['loop']['revindex'] = $length;
  508.                 $context['loop']['length'] = $length;
  509.                 $context['loop']['last'] = === $length;
  510.             }
  511.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  512.                 // line 68
  513.                 yield "                                    <tr
  514.                                         x-description=\"Odd row\"
  515.                                         class=\"bg-white border-t-8 border-blue-200 lg:border-t-0\"
  516.                                         ";
  517.                 // line 71
  518.                 if ((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue71) >= (isset($context["shownSpecsOnInitialLoad"]) || array_key_exists("shownSpecsOnInitialLoad"$context) ? $context["shownSpecsOnInitialLoad"] : (function () { throw new RuntimeError('Variable "shownSpecsOnInitialLoad" does not exist.'71$this->source); })()))) {
  519.                     // line 72
  520.                     yield "                                            :class=\"tableOpen ? '' : 'hidden'\"
  521.                                         ";
  522.                 }
  523.                 // line 74
  524.                 yield "                                    >
  525.                                         ";
  526.                 // line 76
  527.                 yield "                                        <td class=\"px-4 py-5 mb-4 font-bold leading-4 text-md lg:text-xl lg:px-6 lg:py-4 lg:rounded-l-md whitespace-nowrap\">
  528.                                             <a href=\"";
  529.                 // line 77
  530.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "page", [], "any"falsefalsetrue77), "url", [], "any"falsefalsetrue77), 77$this->source)), "html"nulltrue);
  531.                 yield "\">
  532.                                                 <span class=\"hidden md:inline-block\">";
  533.                 // line 78
  534.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["product"], "name", [], "any"falsefalsetrue78), 78$this->source), "html"nulltrue);
  535.                 yield "</span> <span class=\"text-blue\">";
  536.                 yield (((CoreExtension::getAttribute($this->env$this->source$context["product"], "code", [], "any"truetruetrue78) &&  !(null === CoreExtension::getAttribute($this->env$this->source$context["product"], "code", [], "any"falsefalsetrue78)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["product"], "code", [], "any"falsefalsetrue78), 78$this->source), "html"nulltrue)) : (""));
  537.                 yield "</span>
  538.                                             </a>
  539.                                         </td>
  540.                                         ";
  541.                 // line 87
  542.                 yield "                                        ";
  543.                 $context["customCounter"] = 0;
  544.                 // line 88
  545.                 yield "                                        ";
  546.                 $context['_parent'] = $context;
  547.                 $context['_seq'] = CoreExtension::ensureTraversable((((isset($context["selectedProperties"]) || array_key_exists("selectedProperties"$context) ? $context["selectedProperties"] : (function () { throw new RuntimeError('Variable "selectedProperties" does not exist.'88$this->source); })())) ? ($context["selectedProperties"]) : ([])));
  548.                 foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  549.                     // line 89
  550.                     yield "                                            ";
  551.                     $context["found"] = false;
  552.                     // line 90
  553.                     yield "
  554.                                             ";
  555.                     // line 91
  556.                     $context['_parent'] = $context;
  557.                     $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->envCoreExtension::getAttribute($this->env$this->source$context["product"], "specifications", [], "any"falsefalsetrue91), function ($__s__) use ($context$macros) { $context["s"] = $__s__; return CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["s"]) || array_key_exists("s"$context) ? $context["s"] : (function () { throw new RuntimeError('Variable "s" does not exist.'91$this->source); })()), "specification_property", [], "any"falsefalsetrue91), "data", [], "any"falsefalsetrue91), "publicly_visible", [], "any"falsefalsetrue91); }));
  558.                     foreach ($context['_seq'] as $context["_key"] => $context["spec"]) {
  559.                         // line 92
  560.                         yield "                                                ";
  561.                         $context["specificationObject"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["spec"], "specification_property", [], "any"falsefalsetrue92), "data", [], "any"falsefalsetrue92);
  562.                         // line 93
  563.                         yield "                                                ";
  564.                         if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["specificationObject"]) || array_key_exists("specificationObject"$context) ? $context["specificationObject"] : (function () { throw new RuntimeError('Variable "specificationObject" does not exist.'93$this->source); })()), "id", [], "any"falsefalsetrue93) == CoreExtension::getAttribute($this->env$this->source$context["property"], "id", [], "any"falsefalsetrue93))) {
  565.                             // line 94
  566.                             yield "                                                    ";
  567.                             $context["found"] = true;
  568.                             // line 95
  569.                             yield "                                                    ";
  570.                             $context["customCounter"] = ((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'95$this->source); })()) + 1);
  571.                             // line 96
  572.                             yield "                                                    ";
  573.                             // line 97
  574.                             yield "                                                    <td class=\"px-4 py-4 leading-4 lg:px-6 lg:py-4  whitespace-nowrap ";
  575.                             yield ((((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'97$this->source); })()) > 2)) ? ("hidden lg:table-cell") : (""));
  576.                             yield "\">
  577.                                                         ";
  578.                             // line 98
  579.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["spec"], "specification_value", [], "any"falsefalsetrue98), "data", [], "any"falsefalsetrue98), 98$this->source), "html"nulltrue);
  580.                             yield " ";
  581.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["specificationObject"]) || array_key_exists("specificationObject"$context) ? $context["specificationObject"] : (function () { throw new RuntimeError('Variable "specificationObject" does not exist.'98$this->source); })()), "unit", [], "any"falsefalsetrue98), 98$this->source), "html"nulltrue);
  582.                             yield "
  583.                                                     </td>
  584.                                                     ";
  585.                             // line 101
  586.                             yield "                                                    ";
  587.                             break 1;
  588.                             // line 102
  589.                             yield "                                                ";
  590.                         }
  591.                         // line 103
  592.                         yield "                                            ";
  593.                     }
  594.                     $_parent $context['_parent'];
  595.                     unset($context['_seq'], $context['_key'], $context['spec'], $context['_parent']);
  596.                     $context array_intersect_key($context$_parent) + $_parent;
  597.                     // line 104
  598.                     yield "                                            ";
  599.                     if ( !(isset($context["found"]) || array_key_exists("found"$context) ? $context["found"] : (function () { throw new RuntimeError('Variable "found" does not exist.'104$this->source); })())) {
  600.                         // line 105
  601.                         yield "                                                ";
  602.                         $context["customCounter"] = ((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'105$this->source); })()) + 1);
  603.                         // line 106
  604.                         yield "                                                <td class=\"";
  605.                         yield ((((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'106$this->source); })()) > 2)) ? ("hidden lg:table-cell") : (""));
  606.                         yield "\">
  607.                                                     <!-- empty -->
  608.                                                 </td>
  609.                                             ";
  610.                     }
  611.                     // line 110
  612.                     yield "                                        ";
  613.                 }
  614.                 $_parent $context['_parent'];
  615.                 unset($context['_seq'], $context['_key'], $context['property'], $context['_parent']);
  616.                 $context array_intersect_key($context$_parent) + $_parent;
  617.                 // line 111
  618.                 yield "
  619.                                         <td class=\"hidden px-4 py-2 lg:px-6 lg:py-4 lg:table-cell lg:rounded-r-md\">
  620.                                             ";
  621.                 // line 113
  622.                 yield from $this->loadTemplate("includes/partials/_rental-form.html.twig""areas/product-table-brick/view.html.twig"113)->unwrap()->yield(CoreExtension::merge($context, ["buttonText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Offerte aanvragen"), "buttonClass" => "button button__green""trackButtonId" => "conversion_rentnow""requestUrl" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,                 // line 117
  623. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'117$this->source); })()), "request", [], "any"falsefalsetrue117), "url", [], "any"falsefalsetrue117)]));
  624.                 // line 119
  625.                 yield "                                        </td>
  626.                                         <td class=\"content-end px-4 py-2 text-right md:hidden lg:px-6 lg:py-4 group \">
  627.                                             <div
  628.                                                 class=\"inline-flex items-center justify-center w-8 h-8 bg-gray-200 rounded-full cursor-pointer text-blue group-hover:bg-blue group-hover:text-white lg:hidden\"
  629.                                                 :class=\"(rowOpen == ";
  630.                 // line 123
  631.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue123), 123$this->source), "html"nulltrue);
  632.                 yield ") ? '-rotate-90' : 'rotate-90'\"
  633.                                                 @click=\"(rowOpen == ";
  634.                 // line 124
  635.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue124), 124$this->source), "html"nulltrue);
  636.                 yield ") ? rowOpen = false : rowOpen = ";
  637.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue124), 124$this->source), "html"nulltrue);
  638.                 yield "\"
  639.                                             >
  640.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"16\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg>
  641.                                             </div>
  642.                                         </td>
  643.                                     </tr>
  644.                                     <tr
  645.                                         class=\"bg-white border-2 rounded-md lg:hidden\"
  646.                                         :class=\"(rowOpen == ";
  647.                 // line 132
  648.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue132), 132$this->source), "html"nulltrue);
  649.                 yield ") ? 'table-row' : 'hidden'\"
  650.                                     >
  651.                                         <td colspan=\"4\" class=\"px-4 pt-6 pb-6 text-sm\">
  652.                                             ";
  653.                 // line 135
  654.                 $context['_parent'] = $context;
  655.                 $context['_seq'] = CoreExtension::ensureTraversable((((isset($context["selectedProperties"]) || array_key_exists("selectedProperties"$context) ? $context["selectedProperties"] : (function () { throw new RuntimeError('Variable "selectedProperties" does not exist.'135$this->source); })())) ? ($context["selectedProperties"]) : ([])));
  656.                 $context['loop'] = [
  657.                   'parent' => $context['_parent'],
  658.                   'index0' => 0,
  659.                   'index'  => 1,
  660.                   'first'  => true,
  661.                 ];
  662.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  663.                     $length count($context['_seq']);
  664.                     $context['loop']['revindex0'] = $length 1;
  665.                     $context['loop']['revindex'] = $length;
  666.                     $context['loop']['length'] = $length;
  667.                     $context['loop']['last'] = === $length;
  668.                 }
  669.                 foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  670.                     // line 136
  671.                     yield "                                                ";
  672.                     if ((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue136) > 2)) {
  673.                         // line 137
  674.                         yield "                                                    <div class=\"flex justify-between py-1\">
  675.                                                         <span>";
  676.                         // line 138
  677.                         yield ((CoreExtension::getAttribute($this->env$this->source$context["property"], "title", [], "any"falsefalsetrue138)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["property"], "title", [], "any"falsefalsetrue138), 138$this->source), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["property"], "key", [], "any"falsefalsetrue138), 138$this->source), "html"nulltrue)));
  678.                         yield "</span>
  679.                                                         <span class=\"text-right text-blue\">
  680.                                                             ";
  681.                         // line 140
  682.                         $context["customCounter"] = 0;
  683.                         // line 141
  684.                         yield "                                                            ";
  685.                         $context["found"] = false;
  686.                         // line 142
  687.                         yield "                                                            ";
  688.                         $context['_parent'] = $context;
  689.                         $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->envCoreExtension::getAttribute($this->env$this->source$context["product"], "specifications", [], "any"falsefalsetrue142), function ($__s__) use ($context$macros) { $context["s"] = $__s__; return CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["s"]) || array_key_exists("s"$context) ? $context["s"] : (function () { throw new RuntimeError('Variable "s" does not exist.'142$this->source); })()), "specification_property", [], "any"falsefalsetrue142), "data", [], "any"falsefalsetrue142), "publicly_visible", [], "any"falsefalsetrue142); }));
  690.                         foreach ($context['_seq'] as $context["_key"] => $context["spec"]) {
  691.                             // line 143
  692.                             yield "                                                                ";
  693.                             $context["specificationObject"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["spec"], "specification_property", [], "any"falsefalsetrue143), "data", [], "any"falsefalsetrue143);
  694.                             // line 144
  695.                             yield "                                                                ";
  696.                             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["specificationObject"]) || array_key_exists("specificationObject"$context) ? $context["specificationObject"] : (function () { throw new RuntimeError('Variable "specificationObject" does not exist.'144$this->source); })()), "id", [], "any"falsefalsetrue144) == CoreExtension::getAttribute($this->env$this->source$context["property"], "id", [], "any"falsefalsetrue144))) {
  697.                                 // line 145
  698.                                 yield "                                                                    ";
  699.                                 $context["found"] = true;
  700.                                 // line 146
  701.                                 yield "                                                                    ";
  702.                                 $context["customCounter"] = ((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'146$this->source); })()) + 1);
  703.                                 // line 147
  704.                                 yield "                                                                    ";
  705.                                 // line 148
  706.                                 yield "                                                                    <div class=\" ";
  707.                                 yield ((((isset($context["customCounter"]) || array_key_exists("customCounter"$context) ? $context["customCounter"] : (function () { throw new RuntimeError('Variable "customCounter" does not exist.'148$this->source); })()) > 2)) ? ("") : (""));
  708.                                 yield "\">
  709.                                                                         ";
  710.                                 // line 149
  711.                                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["spec"], "specification_value", [], "any"falsefalsetrue149), "data", [], "any"falsefalsetrue149), 149$this->source), "html"nulltrue);
  712.                                 yield " ";
  713.                                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["specificationObject"]) || array_key_exists("specificationObject"$context) ? $context["specificationObject"] : (function () { throw new RuntimeError('Variable "specificationObject" does not exist.'149$this->source); })()), "unit", [], "any"falsefalsetrue149), 149$this->source), "html"nulltrue);
  714.                                 yield "
  715.                                                                     </div>
  716.                                                                     ";
  717.                                 // line 152
  718.                                 yield "                                                                    ";
  719.                                 break 1;
  720.                                 // line 153
  721.                                 yield "                                                                ";
  722.                             }
  723.                             // line 154
  724.                             yield "                                                            ";
  725.                         }
  726.                         $_parent $context['_parent'];
  727.                         unset($context['_seq'], $context['_key'], $context['spec'], $context['_parent']);
  728.                         $context array_intersect_key($context$_parent) + $_parent;
  729.                         // line 155
  730.                         yield "                                                        </span>
  731.                                                     </div>
  732.                                                 ";
  733.                     }
  734.                     // line 158
  735.                     yield "                                            ";
  736.                     ++$context['loop']['index0'];
  737.                     ++$context['loop']['index'];
  738.                     $context['loop']['first'] = false;
  739.                     if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  740.                         --$context['loop']['revindex0'];
  741.                         --$context['loop']['revindex'];
  742.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  743.                     }
  744.                 }
  745.                 $_parent $context['_parent'];
  746.                 unset($context['_seq'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
  747.                 $context array_intersect_key($context$_parent) + $_parent;
  748.                 // line 159
  749.                 yield "
  750.                                             <div class=\"lg:py-1.5 hidden lg:flex lg:justify-between \">
  751.                                                 <span>";
  752.                 // line 161
  753.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meer informatie"), "html"nulltrue);
  754.                 yield "</span>
  755.                                                 <span class=\"relative text-right text-blue\" x-data=\"{ tooltipOpen: false }\">
  756.                                                     <span
  757.                                                         class=\"cursor-pointer\"
  758.                                                         @click=\"tooltipOpen = !tooltipOpen\"
  759.                                                         @click.outside=\"tooltipOpen = false\"
  760.                                                     >
  761.                                                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M8.036 5.235c.433 0 .747-.081.942-.244.196-.162.294-.418.294-.767 0-.358-.098-.618-.294-.78-.195-.163-.51-.244-.942-.244-.433 0-.747.081-.943.243-.195.163-.293.423-.293.78 0 .35.098.606.293.768.196.163.51.244.943.244Zm1.06 6.965V5.959H6.976V12.2h2.122ZM8 14.4A6.4 6.4 0 1 1 14.4 8 6.407 6.407 0 0 1 8 14.4ZM0 8a8 8 0 0 0 16 0 8.009 8.009 0 0 0-8-8 8 8 0 0 0-8 8Z\"/></svg>
  762.                                                     </span>
  763.                                                     <div
  764.                                                         class=\"absolute right-0 z-10 w-64 p-4 bg-white rounded shadow-lg top-5\"
  765.                                                         :class=\"tooltipOpen ? 'block' : 'hidden'\"
  766.                                                     >
  767.                                                         <span class=\"text-sm leading-6 text-gray-900\">
  768.                                                             ";
  769.                 // line 175
  770.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Onze specialisten zorgen voor een passende oplossing, vrijblijvend advies en afstemming met u."), "html"nulltrue);
  771.                 yield "
  772.                                                         </span>
  773.                                                     </div>
  774.                                                 </span>
  775.                                             </div>
  776.                                             <div class=\"mt-4\">
  777.                                                 ";
  778.                 // line 182
  779.                 yield from $this->loadTemplate("includes/partials/_rental-form.html.twig""areas/product-table-brick/view.html.twig"182)->unwrap()->yield(CoreExtension::merge($context, ["buttonText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Offerte aanvragen"), "buttonClass" => "button button__green""trackButtonId" => "conversion_rentnow""requestUrl" => (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,                 // line 186
  780. ($context["data"] ?? null), "request", [], "any"falsetruetrue186), "url", [], "any"truetruetrue186) &&  !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["data"] ?? null), "request", [], "any"falsetruetrue186), "url", [], "any"falsefalsetrue186)))) ? (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["data"] ?? null), "request", [], "any"falsetruetrue186), "url", [], "any"falsefalsetrue186)) : (null))]));
  781.                 // line 188
  782.                 yield "                                                <a href=\"";
  783.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "page", [], "any"falsefalsetrue188), "url", [], "any"falsefalsetrue188), 188$this->source)), "html"nulltrue);
  784.                 yield "\" class=\"items-center justify-center !hidden lg:flex button button__secondary\">
  785.                                                     Meer informatie
  786.                                                     <span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
  787.                                                     <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  788.                                                             <path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
  789.                                                         </svg>
  790.                                                     </span>
  791.                                                 </a>
  792.                                             </div>
  793.                                         </td>
  794.                                     </tr>
  795.                                     ";
  796.                 // line 201
  797.                 $context["showReadMoreSpecsButton"] = (CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue201) > (isset($context["shownSpecsOnInitialLoad"]) || array_key_exists("shownSpecsOnInitialLoad"$context) ? $context["shownSpecsOnInitialLoad"] : (function () { throw new RuntimeError('Variable "shownSpecsOnInitialLoad" does not exist.'201$this->source); })()));
  798.                 // line 202
  799.                 yield "                                ";
  800.                 ++$context['loop']['index0'];
  801.                 ++$context['loop']['index'];
  802.                 $context['loop']['first'] = false;
  803.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  804.                     --$context['loop']['revindex0'];
  805.                     --$context['loop']['revindex'];
  806.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  807.                 }
  808.             }
  809.             $_parent $context['_parent'];
  810.             unset($context['_seq'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  811.             $context array_intersect_key($context$_parent) + $_parent;
  812.             // line 203
  813.             yield "                            </tbody>
  814.                         </table>
  815.                     </div>
  816.                     ";
  817.             // line 209
  818.             yield "                    ";
  819.             if (((isset($context["showReadMoreSpecsButton"]) || array_key_exists("showReadMoreSpecsButton"$context) ? $context["showReadMoreSpecsButton"] : (function () { throw new RuntimeError('Variable "showReadMoreSpecsButton" does not exist.'209$this->source); })()) &&  !array_key_exists("printmode"$context))) {
  820.                 // line 210
  821.                 yield "                        <div class=\"flex justify-center w-full mt-6 \">
  822.                             <button
  823.                                 class=\"button button__secondary group\"
  824.                                 @click=\"tableOpen = !tableOpen\"
  825.                             >
  826.                                 <span class=\"flex w-6 h-6 mr-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white \">
  827.                                     <span class=\"flex items-center justify-center w-full h-full \">
  828.                                         <svg
  829.                                             x-show=\"!tableOpen\"
  830.                                             class=\"w-3.5\"
  831.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 14\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M6.68 0h.024a.929.929 0 0 1 .916.915l.07 4.994 4.994.07a.93.93 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024l-4.995-.07.07 4.995a.878.878 0 0 1-.89.89.93.93 0 0 1-.915-.916L5.91 7.69.914 7.62A.93.93 0 0 1 0 6.704a.878.878 0 0 1 .89-.89l4.994.07L5.814.89A.878.878 0 0 1 6.68 0Z\"/>
  832.                                         </svg>
  833.                                         <svg
  834.                                             x-show=\"tableOpen\"
  835.                                             class=\"w-3.5\"
  836.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 3\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M12.684.979a.929.929 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024L.915 2.62A.929.929 0 0 1 0 1.704a.878.878 0 0 1 .89-.89l11.794.165Z\"/>
  837.                                         </svg>
  838.                                     </span>
  839.                                 </span>
  840.                                 <span x-show=\"!tableOpen\">
  841.                                     ";
  842.                 // line 230
  843.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meer {{ productCategory }} tonen", ["{{ productCategory }}" => $this->extensions['App\Twig\CustomLowercaseExtension']->customLowercase(((CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'230$this->source); })()), "name", [], "any"falsefalsetrue230)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'230$this->source); })()), "name", [], "any"falsefalsetrue230)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'230$this->source); })()), "key", [], "any"falsefalsetrue230))))]), "html"nulltrue);
  844.                 yield "
  845.                                 </span>
  846.                                 <span x-show=\"tableOpen\">
  847.                                     ";
  848.                 // line 233
  849.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Minder {{ productCategory }} tonen", ["{{ productCategory }}" => $this->extensions['App\Twig\CustomLowercaseExtension']->customLowercase(((CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'233$this->source); })()), "name", [], "any"falsefalsetrue233)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'233$this->source); })()), "name", [], "any"falsefalsetrue233)) : (CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'233$this->source); })()), "key", [], "any"falsefalsetrue233))))]), "html"nulltrue);
  850.                 yield "
  851.                                 </span>
  852.                             </button>
  853.                         </div>
  854.                     ";
  855.             }
  856.             // line 238
  857.             yield "
  858.                 </div>
  859.             </section>
  860.         ";
  861.         }
  862.         // line 242
  863.         yield "
  864.     ";
  865.         
  866.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  867.         
  868.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  869.         yield from [];
  870.     }
  871.     /**
  872.      * @codeCoverageIgnore
  873.      */
  874.     public function getTemplateName(): string
  875.     {
  876.         return "areas/product-table-brick/view.html.twig";
  877.     }
  878.     /**
  879.      * @codeCoverageIgnore
  880.      */
  881.     public function isTraitable(): bool
  882.     {
  883.         return false;
  884.     }
  885.     /**
  886.      * @codeCoverageIgnore
  887.      */
  888.     public function getDebugInfo(): array
  889.     {
  890.         return array (  922 => 242,  916 => 238,  908 => 233,  902 => 230,  880 => 210,  877 => 209,  870 => 203,  856 => 202,  854 => 201,  837 => 188,  835 => 186,  834 => 182,  824 => 175,  807 => 161,  803 => 159,  789 => 158,  784 => 155,  778 => 154,  775 => 153,  772 => 152,  765 => 149,  760 => 148,  758 => 147,  755 => 146,  752 => 145,  749 => 144,  746 => 143,  741 => 142,  738 => 141,  736 => 140,  731 => 138,  728 => 137,  725 => 136,  708 => 135,  702 => 132,  689 => 124,  685 => 123,  679 => 119,  677 => 117,  676 => 113,  672 => 111,  666 => 110,  658 => 106,  655 => 105,  652 => 104,  646 => 103,  643 => 102,  640 => 101,  633 => 98,  628 => 97,  626 => 96,  623 => 95,  620 => 94,  617 => 93,  614 => 92,  610 => 91,  607 => 90,  604 => 89,  599 => 88,  596 => 87,  588 => 78,  584 => 77,  581 => 76,  578 => 74,  574 => 72,  572 => 71,  567 => 68,  550 => 67,  547 => 66,  533 => 53,  516 => 50,  511 => 49,  494 => 48,  487 => 43,  482 => 39,  479 => 38,  476 => 37,  470 => 29,  468 => 28,  462 => 24,  459 => 23,  456 => 19,  454 => 18,  449 => 15,  446 => 14,  443 => 13,  440 => 9,  437 => 8,  435 => 7,  432 => 6,  419 => 5,  57 => 4,  54 => 3,  52 => 2,  50 => 1,);
  891.     }
  892.     public function getSourceContext(): Source
  893.     {
  894.         return new Source("{% set selectedProducts = pimcore_relations('selectedProducts').getData() %}
  895. {% set selectedProperties = pimcore_relations('selectedProperties').getData() %}
  896. {% embed 'app/area-brick-layout.html.twig' %}
  897.     {% block content %}
  898.         {% if selectedProducts is empty %}
  899.             {% if editmode %}
  900.                 {% embed 'app/editmodenotice.html.twig' %}
  901.                     {% block title %} Nog geen alternatieve producten geselecteerd. {% endblock %}
  902.                     {% block information %} Kies alternatieve producten middels het potloodje. {% endblock %}
  903.                 {% endembed %}
  904.             {% endif %}
  905.         {% else %}
  906.             <section class=\"py-10 bg-blue-200 lg:py-20\" x-data=\"{ tableOpen: false }\">
  907.                 <div class=\"overflow-hidden lg:container\">
  908.                     {% if editmode and selectedProperties is empty %}
  909.                         {% embed 'app/editmodenotice.html.twig' %}
  910.                             {% block title %} Nog geen producteneigenschappen geselecteerd. {% endblock %}
  911.                             {% block information %} Kies producteneigenschappen middels het potloodje {% endblock %}
  912.                         {% endembed %}
  913.                     {% endif %}
  914.                     <div class=\"grid grid-cols-12 gap-6\">
  915.                         <div class=\"col-span-12\">
  916.                             <h2 class=\"mb-4 text-2xl text-center md:text-3xl lg:text-4xl\">
  917.                                 {% include 'areas/unique-selling-point-brick/partials/_title.html.twig' %}
  918.                             </h2>
  919.                         </div>
  920.                     </div>
  921.                     {#
  922.                     Here we set the maxinum amount of specs that are shown on initial page load.
  923.                     If there are more then this amount then those will be hidden, a button will then be shown
  924.                     #}
  925.                     {% set shownSpecsOnInitialLoad = 8 %}
  926.                     {% set showReadMoreSpecsButton = false %}
  927.                     <div class=\"px-0 overflow-x-auto lg:pb-6 lg:pr-6 \">
  928.                         <table class=\"w-full lg:border-separate text-md lg:text-base lg:border-slate-500 lg:border-spacing-2\" >
  929.                             {# First, we generate the table header based on the selected properties. #}
  930.                             <thead class=\"bg-gray-50\">
  931.                                 <tr>
  932.                                     <th>
  933.                                         <!-- title -->
  934.                                     </th>
  935.                                     {% for property in selectedProperties ?: [] %}
  936.                                         <th scope=\"col\" class=\"px-4 py-2 font-normal text-left text-gray-900 lg:px-6 lg:py-4 {{ loop.index > 2 ? 'hidden lg:table-cell' : '' }}\">
  937.                                             {{ property.title ?: property.key }}
  938.                                         </th>
  939.                                     {% endfor %}
  940.                                     <th class=\"hidden lg:table-cell\">
  941.                                         <!-- info -->
  942.                                     </th>
  943.                                     <th class=\"hidden lg:table-cell\">
  944.                                         <!-- button -->
  945.                                     </th>
  946.                                     <th>
  947.                                         <!-- chevron  -->
  948.                                     </th>
  949.                                 </tr>
  950.                             </thead>
  951.                             {# then, we will output the product-rows #}
  952.                             <tbody class=\"gap-6\" x-data=\"{ rowOpen: false }\">
  953.                                 {% for product in selectedProducts %}
  954.                                     <tr
  955.                                         x-description=\"Odd row\"
  956.                                         class=\"bg-white border-t-8 border-blue-200 lg:border-t-0\"
  957.                                         {% if loop.index >= shownSpecsOnInitialLoad %}
  958.                                             :class=\"tableOpen ? '' : 'hidden'\"
  959.                                         {% endif %}
  960.                                     >
  961.                                         {# Output the product title as the first column in this row #}
  962.                                         <td class=\"px-4 py-5 mb-4 font-bold leading-4 text-md lg:text-xl lg:px-6 lg:py-4 lg:rounded-l-md whitespace-nowrap\">
  963.                                             <a href=\"{{ product.page.url | trimUrl }}\">
  964.                                                 <span class=\"hidden md:inline-block\">{{ product.name }}</span> <span class=\"text-blue\">{{ product.code ?? \"\" }}</span>
  965.                                             </a>
  966.                                         </td>
  967.                                         {#
  968.                                         then we will loop through all the selected properties...
  969.                                         We always render a column for each selected property, we do this to maintain table-like
  970.                                         formatting. In case a selected spec to highlight does not exist in a product
  971.                                         we will simply show an empty column for that product :)
  972.                                         #}
  973.                                         {% set customCounter = 0 %}
  974.                                         {% for property in selectedProperties ?: [] %}
  975.                                             {% set found = false %}
  976.                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  977.                                                 {% set specificationObject = spec.specification_property.data %}
  978.                                                 {% if specificationObject.id == property.id %}
  979.                                                     {% set found = true %}
  980.                                                     {% set customCounter = customCounter + 1 %}
  981.                                                     {# Output the specification value and unit to this row #}
  982.                                                     <td class=\"px-4 py-4 leading-4 lg:px-6 lg:py-4  whitespace-nowrap {{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  983.                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  984.                                                     </td>
  985.                                                     {# skip the rest of the spec-for-loop when entry is found #}
  986.                                                     {% break %}
  987.                                                 {% endif %}
  988.                                             {% endfor %}
  989.                                             {% if not found %}
  990.                                                 {% set customCounter = customCounter + 1 %}
  991.                                                 <td class=\"{{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  992.                                                     <!-- empty -->
  993.                                                 </td>
  994.                                             {% endif %}
  995.                                         {% endfor %}
  996.                                         <td class=\"hidden px-4 py-2 lg:px-6 lg:py-4 lg:table-cell lg:rounded-r-md\">
  997.                                             {% include 'includes/partials/_rental-form.html.twig' with {
  998.                                                 buttonText: 'Offerte aanvragen'|trans,
  999.                                                 buttonClass: 'button button__green',
  1000.                                                 trackButtonId: 'conversion_rentnow',
  1001.                                                 requestUrl: data.request.url
  1002.                                             } %}
  1003.                                         </td>
  1004.                                         <td class=\"content-end px-4 py-2 text-right md:hidden lg:px-6 lg:py-4 group \">
  1005.                                             <div
  1006.                                                 class=\"inline-flex items-center justify-center w-8 h-8 bg-gray-200 rounded-full cursor-pointer text-blue group-hover:bg-blue group-hover:text-white lg:hidden\"
  1007.                                                 :class=\"(rowOpen == {{loop.index}}) ? '-rotate-90' : 'rotate-90'\"
  1008.                                                 @click=\"(rowOpen == {{loop.index}}) ? rowOpen = false : rowOpen = {{loop.index}}\"
  1009.                                             >
  1010.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"16\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg>
  1011.                                             </div>
  1012.                                         </td>
  1013.                                     </tr>
  1014.                                     <tr
  1015.                                         class=\"bg-white border-2 rounded-md lg:hidden\"
  1016.                                         :class=\"(rowOpen == {{loop.index}}) ? 'table-row' : 'hidden'\"
  1017.                                     >
  1018.                                         <td colspan=\"4\" class=\"px-4 pt-6 pb-6 text-sm\">
  1019.                                             {% for property in selectedProperties ?: [] %}
  1020.                                                 {% if loop.index > 2 %}
  1021.                                                     <div class=\"flex justify-between py-1\">
  1022.                                                         <span>{{ property.title ?: property.key }}</span>
  1023.                                                         <span class=\"text-right text-blue\">
  1024.                                                             {% set customCounter = 0 %}
  1025.                                                             {% set found = false %}
  1026.                                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  1027.                                                                 {% set specificationObject = spec.specification_property.data %}
  1028.                                                                 {% if specificationObject.id == property.id %}
  1029.                                                                     {% set found = true %}
  1030.                                                                     {% set customCounter = customCounter + 1 %}
  1031.                                                                     {# Output the specification value and unit to this row #}
  1032.                                                                     <div class=\" {{ customCounter > 2 ? '' : '' }}\">
  1033.                                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  1034.                                                                     </div>
  1035.                                                                     {# skip the rest of the spec-for-loop when entry is found #}
  1036.                                                                     {% break %}
  1037.                                                                 {% endif %}
  1038.                                                             {% endfor %}
  1039.                                                         </span>
  1040.                                                     </div>
  1041.                                                 {% endif %}
  1042.                                             {% endfor %}
  1043.                                             <div class=\"lg:py-1.5 hidden lg:flex lg:justify-between \">
  1044.                                                 <span>{{ 'Meer informatie'|trans }}</span>
  1045.                                                 <span class=\"relative text-right text-blue\" x-data=\"{ tooltipOpen: false }\">
  1046.                                                     <span
  1047.                                                         class=\"cursor-pointer\"
  1048.                                                         @click=\"tooltipOpen = !tooltipOpen\"
  1049.                                                         @click.outside=\"tooltipOpen = false\"
  1050.                                                     >
  1051.                                                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M8.036 5.235c.433 0 .747-.081.942-.244.196-.162.294-.418.294-.767 0-.358-.098-.618-.294-.78-.195-.163-.51-.244-.942-.244-.433 0-.747.081-.943.243-.195.163-.293.423-.293.78 0 .35.098.606.293.768.196.163.51.244.943.244Zm1.06 6.965V5.959H6.976V12.2h2.122ZM8 14.4A6.4 6.4 0 1 1 14.4 8 6.407 6.407 0 0 1 8 14.4ZM0 8a8 8 0 0 0 16 0 8.009 8.009 0 0 0-8-8 8 8 0 0 0-8 8Z\"/></svg>
  1052.                                                     </span>
  1053.                                                     <div
  1054.                                                         class=\"absolute right-0 z-10 w-64 p-4 bg-white rounded shadow-lg top-5\"
  1055.                                                         :class=\"tooltipOpen ? 'block' : 'hidden'\"
  1056.                                                     >
  1057.                                                         <span class=\"text-sm leading-6 text-gray-900\">
  1058.                                                             {{ \"Onze specialisten zorgen voor een passende oplossing, vrijblijvend advies en afstemming met u.\"|trans }}
  1059.                                                         </span>
  1060.                                                     </div>
  1061.                                                 </span>
  1062.                                             </div>
  1063.                                             <div class=\"mt-4\">
  1064.                                                 {% include 'includes/partials/_rental-form.html.twig' with {
  1065.                                                     buttonText: 'Offerte aanvragen'|trans,
  1066.                                                     buttonClass: 'button button__green',
  1067.                                                     trackButtonId: 'conversion_rentnow',
  1068.                                                     requestUrl: data.request.url ?? null
  1069.                                                 } %}
  1070.                                                 <a href=\"{{ product.page.url | trimUrl }}\" class=\"items-center justify-center !hidden lg:flex button button__secondary\">
  1071.                                                     Meer informatie
  1072.                                                     <span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
  1073.                                                     <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  1074.                                                             <path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
  1075.                                                         </svg>
  1076.                                                     </span>
  1077.                                                 </a>
  1078.                                             </div>
  1079.                                         </td>
  1080.                                     </tr>
  1081.                                     {% set showReadMoreSpecsButton = loop.index > shownSpecsOnInitialLoad %}
  1082.                                 {% endfor %}
  1083.                             </tbody>
  1084.                         </table>
  1085.                     </div>
  1086.                     {# never show this button when printing (printmode), even though there could be more specs. #}
  1087.                     {% if showReadMoreSpecsButton and printmode is not defined %}
  1088.                         <div class=\"flex justify-center w-full mt-6 \">
  1089.                             <button
  1090.                                 class=\"button button__secondary group\"
  1091.                                 @click=\"tableOpen = !tableOpen\"
  1092.                             >
  1093.                                 <span class=\"flex w-6 h-6 mr-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white \">
  1094.                                     <span class=\"flex items-center justify-center w-full h-full \">
  1095.                                         <svg
  1096.                                             x-show=\"!tableOpen\"
  1097.                                             class=\"w-3.5\"
  1098.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 14\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M6.68 0h.024a.929.929 0 0 1 .916.915l.07 4.994 4.994.07a.93.93 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024l-4.995-.07.07 4.995a.878.878 0 0 1-.89.89.93.93 0 0 1-.915-.916L5.91 7.69.914 7.62A.93.93 0 0 1 0 6.704a.878.878 0 0 1 .89-.89l4.994.07L5.814.89A.878.878 0 0 1 6.68 0Z\"/>
  1099.                                         </svg>
  1100.                                         <svg
  1101.                                             x-show=\"tableOpen\"
  1102.                                             class=\"w-3.5\"
  1103.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 3\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M12.684.979a.929.929 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024L.915 2.62A.929.929 0 0 1 0 1.704a.878.878 0 0 1 .89-.89l11.794.165Z\"/>
  1104.                                         </svg>
  1105.                                     </span>
  1106.                                 </span>
  1107.                                 <span x-show=\"!tableOpen\">
  1108.                                     {{ ('Meer {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1109.                                 </span>
  1110.                                 <span x-show=\"tableOpen\">
  1111.                                     {{ ('Minder {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1112.                                 </span>
  1113.                             </button>
  1114.                         </div>
  1115.                     {% endif %}
  1116.                 </div>
  1117.             </section>
  1118.         {% endif %}
  1119.     {% endblock %}
  1120. {% endembed %}
  1121. ""areas/product-table-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/product-table-brick/view.html.twig");
  1122.     }
  1123.     
  1124.     public function checkSecurity()
  1125.     {
  1126.         static $tags = ["extends" => 4"if" => 7"embed" => 9"include" => 28"set" => 37"for" => 48"break" => 101];
  1127.         static $filters = ["escape" => 50"trimUrl" => 77"filter" => 91"trans" => 114"customLowercase" => 230];
  1128.         static $functions = [];
  1129.         try {
  1130.             $this->sandbox->checkSecurity(
  1131.                 ['extends''if''embed''include''set''for''break'],
  1132.                 ['escape''trimUrl''filter''trans''customLowercase'],
  1133.                 [],
  1134.                 $this->source
  1135.             );
  1136.         } catch (SecurityError $e) {
  1137.             $e->setSourceContext($this->source);
  1138.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1139.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1140.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1141.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1142.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1143.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1144.             }
  1145.             throw $e;
  1146.         }
  1147.     }
  1148. }
  1149. /* areas/product-table-brick/view.html.twig */
  1150. class __TwigTemplate_964436efdd695f14360fa08b2cf3902c17d3be5f381a4f2428e00f84021e5a25___2130027015 extends Template
  1151. {
  1152.     private Source $source;
  1153.     /**
  1154.      * @var array<string, Template>
  1155.      */
  1156.     private array $macros = [];
  1157.     public function __construct(Environment $env)
  1158.     {
  1159.         parent::__construct($env);
  1160.         $this->source $this->getSourceContext();
  1161.         $this->blocks = [
  1162.             'title' => [$this'block_title'],
  1163.             'information' => [$this'block_information'],
  1164.         ];
  1165.         $this->sandbox $this->extensions[SandboxExtension::class];
  1166.         $this->checkSecurity();
  1167.     }
  1168.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1169.     {
  1170.         // line 9
  1171.         return "app/editmodenotice.html.twig";
  1172.     }
  1173.     protected function doDisplay(array $context, array $blocks = []): iterable
  1174.     {
  1175.         $macros $this->macros;
  1176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  1178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1179.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  1180.         $this->parent $this->loadTemplate("app/editmodenotice.html.twig""areas/product-table-brick/view.html.twig"9);
  1181.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  1182.         
  1183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1184.         
  1185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1186.     }
  1187.     // line 10
  1188.     /**
  1189.      * @return iterable<null|scalar|\Stringable>
  1190.      */
  1191.     public function block_title(array $context, array $blocks = []): iterable
  1192.     {
  1193.         $macros $this->macros;
  1194.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1195.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  1196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  1198.         yield " Nog geen alternatieve producten geselecteerd. ";
  1199.         
  1200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1201.         
  1202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1203.         yield from [];
  1204.     }
  1205.     // line 11
  1206.     /**
  1207.      * @return iterable<null|scalar|\Stringable>
  1208.      */
  1209.     public function block_information(array $context, array $blocks = []): iterable
  1210.     {
  1211.         $macros $this->macros;
  1212.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1213.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  1214.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1215.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  1216.         yield " Kies alternatieve producten middels het potloodje. ";
  1217.         
  1218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1219.         
  1220.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1221.         yield from [];
  1222.     }
  1223.     /**
  1224.      * @codeCoverageIgnore
  1225.      */
  1226.     public function getTemplateName(): string
  1227.     {
  1228.         return "areas/product-table-brick/view.html.twig";
  1229.     }
  1230.     /**
  1231.      * @codeCoverageIgnore
  1232.      */
  1233.     public function isTraitable(): bool
  1234.     {
  1235.         return false;
  1236.     }
  1237.     /**
  1238.      * @codeCoverageIgnore
  1239.      */
  1240.     public function getDebugInfo(): array
  1241.     {
  1242.         return array (  1311 => 11,  1288 => 10,  1265 => 9,  922 => 242,  916 => 238,  908 => 233,  902 => 230,  880 => 210,  877 => 209,  870 => 203,  856 => 202,  854 => 201,  837 => 188,  835 => 186,  834 => 182,  824 => 175,  807 => 161,  803 => 159,  789 => 158,  784 => 155,  778 => 154,  775 => 153,  772 => 152,  765 => 149,  760 => 148,  758 => 147,  755 => 146,  752 => 145,  749 => 144,  746 => 143,  741 => 142,  738 => 141,  736 => 140,  731 => 138,  728 => 137,  725 => 136,  708 => 135,  702 => 132,  689 => 124,  685 => 123,  679 => 119,  677 => 117,  676 => 113,  672 => 111,  666 => 110,  658 => 106,  655 => 105,  652 => 104,  646 => 103,  643 => 102,  640 => 101,  633 => 98,  628 => 97,  626 => 96,  623 => 95,  620 => 94,  617 => 93,  614 => 92,  610 => 91,  607 => 90,  604 => 89,  599 => 88,  596 => 87,  588 => 78,  584 => 77,  581 => 76,  578 => 74,  574 => 72,  572 => 71,  567 => 68,  550 => 67,  547 => 66,  533 => 53,  516 => 50,  511 => 49,  494 => 48,  487 => 43,  482 => 39,  479 => 38,  476 => 37,  470 => 29,  468 => 28,  462 => 24,  459 => 23,  456 => 19,  454 => 18,  449 => 15,  446 => 14,  443 => 13,  440 => 9,  437 => 8,  435 => 7,  432 => 6,  419 => 5,  57 => 4,  54 => 3,  52 => 2,  50 => 1,);
  1243.     }
  1244.     public function getSourceContext(): Source
  1245.     {
  1246.         return new Source("{% set selectedProducts = pimcore_relations('selectedProducts').getData() %}
  1247. {% set selectedProperties = pimcore_relations('selectedProperties').getData() %}
  1248. {% embed 'app/area-brick-layout.html.twig' %}
  1249.     {% block content %}
  1250.         {% if selectedProducts is empty %}
  1251.             {% if editmode %}
  1252.                 {% embed 'app/editmodenotice.html.twig' %}
  1253.                     {% block title %} Nog geen alternatieve producten geselecteerd. {% endblock %}
  1254.                     {% block information %} Kies alternatieve producten middels het potloodje. {% endblock %}
  1255.                 {% endembed %}
  1256.             {% endif %}
  1257.         {% else %}
  1258.             <section class=\"py-10 bg-blue-200 lg:py-20\" x-data=\"{ tableOpen: false }\">
  1259.                 <div class=\"overflow-hidden lg:container\">
  1260.                     {% if editmode and selectedProperties is empty %}
  1261.                         {% embed 'app/editmodenotice.html.twig' %}
  1262.                             {% block title %} Nog geen producteneigenschappen geselecteerd. {% endblock %}
  1263.                             {% block information %} Kies producteneigenschappen middels het potloodje {% endblock %}
  1264.                         {% endembed %}
  1265.                     {% endif %}
  1266.                     <div class=\"grid grid-cols-12 gap-6\">
  1267.                         <div class=\"col-span-12\">
  1268.                             <h2 class=\"mb-4 text-2xl text-center md:text-3xl lg:text-4xl\">
  1269.                                 {% include 'areas/unique-selling-point-brick/partials/_title.html.twig' %}
  1270.                             </h2>
  1271.                         </div>
  1272.                     </div>
  1273.                     {#
  1274.                     Here we set the maxinum amount of specs that are shown on initial page load.
  1275.                     If there are more then this amount then those will be hidden, a button will then be shown
  1276.                     #}
  1277.                     {% set shownSpecsOnInitialLoad = 8 %}
  1278.                     {% set showReadMoreSpecsButton = false %}
  1279.                     <div class=\"px-0 overflow-x-auto lg:pb-6 lg:pr-6 \">
  1280.                         <table class=\"w-full lg:border-separate text-md lg:text-base lg:border-slate-500 lg:border-spacing-2\" >
  1281.                             {# First, we generate the table header based on the selected properties. #}
  1282.                             <thead class=\"bg-gray-50\">
  1283.                                 <tr>
  1284.                                     <th>
  1285.                                         <!-- title -->
  1286.                                     </th>
  1287.                                     {% for property in selectedProperties ?: [] %}
  1288.                                         <th scope=\"col\" class=\"px-4 py-2 font-normal text-left text-gray-900 lg:px-6 lg:py-4 {{ loop.index > 2 ? 'hidden lg:table-cell' : '' }}\">
  1289.                                             {{ property.title ?: property.key }}
  1290.                                         </th>
  1291.                                     {% endfor %}
  1292.                                     <th class=\"hidden lg:table-cell\">
  1293.                                         <!-- info -->
  1294.                                     </th>
  1295.                                     <th class=\"hidden lg:table-cell\">
  1296.                                         <!-- button -->
  1297.                                     </th>
  1298.                                     <th>
  1299.                                         <!-- chevron  -->
  1300.                                     </th>
  1301.                                 </tr>
  1302.                             </thead>
  1303.                             {# then, we will output the product-rows #}
  1304.                             <tbody class=\"gap-6\" x-data=\"{ rowOpen: false }\">
  1305.                                 {% for product in selectedProducts %}
  1306.                                     <tr
  1307.                                         x-description=\"Odd row\"
  1308.                                         class=\"bg-white border-t-8 border-blue-200 lg:border-t-0\"
  1309.                                         {% if loop.index >= shownSpecsOnInitialLoad %}
  1310.                                             :class=\"tableOpen ? '' : 'hidden'\"
  1311.                                         {% endif %}
  1312.                                     >
  1313.                                         {# Output the product title as the first column in this row #}
  1314.                                         <td class=\"px-4 py-5 mb-4 font-bold leading-4 text-md lg:text-xl lg:px-6 lg:py-4 lg:rounded-l-md whitespace-nowrap\">
  1315.                                             <a href=\"{{ product.page.url | trimUrl }}\">
  1316.                                                 <span class=\"hidden md:inline-block\">{{ product.name }}</span> <span class=\"text-blue\">{{ product.code ?? \"\" }}</span>
  1317.                                             </a>
  1318.                                         </td>
  1319.                                         {#
  1320.                                         then we will loop through all the selected properties...
  1321.                                         We always render a column for each selected property, we do this to maintain table-like
  1322.                                         formatting. In case a selected spec to highlight does not exist in a product
  1323.                                         we will simply show an empty column for that product :)
  1324.                                         #}
  1325.                                         {% set customCounter = 0 %}
  1326.                                         {% for property in selectedProperties ?: [] %}
  1327.                                             {% set found = false %}
  1328.                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  1329.                                                 {% set specificationObject = spec.specification_property.data %}
  1330.                                                 {% if specificationObject.id == property.id %}
  1331.                                                     {% set found = true %}
  1332.                                                     {% set customCounter = customCounter + 1 %}
  1333.                                                     {# Output the specification value and unit to this row #}
  1334.                                                     <td class=\"px-4 py-4 leading-4 lg:px-6 lg:py-4  whitespace-nowrap {{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  1335.                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  1336.                                                     </td>
  1337.                                                     {# skip the rest of the spec-for-loop when entry is found #}
  1338.                                                     {% break %}
  1339.                                                 {% endif %}
  1340.                                             {% endfor %}
  1341.                                             {% if not found %}
  1342.                                                 {% set customCounter = customCounter + 1 %}
  1343.                                                 <td class=\"{{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  1344.                                                     <!-- empty -->
  1345.                                                 </td>
  1346.                                             {% endif %}
  1347.                                         {% endfor %}
  1348.                                         <td class=\"hidden px-4 py-2 lg:px-6 lg:py-4 lg:table-cell lg:rounded-r-md\">
  1349.                                             {% include 'includes/partials/_rental-form.html.twig' with {
  1350.                                                 buttonText: 'Offerte aanvragen'|trans,
  1351.                                                 buttonClass: 'button button__green',
  1352.                                                 trackButtonId: 'conversion_rentnow',
  1353.                                                 requestUrl: data.request.url
  1354.                                             } %}
  1355.                                         </td>
  1356.                                         <td class=\"content-end px-4 py-2 text-right md:hidden lg:px-6 lg:py-4 group \">
  1357.                                             <div
  1358.                                                 class=\"inline-flex items-center justify-center w-8 h-8 bg-gray-200 rounded-full cursor-pointer text-blue group-hover:bg-blue group-hover:text-white lg:hidden\"
  1359.                                                 :class=\"(rowOpen == {{loop.index}}) ? '-rotate-90' : 'rotate-90'\"
  1360.                                                 @click=\"(rowOpen == {{loop.index}}) ? rowOpen = false : rowOpen = {{loop.index}}\"
  1361.                                             >
  1362.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"16\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg>
  1363.                                             </div>
  1364.                                         </td>
  1365.                                     </tr>
  1366.                                     <tr
  1367.                                         class=\"bg-white border-2 rounded-md lg:hidden\"
  1368.                                         :class=\"(rowOpen == {{loop.index}}) ? 'table-row' : 'hidden'\"
  1369.                                     >
  1370.                                         <td colspan=\"4\" class=\"px-4 pt-6 pb-6 text-sm\">
  1371.                                             {% for property in selectedProperties ?: [] %}
  1372.                                                 {% if loop.index > 2 %}
  1373.                                                     <div class=\"flex justify-between py-1\">
  1374.                                                         <span>{{ property.title ?: property.key }}</span>
  1375.                                                         <span class=\"text-right text-blue\">
  1376.                                                             {% set customCounter = 0 %}
  1377.                                                             {% set found = false %}
  1378.                                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  1379.                                                                 {% set specificationObject = spec.specification_property.data %}
  1380.                                                                 {% if specificationObject.id == property.id %}
  1381.                                                                     {% set found = true %}
  1382.                                                                     {% set customCounter = customCounter + 1 %}
  1383.                                                                     {# Output the specification value and unit to this row #}
  1384.                                                                     <div class=\" {{ customCounter > 2 ? '' : '' }}\">
  1385.                                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  1386.                                                                     </div>
  1387.                                                                     {# skip the rest of the spec-for-loop when entry is found #}
  1388.                                                                     {% break %}
  1389.                                                                 {% endif %}
  1390.                                                             {% endfor %}
  1391.                                                         </span>
  1392.                                                     </div>
  1393.                                                 {% endif %}
  1394.                                             {% endfor %}
  1395.                                             <div class=\"lg:py-1.5 hidden lg:flex lg:justify-between \">
  1396.                                                 <span>{{ 'Meer informatie'|trans }}</span>
  1397.                                                 <span class=\"relative text-right text-blue\" x-data=\"{ tooltipOpen: false }\">
  1398.                                                     <span
  1399.                                                         class=\"cursor-pointer\"
  1400.                                                         @click=\"tooltipOpen = !tooltipOpen\"
  1401.                                                         @click.outside=\"tooltipOpen = false\"
  1402.                                                     >
  1403.                                                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M8.036 5.235c.433 0 .747-.081.942-.244.196-.162.294-.418.294-.767 0-.358-.098-.618-.294-.78-.195-.163-.51-.244-.942-.244-.433 0-.747.081-.943.243-.195.163-.293.423-.293.78 0 .35.098.606.293.768.196.163.51.244.943.244Zm1.06 6.965V5.959H6.976V12.2h2.122ZM8 14.4A6.4 6.4 0 1 1 14.4 8 6.407 6.407 0 0 1 8 14.4ZM0 8a8 8 0 0 0 16 0 8.009 8.009 0 0 0-8-8 8 8 0 0 0-8 8Z\"/></svg>
  1404.                                                     </span>
  1405.                                                     <div
  1406.                                                         class=\"absolute right-0 z-10 w-64 p-4 bg-white rounded shadow-lg top-5\"
  1407.                                                         :class=\"tooltipOpen ? 'block' : 'hidden'\"
  1408.                                                     >
  1409.                                                         <span class=\"text-sm leading-6 text-gray-900\">
  1410.                                                             {{ \"Onze specialisten zorgen voor een passende oplossing, vrijblijvend advies en afstemming met u.\"|trans }}
  1411.                                                         </span>
  1412.                                                     </div>
  1413.                                                 </span>
  1414.                                             </div>
  1415.                                             <div class=\"mt-4\">
  1416.                                                 {% include 'includes/partials/_rental-form.html.twig' with {
  1417.                                                     buttonText: 'Offerte aanvragen'|trans,
  1418.                                                     buttonClass: 'button button__green',
  1419.                                                     trackButtonId: 'conversion_rentnow',
  1420.                                                     requestUrl: data.request.url ?? null
  1421.                                                 } %}
  1422.                                                 <a href=\"{{ product.page.url | trimUrl }}\" class=\"items-center justify-center !hidden lg:flex button button__secondary\">
  1423.                                                     Meer informatie
  1424.                                                     <span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
  1425.                                                     <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  1426.                                                             <path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
  1427.                                                         </svg>
  1428.                                                     </span>
  1429.                                                 </a>
  1430.                                             </div>
  1431.                                         </td>
  1432.                                     </tr>
  1433.                                     {% set showReadMoreSpecsButton = loop.index > shownSpecsOnInitialLoad %}
  1434.                                 {% endfor %}
  1435.                             </tbody>
  1436.                         </table>
  1437.                     </div>
  1438.                     {# never show this button when printing (printmode), even though there could be more specs. #}
  1439.                     {% if showReadMoreSpecsButton and printmode is not defined %}
  1440.                         <div class=\"flex justify-center w-full mt-6 \">
  1441.                             <button
  1442.                                 class=\"button button__secondary group\"
  1443.                                 @click=\"tableOpen = !tableOpen\"
  1444.                             >
  1445.                                 <span class=\"flex w-6 h-6 mr-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white \">
  1446.                                     <span class=\"flex items-center justify-center w-full h-full \">
  1447.                                         <svg
  1448.                                             x-show=\"!tableOpen\"
  1449.                                             class=\"w-3.5\"
  1450.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 14\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M6.68 0h.024a.929.929 0 0 1 .916.915l.07 4.994 4.994.07a.93.93 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024l-4.995-.07.07 4.995a.878.878 0 0 1-.89.89.93.93 0 0 1-.915-.916L5.91 7.69.914 7.62A.93.93 0 0 1 0 6.704a.878.878 0 0 1 .89-.89l4.994.07L5.814.89A.878.878 0 0 1 6.68 0Z\"/>
  1451.                                         </svg>
  1452.                                         <svg
  1453.                                             x-show=\"tableOpen\"
  1454.                                             class=\"w-3.5\"
  1455.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 3\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M12.684.979a.929.929 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024L.915 2.62A.929.929 0 0 1 0 1.704a.878.878 0 0 1 .89-.89l11.794.165Z\"/>
  1456.                                         </svg>
  1457.                                     </span>
  1458.                                 </span>
  1459.                                 <span x-show=\"!tableOpen\">
  1460.                                     {{ ('Meer {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1461.                                 </span>
  1462.                                 <span x-show=\"tableOpen\">
  1463.                                     {{ ('Minder {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1464.                                 </span>
  1465.                             </button>
  1466.                         </div>
  1467.                     {% endif %}
  1468.                 </div>
  1469.             </section>
  1470.         {% endif %}
  1471.     {% endblock %}
  1472. {% endembed %}
  1473. ""areas/product-table-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/product-table-brick/view.html.twig");
  1474.     }
  1475.     
  1476.     public function checkSecurity()
  1477.     {
  1478.         static $tags = ["extends" => 9];
  1479.         static $filters = [];
  1480.         static $functions = [];
  1481.         try {
  1482.             $this->sandbox->checkSecurity(
  1483.                 ['extends'],
  1484.                 [],
  1485.                 [],
  1486.                 $this->source
  1487.             );
  1488.         } catch (SecurityError $e) {
  1489.             $e->setSourceContext($this->source);
  1490.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1491.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1492.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1493.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1494.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1495.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1496.             }
  1497.             throw $e;
  1498.         }
  1499.     }
  1500. }
  1501. /* areas/product-table-brick/view.html.twig */
  1502. class __TwigTemplate_964436efdd695f14360fa08b2cf3902c17d3be5f381a4f2428e00f84021e5a25___1488321402 extends Template
  1503. {
  1504.     private Source $source;
  1505.     /**
  1506.      * @var array<string, Template>
  1507.      */
  1508.     private array $macros = [];
  1509.     public function __construct(Environment $env)
  1510.     {
  1511.         parent::__construct($env);
  1512.         $this->source $this->getSourceContext();
  1513.         $this->blocks = [
  1514.             'title' => [$this'block_title'],
  1515.             'information' => [$this'block_information'],
  1516.         ];
  1517.         $this->sandbox $this->extensions[SandboxExtension::class];
  1518.         $this->checkSecurity();
  1519.     }
  1520.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1521.     {
  1522.         // line 19
  1523.         return "app/editmodenotice.html.twig";
  1524.     }
  1525.     protected function doDisplay(array $context, array $blocks = []): iterable
  1526.     {
  1527.         $macros $this->macros;
  1528.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1529.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  1530.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1531.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-table-brick/view.html.twig"));
  1532.         $this->parent $this->loadTemplate("app/editmodenotice.html.twig""areas/product-table-brick/view.html.twig"19);
  1533.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  1534.         
  1535.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1536.         
  1537.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1538.     }
  1539.     // line 20
  1540.     /**
  1541.      * @return iterable<null|scalar|\Stringable>
  1542.      */
  1543.     public function block_title(array $context, array $blocks = []): iterable
  1544.     {
  1545.         $macros $this->macros;
  1546.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1547.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  1548.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1549.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  1550.         yield " Nog geen producteneigenschappen geselecteerd. ";
  1551.         
  1552.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1553.         
  1554.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1555.         yield from [];
  1556.     }
  1557.     // line 21
  1558.     /**
  1559.      * @return iterable<null|scalar|\Stringable>
  1560.      */
  1561.     public function block_information(array $context, array $blocks = []): iterable
  1562.     {
  1563.         $macros $this->macros;
  1564.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1565.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  1566.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1567.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  1568.         yield " Kies producteneigenschappen middels het potloodje ";
  1569.         
  1570.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1571.         
  1572.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1573.         yield from [];
  1574.     }
  1575.     /**
  1576.      * @codeCoverageIgnore
  1577.      */
  1578.     public function getTemplateName(): string
  1579.     {
  1580.         return "areas/product-table-brick/view.html.twig";
  1581.     }
  1582.     /**
  1583.      * @codeCoverageIgnore
  1584.      */
  1585.     public function isTraitable(): bool
  1586.     {
  1587.         return false;
  1588.     }
  1589.     /**
  1590.      * @codeCoverageIgnore
  1591.      */
  1592.     public function getDebugInfo(): array
  1593.     {
  1594.         return array (  1710 => 21,  1687 => 20,  1664 => 19,  1311 => 11,  1288 => 10,  1265 => 9,  922 => 242,  916 => 238,  908 => 233,  902 => 230,  880 => 210,  877 => 209,  870 => 203,  856 => 202,  854 => 201,  837 => 188,  835 => 186,  834 => 182,  824 => 175,  807 => 161,  803 => 159,  789 => 158,  784 => 155,  778 => 154,  775 => 153,  772 => 152,  765 => 149,  760 => 148,  758 => 147,  755 => 146,  752 => 145,  749 => 144,  746 => 143,  741 => 142,  738 => 141,  736 => 140,  731 => 138,  728 => 137,  725 => 136,  708 => 135,  702 => 132,  689 => 124,  685 => 123,  679 => 119,  677 => 117,  676 => 113,  672 => 111,  666 => 110,  658 => 106,  655 => 105,  652 => 104,  646 => 103,  643 => 102,  640 => 101,  633 => 98,  628 => 97,  626 => 96,  623 => 95,  620 => 94,  617 => 93,  614 => 92,  610 => 91,  607 => 90,  604 => 89,  599 => 88,  596 => 87,  588 => 78,  584 => 77,  581 => 76,  578 => 74,  574 => 72,  572 => 71,  567 => 68,  550 => 67,  547 => 66,  533 => 53,  516 => 50,  511 => 49,  494 => 48,  487 => 43,  482 => 39,  479 => 38,  476 => 37,  470 => 29,  468 => 28,  462 => 24,  459 => 23,  456 => 19,  454 => 18,  449 => 15,  446 => 14,  443 => 13,  440 => 9,  437 => 8,  435 => 7,  432 => 6,  419 => 5,  57 => 4,  54 => 3,  52 => 2,  50 => 1,);
  1595.     }
  1596.     public function getSourceContext(): Source
  1597.     {
  1598.         return new Source("{% set selectedProducts = pimcore_relations('selectedProducts').getData() %}
  1599. {% set selectedProperties = pimcore_relations('selectedProperties').getData() %}
  1600. {% embed 'app/area-brick-layout.html.twig' %}
  1601.     {% block content %}
  1602.         {% if selectedProducts is empty %}
  1603.             {% if editmode %}
  1604.                 {% embed 'app/editmodenotice.html.twig' %}
  1605.                     {% block title %} Nog geen alternatieve producten geselecteerd. {% endblock %}
  1606.                     {% block information %} Kies alternatieve producten middels het potloodje. {% endblock %}
  1607.                 {% endembed %}
  1608.             {% endif %}
  1609.         {% else %}
  1610.             <section class=\"py-10 bg-blue-200 lg:py-20\" x-data=\"{ tableOpen: false }\">
  1611.                 <div class=\"overflow-hidden lg:container\">
  1612.                     {% if editmode and selectedProperties is empty %}
  1613.                         {% embed 'app/editmodenotice.html.twig' %}
  1614.                             {% block title %} Nog geen producteneigenschappen geselecteerd. {% endblock %}
  1615.                             {% block information %} Kies producteneigenschappen middels het potloodje {% endblock %}
  1616.                         {% endembed %}
  1617.                     {% endif %}
  1618.                     <div class=\"grid grid-cols-12 gap-6\">
  1619.                         <div class=\"col-span-12\">
  1620.                             <h2 class=\"mb-4 text-2xl text-center md:text-3xl lg:text-4xl\">
  1621.                                 {% include 'areas/unique-selling-point-brick/partials/_title.html.twig' %}
  1622.                             </h2>
  1623.                         </div>
  1624.                     </div>
  1625.                     {#
  1626.                     Here we set the maxinum amount of specs that are shown on initial page load.
  1627.                     If there are more then this amount then those will be hidden, a button will then be shown
  1628.                     #}
  1629.                     {% set shownSpecsOnInitialLoad = 8 %}
  1630.                     {% set showReadMoreSpecsButton = false %}
  1631.                     <div class=\"px-0 overflow-x-auto lg:pb-6 lg:pr-6 \">
  1632.                         <table class=\"w-full lg:border-separate text-md lg:text-base lg:border-slate-500 lg:border-spacing-2\" >
  1633.                             {# First, we generate the table header based on the selected properties. #}
  1634.                             <thead class=\"bg-gray-50\">
  1635.                                 <tr>
  1636.                                     <th>
  1637.                                         <!-- title -->
  1638.                                     </th>
  1639.                                     {% for property in selectedProperties ?: [] %}
  1640.                                         <th scope=\"col\" class=\"px-4 py-2 font-normal text-left text-gray-900 lg:px-6 lg:py-4 {{ loop.index > 2 ? 'hidden lg:table-cell' : '' }}\">
  1641.                                             {{ property.title ?: property.key }}
  1642.                                         </th>
  1643.                                     {% endfor %}
  1644.                                     <th class=\"hidden lg:table-cell\">
  1645.                                         <!-- info -->
  1646.                                     </th>
  1647.                                     <th class=\"hidden lg:table-cell\">
  1648.                                         <!-- button -->
  1649.                                     </th>
  1650.                                     <th>
  1651.                                         <!-- chevron  -->
  1652.                                     </th>
  1653.                                 </tr>
  1654.                             </thead>
  1655.                             {# then, we will output the product-rows #}
  1656.                             <tbody class=\"gap-6\" x-data=\"{ rowOpen: false }\">
  1657.                                 {% for product in selectedProducts %}
  1658.                                     <tr
  1659.                                         x-description=\"Odd row\"
  1660.                                         class=\"bg-white border-t-8 border-blue-200 lg:border-t-0\"
  1661.                                         {% if loop.index >= shownSpecsOnInitialLoad %}
  1662.                                             :class=\"tableOpen ? '' : 'hidden'\"
  1663.                                         {% endif %}
  1664.                                     >
  1665.                                         {# Output the product title as the first column in this row #}
  1666.                                         <td class=\"px-4 py-5 mb-4 font-bold leading-4 text-md lg:text-xl lg:px-6 lg:py-4 lg:rounded-l-md whitespace-nowrap\">
  1667.                                             <a href=\"{{ product.page.url | trimUrl }}\">
  1668.                                                 <span class=\"hidden md:inline-block\">{{ product.name }}</span> <span class=\"text-blue\">{{ product.code ?? \"\" }}</span>
  1669.                                             </a>
  1670.                                         </td>
  1671.                                         {#
  1672.                                         then we will loop through all the selected properties...
  1673.                                         We always render a column for each selected property, we do this to maintain table-like
  1674.                                         formatting. In case a selected spec to highlight does not exist in a product
  1675.                                         we will simply show an empty column for that product :)
  1676.                                         #}
  1677.                                         {% set customCounter = 0 %}
  1678.                                         {% for property in selectedProperties ?: [] %}
  1679.                                             {% set found = false %}
  1680.                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  1681.                                                 {% set specificationObject = spec.specification_property.data %}
  1682.                                                 {% if specificationObject.id == property.id %}
  1683.                                                     {% set found = true %}
  1684.                                                     {% set customCounter = customCounter + 1 %}
  1685.                                                     {# Output the specification value and unit to this row #}
  1686.                                                     <td class=\"px-4 py-4 leading-4 lg:px-6 lg:py-4  whitespace-nowrap {{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  1687.                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  1688.                                                     </td>
  1689.                                                     {# skip the rest of the spec-for-loop when entry is found #}
  1690.                                                     {% break %}
  1691.                                                 {% endif %}
  1692.                                             {% endfor %}
  1693.                                             {% if not found %}
  1694.                                                 {% set customCounter = customCounter + 1 %}
  1695.                                                 <td class=\"{{ customCounter > 2 ? 'hidden lg:table-cell' : '' }}\">
  1696.                                                     <!-- empty -->
  1697.                                                 </td>
  1698.                                             {% endif %}
  1699.                                         {% endfor %}
  1700.                                         <td class=\"hidden px-4 py-2 lg:px-6 lg:py-4 lg:table-cell lg:rounded-r-md\">
  1701.                                             {% include 'includes/partials/_rental-form.html.twig' with {
  1702.                                                 buttonText: 'Offerte aanvragen'|trans,
  1703.                                                 buttonClass: 'button button__green',
  1704.                                                 trackButtonId: 'conversion_rentnow',
  1705.                                                 requestUrl: data.request.url
  1706.                                             } %}
  1707.                                         </td>
  1708.                                         <td class=\"content-end px-4 py-2 text-right md:hidden lg:px-6 lg:py-4 group \">
  1709.                                             <div
  1710.                                                 class=\"inline-flex items-center justify-center w-8 h-8 bg-gray-200 rounded-full cursor-pointer text-blue group-hover:bg-blue group-hover:text-white lg:hidden\"
  1711.                                                 :class=\"(rowOpen == {{loop.index}}) ? '-rotate-90' : 'rotate-90'\"
  1712.                                                 @click=\"(rowOpen == {{loop.index}}) ? rowOpen = false : rowOpen = {{loop.index}}\"
  1713.                                             >
  1714.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"16\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg>
  1715.                                             </div>
  1716.                                         </td>
  1717.                                     </tr>
  1718.                                     <tr
  1719.                                         class=\"bg-white border-2 rounded-md lg:hidden\"
  1720.                                         :class=\"(rowOpen == {{loop.index}}) ? 'table-row' : 'hidden'\"
  1721.                                     >
  1722.                                         <td colspan=\"4\" class=\"px-4 pt-6 pb-6 text-sm\">
  1723.                                             {% for property in selectedProperties ?: [] %}
  1724.                                                 {% if loop.index > 2 %}
  1725.                                                     <div class=\"flex justify-between py-1\">
  1726.                                                         <span>{{ property.title ?: property.key }}</span>
  1727.                                                         <span class=\"text-right text-blue\">
  1728.                                                             {% set customCounter = 0 %}
  1729.                                                             {% set found = false %}
  1730.                                                             {% for spec in product.specifications|filter(s => s.specification_property.data.publicly_visible) %}
  1731.                                                                 {% set specificationObject = spec.specification_property.data %}
  1732.                                                                 {% if specificationObject.id == property.id %}
  1733.                                                                     {% set found = true %}
  1734.                                                                     {% set customCounter = customCounter + 1 %}
  1735.                                                                     {# Output the specification value and unit to this row #}
  1736.                                                                     <div class=\" {{ customCounter > 2 ? '' : '' }}\">
  1737.                                                                         {{ spec.specification_value.data }} {{ specificationObject.unit }}
  1738.                                                                     </div>
  1739.                                                                     {# skip the rest of the spec-for-loop when entry is found #}
  1740.                                                                     {% break %}
  1741.                                                                 {% endif %}
  1742.                                                             {% endfor %}
  1743.                                                         </span>
  1744.                                                     </div>
  1745.                                                 {% endif %}
  1746.                                             {% endfor %}
  1747.                                             <div class=\"lg:py-1.5 hidden lg:flex lg:justify-between \">
  1748.                                                 <span>{{ 'Meer informatie'|trans }}</span>
  1749.                                                 <span class=\"relative text-right text-blue\" x-data=\"{ tooltipOpen: false }\">
  1750.                                                     <span
  1751.                                                         class=\"cursor-pointer\"
  1752.                                                         @click=\"tooltipOpen = !tooltipOpen\"
  1753.                                                         @click.outside=\"tooltipOpen = false\"
  1754.                                                     >
  1755.                                                         <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#0072BB\" fill-rule=\"evenodd\" d=\"M8.036 5.235c.433 0 .747-.081.942-.244.196-.162.294-.418.294-.767 0-.358-.098-.618-.294-.78-.195-.163-.51-.244-.942-.244-.433 0-.747.081-.943.243-.195.163-.293.423-.293.78 0 .35.098.606.293.768.196.163.51.244.943.244Zm1.06 6.965V5.959H6.976V12.2h2.122ZM8 14.4A6.4 6.4 0 1 1 14.4 8 6.407 6.407 0 0 1 8 14.4ZM0 8a8 8 0 0 0 16 0 8.009 8.009 0 0 0-8-8 8 8 0 0 0-8 8Z\"/></svg>
  1756.                                                     </span>
  1757.                                                     <div
  1758.                                                         class=\"absolute right-0 z-10 w-64 p-4 bg-white rounded shadow-lg top-5\"
  1759.                                                         :class=\"tooltipOpen ? 'block' : 'hidden'\"
  1760.                                                     >
  1761.                                                         <span class=\"text-sm leading-6 text-gray-900\">
  1762.                                                             {{ \"Onze specialisten zorgen voor een passende oplossing, vrijblijvend advies en afstemming met u.\"|trans }}
  1763.                                                         </span>
  1764.                                                     </div>
  1765.                                                 </span>
  1766.                                             </div>
  1767.                                             <div class=\"mt-4\">
  1768.                                                 {% include 'includes/partials/_rental-form.html.twig' with {
  1769.                                                     buttonText: 'Offerte aanvragen'|trans,
  1770.                                                     buttonClass: 'button button__green',
  1771.                                                     trackButtonId: 'conversion_rentnow',
  1772.                                                     requestUrl: data.request.url ?? null
  1773.                                                 } %}
  1774.                                                 <a href=\"{{ product.page.url | trimUrl }}\" class=\"items-center justify-center !hidden lg:flex button button__secondary\">
  1775.                                                     Meer informatie
  1776.                                                     <span class=\"flex items-center justify-center w-6 h-6 ml-3 bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\">
  1777.                                                     <svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\">
  1778.                                                             <path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"></path>
  1779.                                                         </svg>
  1780.                                                     </span>
  1781.                                                 </a>
  1782.                                             </div>
  1783.                                         </td>
  1784.                                     </tr>
  1785.                                     {% set showReadMoreSpecsButton = loop.index > shownSpecsOnInitialLoad %}
  1786.                                 {% endfor %}
  1787.                             </tbody>
  1788.                         </table>
  1789.                     </div>
  1790.                     {# never show this button when printing (printmode), even though there could be more specs. #}
  1791.                     {% if showReadMoreSpecsButton and printmode is not defined %}
  1792.                         <div class=\"flex justify-center w-full mt-6 \">
  1793.                             <button
  1794.                                 class=\"button button__secondary group\"
  1795.                                 @click=\"tableOpen = !tableOpen\"
  1796.                             >
  1797.                                 <span class=\"flex w-6 h-6 mr-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white \">
  1798.                                     <span class=\"flex items-center justify-center w-full h-full \">
  1799.                                         <svg
  1800.                                             x-show=\"!tableOpen\"
  1801.                                             class=\"w-3.5\"
  1802.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 14\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M6.68 0h.024a.929.929 0 0 1 .916.915l.07 4.994 4.994.07a.93.93 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024l-4.995-.07.07 4.995a.878.878 0 0 1-.89.89.93.93 0 0 1-.915-.916L5.91 7.69.914 7.62A.93.93 0 0 1 0 6.704a.878.878 0 0 1 .89-.89l4.994.07L5.814.89A.878.878 0 0 1 6.68 0Z\"/>
  1803.                                         </svg>
  1804.                                         <svg
  1805.                                             x-show=\"tableOpen\"
  1806.                                             class=\"w-3.5\"
  1807.                                             xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 3\"><path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M12.684.979a.929.929 0 0 1 .916.916.878.878 0 0 1-.866.89h-.024L.915 2.62A.929.929 0 0 1 0 1.704a.878.878 0 0 1 .89-.89l11.794.165Z\"/>
  1808.                                         </svg>
  1809.                                     </span>
  1810.                                 </span>
  1811.                                 <span x-show=\"!tableOpen\">
  1812.                                     {{ ('Meer {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1813.                                 </span>
  1814.                                 <span x-show=\"tableOpen\">
  1815.                                     {{ ('Minder {{ productCategory }} tonen') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key)|customLowercase }) }}
  1816.                                 </span>
  1817.                             </button>
  1818.                         </div>
  1819.                     {% endif %}
  1820.                 </div>
  1821.             </section>
  1822.         {% endif %}
  1823.     {% endblock %}
  1824. {% endembed %}
  1825. ""areas/product-table-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/product-table-brick/view.html.twig");
  1826.     }
  1827.     
  1828.     public function checkSecurity()
  1829.     {
  1830.         static $tags = ["extends" => 19];
  1831.         static $filters = [];
  1832.         static $functions = [];
  1833.         try {
  1834.             $this->sandbox->checkSecurity(
  1835.                 ['extends'],
  1836.                 [],
  1837.                 [],
  1838.                 $this->source
  1839.             );
  1840.         } catch (SecurityError $e) {
  1841.             $e->setSourceContext($this->source);
  1842.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1843.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1844.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1845.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1846.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1847.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1848.             }
  1849.             throw $e;
  1850.         }
  1851.     }
  1852. }