{if $row.paid == 'y'} {if $row.payment_method == 'online'} Paid online {$row.paid_date|date_format} {else} Paid {/if} {else} Not Received {/if}