Please move ``</td>`` above ``endif`` or the ``if/else`` inside a single ``<td></td>``.