{% set th = th|default([]) %}
{% set td = td|default([]) %}
<h3>{{ 'product.detail.Table'|trans }}</h3>
<table class="table">
<thead>
<tr>
{% for heading in th %}
{% if heading matches '/{asset\|(\w+)}/' %}
<th>
{% set id = heading|split('|')|last|split('}')|first %}
<span class="icon icon-{{ id }}"></span>
{{ ('product.detail.palfinger.icon-' ~ id)|trans }}
</th>
{% else %}
<th>{{ heading|trans }}</th>
{% endif %}
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in td %}
<tr>
{% for value in row %}
{% set tk = 'product.detail.palfinger.' ~ th[loop.index0]|split('|')|last|split('}')|first ~ '-suffix' %}
<td>{{ value }} {{ ((tk == tk|trans) and (not app.request.get('pimcore_debug_translations'))) ? '' : tk|trans|raw }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>