{if $allDataCount > 0 }
<table class="table table-bordered table-striped table-hover rtl">
    <tbody>
        {foreach $allData as $data}
        <tr>
            <td>         {$data.visitdate}  </td>
            <td>    غرفة رقم    {$data.roomNo}  </td>
            <td>     
                <a  target="_blank"
                    href="{$hosturl}/controllers/{$controllname}.php?ac=operation_details&id={$data.visitId}&patientid={$data.patientid}" > 
                    <ul>
                        <li> {$data.detectionName}  </li>
                        <li> {$data.drName}  </li>
                    </ul>
                </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{else}
<div class="col-md-12">
    <h3 style="text-align: center;color: red;"> No  Visits Available .</h3>
</div>

{/if}