{foreach from=$data item="row"} {/foreach}
{trans key="reporting.table_labels.product_id"} {trans key="reporting.table_labels.product_name"} {trans key="reporting.table_labels.attributes"} {trans key="reporting.table_labels.items_sold"} {trans key="reporting.table_labels.subtotal"} {trans key="reporting.table_labels.gift_certificate"} {trans key="reporting.table_labels.total"}
{$row.product_id|gs} {$row.title|gs} {foreach from=$row.attributes item="option"} {if $option != ''} {$option|gs|nl2br}
{/if} {/foreach}
{$row.product_quantity} {$row.product_amount|price} {$row.gift_cert_amount|price} {$row.total_amount|price}
{trans key="reporting.table_labels.total"}: {$itemsCount} {$subtotal|price} {$giftCert|price} {$total|price}