{if $customerinfo.contacts} {/if} {if $customerinfo.serviceaddr neq ""} {/if} {if $customerinfo.email neq ""} {/if} {foreach from=$customerinfo.messengers item=item} {/foreach} {if $customerinfo.icn neq ""} {/if} {if $customerinfo.ssn neq ""} {/if} {if $customerinfo.ten neq ""} {/if} {if $customerinfo.regon neq ""} {/if} {if $customerinfo.rbe neq ""} {/if} {if $customergroups} {/if}
{$customerinfo.customername|escape} ({$customerinfo.id|string_format:"%04d"}){if $customerinfo.deleted} ({t}deleted customer{/t}){/if}
{if $customerinfo.status eq "3"}{/if} {if $customerinfo.status eq "2"}{/if} {if $customerinfo.status eq "1"}{/if} {if $customerinfo.status eq "3"}{t}connected{/t}{/if} {if $customerinfo.status eq "2"}{t}waiting{/t}{/if} {if $customerinfo.status eq "1"}{t}interested{/t}{/if}
{$customerinfo.address}
{$customerinfo.zip} {$customerinfo.city}
{foreach from=$customerinfo.contacts item=item} {if $item.phone}{$item.phone}{if $item.name} ({$item.name|truncate:"40":"...":true}){/if}
{/if} {/foreach}
{$customerinfo.serviceaddr|replace:"\n":"
"}
{$customerinfo.email}
{if $item.type == $smarty.const.IM_GG} {elseif $item.type == $smarty.const.IM_YAHOO} {elseif $item.type == $smarty.const.IM_SKYPE} {else} {/if} {if $item.type == $smarty.const.IM_GG} {$item.uid} {elseif $item.type == $smarty.const.IM_YAHOO} {$item.uid} {elseif $item.type == $smarty.const.IM_SKYPE} {$item.uid} {else} {$item.uid} {/if}
{$customerinfo.icn}
{t}SSN:{/t} {$customerinfo.ssn}
{t}TEN:{/t} {$customerinfo.ten}
{t}REGON:{/t} {$customerinfo.regon}
{$customerinfo.rbe}
{foreach from=$customergroups item=customergroup name=customergroup} {$customergroup.name}{if !$smarty.foreach.customergroup.last},{/if} {/foreach}
{t}Balance:{/t} {if $customerinfo.balance < 0}{$customerinfo.balance|money_format}{else}{$customerinfo.balance|default:"0"|money_format}{/if}