<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>
        {if $programesetting->programview  == 1} 
        <th>اسم المريضة</th>
        <th style=" width: 15%; ">الوظيفة </th>
        <th style=" width: 22%; ">اسم الزوج</th>
        {else}
        <th>اسم المريض</th>
        <th style=" width: 15%; ">الوظيفة </th>
        {/if}

        <th style=" width: 27%; ">العنوان</th>
        <th style=" width: 20%; ">الهاتف</th>

    </tr>
    <tbody>
        {foreach $patientResult as $row}
        <tr>
            <!--<td>{$row.id}</td>-->

            <td>{$row.statusno}</td>
            <td  class="bold txtr">
                {if $pSetting->simpleview == 1 }
                <a class="bluex" href="{$hosturl}/controllers/{if empty($arrLinkType[$row.id])}patienthistory.php?ac=show&{else}{$arrLinkType[$row.id]}.php?ac=index&{/if}patientid={$row.id}">{$row.wifename}</a>
                {else}
                {if $loginPosition == 3}
                <a class="bluex" href="{$hosturl}/controllers/patients.php?ac=edit&id={$row.id}&patientid={$row.id}">{$row.wifename}</a>
                {else}
                <a class="bluex" href="{$hosturl}/controllers/{if empty($arrLinkType[$row.id])}patienthistory.php?ac=show&{else}{$arrLinkType[$row.id]}.php?ac=index&{/if}patientid={$row.id}">{$row.wifename}</a>
                {/if}
                {/if}
            </td>
            <td>{$row.wJob}</td>
            {if $programesetting->programview  == 1} 
            <td class="txtr">{$row.husdandname}</td>
            {/if}

            <td>{$row.address}</td>
            <td>{$row.phone}</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>
