
<table class="table table-striped table-hover table-bordered" id="rayRequesrsTable">
    <thead>
        <tr>
            <th>
                Visit Date
            </th>
            <th>
                Patient name
            </th>
        </tr>
    </thead>
    <tbody>
        {if $rescount > 0 }
        {foreach $res as $single}
        <tr>

            <td>
                {$single.visitDate}
            </td>
            <td>
                <a target="_blank" href="{$hosturl}/controllers/raysdept.php?ac=showdetails&id={$single.visitid}"  href="#" >
                    {if  $single.for_husband == 1 }
                    {$single.husbandName}
                    {else if  $single.for_husband == 2}

                    {if $single.child_name != ''  && $single.child_name != null } 
                    {$single.child_name}  /  {$single.wifeName}
                    {else}
                    {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                    {/if} 

                    {else}
                    {$single.wifeName}
                    {/if}
                </a>
            </td>
        </tr> 

        {/foreach}

        {else}
        <tr>
            <td colspan="6">
                No data found ...........
            </td>
        </tr>
        {/if}

    </tbody>
</table>
