[`In-stock assets`]

{if $wa->shop->config('enable_2x')} {$size = '48x48@2x'} {else} {$size = '48x48'} {/if} {foreach $products as $p} {/foreach}
[`Stock count`]{if $sort == 'stock'} {/if} [`Purchase worth`]{if $sort === 'purchase_worth'} {/if} [`Net worth`]{if $sort == 'net_worth'}{/if} [`Selling time`]
{if !shopUnits::stockUnitsEnabled()}{_w('%d item', '%d items', $total_stock)}{else}{$total_stock}{/if} {wa_currency_html($purchase_worth, $def_cur)} {wa_currency_html($net_worth, $def_cur)}
{$wa->shop->getProductImgHtml($p, $size, ['height' => 48, 'width' => 48])} {$p.name|escape} {if $p.count > 5} {elseif $p.count > 2} {else} {/if} {$p.count} {if isset($p.count) && shopUnits::stockUnitsEnabled()}{$p.stock_unit|escape}{/if} {wa_currency_html($p.purchase_worth, $def_cur)} {wa_currency_html($p.net_worth, $def_cur)} 0} title="{sprintf('[`Selling time is estimated based on the average monthly sales during last 90 days (%d items per month for this product).`]', $p.sold)}"{/if}> {if $p.est > 0} {_w('%d day', '%d days', $p.est)} {else if $p.sold > 0} [`Out of stock`] {else} [`Not enough sales data to estimate selling time for this product`] {/if}

{_w('%d product', '%d products', count($products))}