{capture assign="log_list"} {foreach $log as $row}
| [`Description`] | {if $product_id}[`SKU name`]{else}[`Product`]{/if} | [`Balance`] |
|---|
{if isset($stocks[$stock_id])} {sprintf('[`There are no stock update records on @%s yet.`]', $stocks[$stock_id]['name'])} {else} [`There are no stock update records yet.`] {/if}
{/if} {else}