{title help="Payment" admpage="payment"}{tr}Payment{/tr}{/title} {if isset($invoice)}
{payment id=$invoice}
{/if} {if $user} {tabset} {permission name=payment_view} {tab name="{tr}Outstanding{/tr}"} {if $overdue.cant > 0 || $outstanding.data|@count > 0 || $authorized.data|@count > 0} {if $overdue.cant > 0}

{tr}Overdue{/tr}

{include file='tiki-payment-list.tpl' payments=$overdue cancel=1 table_id='pmt_overdue'} {/if} {if $outstanding.cant > 0}

{tr}Outstanding{/tr}

{include file='tiki-payment-list.tpl' payments=$outstanding cancel=1 table_id='pmt_outstanding'} {/if} {if $authorized.cant > 0}

{tr}Authorized{/tr}

{include file='tiki-payment-list.tpl' payments=$authorized cancel=1 table_id='pmt_authorized'} {/if} {else}
{tr}No outstanding payments found{/tr} {/if} {/tab} {tab name="{tr}Past{/tr}"} {if $past.cant > 0} {include file='tiki-payment-list-past.tpl' payments=$past table_id='pmt_past'} {else}
{tr}No paid payments found{/tr} {/if} {/tab} {tab name="{tr}Cancelled{/tr}"} {if $canceled.cant > 0} {include file='tiki-payment-list.tpl' payments=$canceled table_id='pmt_canceled'} {else}
{tr}No cancelled payments found{/tr} {/if} {/tab} {/permission} {permission name=payment_request} {tab name="{tr}Request{/tr}"}

{$prefs.payment_currency|escape}
{tr}days{/tr}
{if $prefs.feature_categories eq 'y'} {include file="categorize.tpl" labelcol=3 labelclass='text-end' inputcol=8 inputgroup=y} {/if}
{/tab} {/permission} {/tabset} {/if}