{if $row.paid == 'n'} View Invoice (.pdf) | Pay Now {else} Invoice/Receipt (.pdf) {/if}