</tr> <? } //If not last ?> <? } //If detail ?> <? }?> </tbody> <tr> <td colspan="5" class="form_header_cell" align="right">Sub-Total:</td> <td class="form_field_cell"><?php echo SureInvoice::getCurrencySymbol() . number_format($invoice->getSubTotal(), 2); ?> </td> </tr> <tr> <td colspan="5" class="form_header_cell" align="right">Tax:</td> <td class="form_field_cell"><?php echo SureInvoice::getCurrencySymbol() . number_format($invoice->getTaxAmount(), 2); ?> </td> </tr> <tr> <td colspan="5" class="form_header_cell" align="right">Total:</td> <td class="form_field_cell"><?php echo SureInvoice::getCurrencySymbol() . number_format($invoice->getTotal(), 2); ?> </td> </tr> </table> </div> </div><BR> <? if(count($payments) > 0){ ?> <div class="tableContainer" style="clear:both;">