{include="header"} {if condition="empty($id)"}

{$i18n['global_paybacks_list']}

{if condition="$global_paybacks !== FALSE"}
{loop="$global_paybacks"}
{$value->getDate()}
{if condition="$value->getClosed() === false"} {$i18n['payback']} {$i18n['number']}{$value->getId()} {else} [{$i18n['closed']}] {$i18n['payback']} {$i18n['number']}{$value->getId()} {/if}
{/loop}
{else}

{$i18n['no_global_payback']}.

{/if} {else} {if condition="$global_paybacks === false"} {$i18n['payback']} {$i18n['doesnt_exist']}. {else}

{$i18n['payback']} {$i18n['number']}{$global_paybacks->getId()}

{$table=$global_paybacks->getUsersIn()->get()} {loop="$global_paybacks->getUsersIn()->get()"} {/loop} {loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"} {if condition="$key1 == $key2"} {else} {/if} {/loop} {/loop}
{$i18n['owes']} / {$i18n['to']}{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}{$i18n['deleted_user']}{/if}
{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}{$i18n['deleted_user']}{/if} {if condition="$table[$key1][$key2] != 0"} {$table[$key1][$key2]} {else} - {/if}
{/if}

{$i18n['go_back_list_global_paybacks']}

{/if} {include="footer"}