{$Locales.accounts}
{#each $accounts as account (account.id)}
{account.balance.toLocaleString($Currency.lang, { style: "currency", currency: $Currency.currency, minimumFractionDigits: 0, })}
#{account.id}
{account.cardNumber}
{account.owner.name} - {account.holder}
{#if account.owner.identifier === get(userData).identifier || account.users.some(user => user.identifier === get(userData).identifier)} {#if account.owner.identifier === get(userData).identifier} {/if} {/if}
{/each}
{#if $showModal}

{$Locales.new_user_to_account}

{/if} {#if $showRenameModal}

{$Locales.rename_account}

{/if} {#if $showCreateAccountModal}

{$Locales.create_new_account}

{/if} {#if $showDeleteModal}

{$Locales.delete_account}

{$Locales.are_you_sure_you_want_to_delete_this_account}

{/if} {#if $showRemoveUserModal}

{$Locales.remove_user_from_account}

{/if} {#if $showWithdrawModal}

{$Locales.withdraw_from_account}

{/if} {#if $showDepositModal}

{$Locales.deposit_to_account}

{/if}