</td> </tr> <? } ?> <? } // end for links if($i != count($activities)-1){?> <tr> <td colspan="11" class="dg_header_cell"> </td> </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); ?>