{include="header"} {if condition="$notice != ''"}

{$notice}

{/if}

Balance

Read line owes case {$currency} to column. You can click on links to confirm the payback. {loop="users"} {/loop} {loop="users"} {loop="users"} {if condition="$balances[$value1->getId()][$value2->getId()] == 'X'"} {else} {/if} {/loop} {/loop}
Owes\To{$value->getDisplayName()}
{$value->getDisplayName()}{$balances[$value1->getId()][$value2->getId()]}

Detailed list of bills for last month

{if condition="$invoices !== false && count($invoices)>=1"} {loop="invoices"} {/loop}
Date Paid by Users in Amount What ? Edit Delete
{$value->getDate('d/m/Y A')} {$users[$value->getBuyer()]->getDisplayName()} {loop="$value->getUsersIn()->get()"} {$users[$key2]->getDisplayName()} {if condition="$value2 > 1"} ({$value2} guests) {elseif condition="$value2 == 1"} ({$value2} guest) {/if} - {if condition="$paybacks[$value1->getId()] === false"} {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} Remains {$value1->getAmountPerPerson()} {$currency} {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} {else} {if condition="$paybacks[$value1->getId()][$key2]->getAmount() == $value1->getAmountPerPerson()"} {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} Paid {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} {else} {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} Remains {$value1->getAmountPerPerson() - $paybacks[$value1->getId()][$key2]->getAmount()}{$currency} {if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"} {/if} {/if} {/if}
{/loop}
{$value->getAmount()}{$currency} {$value->getWhat()} Edit Delete
{else}

No bills added.

{/if}
{include="footer"}