<table class="table table-striped table-hover rtl" style=" width: 970px; font-size: 17px;">
    {if !empty($patientResult)}
    <tr>
        <!--<th>#</th>-->
        <th style=" width: 2%; ">رقم</th>
        <th>اسم الحالة</th>
        {if $pSetting->system_lang != 2} 
        <th style=" width: 18%; ">اسم الزوج</th>
        {/if}
        <th style=" width: 20%; ">الطبيب المعالج1</th>
        <th style=" width: 20%; ">رقم التليفون</th>
        <th style=" width: 20%; ">العنوان</th>
    </tr>
    <tbody>
        {foreach $patientResult as $row}
        <tr  {if $row.status == 1 } class="suspendedTr"  {/if}>
            <!--<td>{$row.id}</td>-->

            <td>
                {if $row.status == 1 ||  $row.link == -1 || $row.link == ''  }
                {$row.statusno}
                {else}
                <a class="bluex" href="{$hosturl}/controllers/{$row.link}">{$row.statusno}</a>
                {/if}
            </td>
            <td  class="bold txtr">
                {if $row.status == 1 ||  $row.link == -1 || $row.link == ''  }
                {$row.wifename}
                {else}
                <a class="bluex" href="{$hosturl}/controllers/{$row.link}">{$row.wifename}</a>
                {/if}
            </td>

            {if $pSetting->system_lang != 2} 
            <td class="txtr">
                {if $row.status == 1 ||  $row.link == -1 || $row.link == ''  }
                {$row.husdandname}
                {else}
                <a class="bluex" href="{$hosturl}/controllers/{$row.link}">{$row.husdandname}</a>
                {/if}
            </td>
            {/if}

            <td>{if $row.doctor1 > 0 }{$row.d1}{else if $row.h_doctor1 > 0 } {$row.hd1} {else}   {/if} </td>
            <td>{$row.phone}</td>
            <td>{$row.address}</td>
        </tr>
        {/foreach}
        {else}

        {if $isHospital == 1 && $withDept != 1}
    <h2  style="text-align: center;color: red; font-weight: bold">
        <a href="{$hosturl}/controllers/patients.php?intIs={$intIs}&searchValue={$searchValue}"   style="background-color: #E60017 ; color: white ;border-radius: 110px; font-size: 20px;"
           id="addregnew1" data-id="2" data-itr="1" class="btn btn-default">إضافة</a>
        لا يوجد بيانات  متاحة
    </h2>

    {else}
    <h2 style="text-align: center;color: red;"> No Data Available Now.</h2>
    {/if}



    {/if}
</tbody>
</table>
