<table class="table table-striped table-hover rtl">
    {if !empty($patientResult)}
    <tr>
        <!--<th>#</th>-->
        <th>اسم المريضة</th>
        <th>رقم الحالة</th>
        <th style=" width: 22%; ">العنوان</th>
        <th style=" width: 22%; ">اسم الزوج</th>
        <th style=" width: 20%; ">التاريخ</th>
        <th style=" width: 20%; ">حذف</th>
    </tr>
    <tbody>
        {foreach $patientResult as $row}
        <tr>
            <!--<td>{$row.id}</td>-->
            <td  class="bold"><a class="bluex" href="{$hosturl}/controllers/patienthistory.php?patientid={$row.id}">{$row.wifename}</a></td>
            <td>{$row.statusno}</td>
            <td>{$row.address}</td>
            <td>{$row.husdandname}</td>
            <td>{$row.visitdate}</td>
            <td>
                <a href="{$hosturl}/controllers/visits.php?ac=delbylink&id={$row.visitid}" class="btn red btn-xs"><i class="fa fa-pencil"></i> حذف</a>
            </td>
        </tr>
        {/foreach}
        {else}
    <h2 style="text-align: center;color: red;"> No Data Available Now.</h2>
    {/if}
</tbody>
</table>
