{* Do not display shop information block if user none of the required authorizations *} {capture name="shop_information_block_content"} {loop type="auth" name="can_view" role="ADMIN" resource="admin.customer" access="VIEW"}

{count type="customer" current="false" backend_context="1"}

{intl l="Customers" d='hookadminhome.bo.default'}

{/loop} {loop type="auth" name="can_view" role="ADMIN" resource="admin.category" access="VIEW"}

{count type="category" visible="*" backend_context="1"}

{intl l="Categories" d='hookadminhome.bo.default'}

{/loop} {loop type="auth" name="can_view" role="ADMIN" resource="admin.product" access="VIEW"}

{count type="product" visible="*" backend_context="1"}

{intl l="Products" d='hookadminhome.bo.default'}

{count type="product" visible="true" backend_context="1"}

{intl l="Online products" d='hookadminhome.bo.default'}

{count type="product" visible="false" backend_context="1"}

{intl l="Offline products" d='hookadminhome.bo.default'}

{/loop} {loop type="auth" name="can_view" role="ADMIN" resource="admin.order" access="VIEW"}

{count type="order" status="*" customer="*" backend_context="1"}

{intl l="Orders" d='hookadminhome.bo.default'}

{/loop} {/capture} {if trim($smarty.capture.shop_information_block_content) ne ""}
{$smarty.capture.shop_information_block_content nofilter}
{/if}