I have this code but kind of confused how to display it in a twig table
$data = array(
'product' => $product,
'qty' => $qty,
'price' => $price,
'total' => $total,
);
the data above are in array so if i do something like
{% for product in product %}
{{ product }}
{% endfor %}
it displays all the items in product. My problem now is how to display it in twig table since it seems i will be running multiple for loops to get all the items in each array.
something i have tried but didn't work how it should
{% for product in product %}
<tr>
<td>{{ product }}</td>
</tr>
{% endfor %}
{% for price in price %}
<tr>
<td >{{ price }}</td>
</tr>
{% endfor %}