<!-------------------------------------------------------------------------------------------------------------->

{if $reportType == "invests"}

<table class="table table-striped table-hover table-bordered" id="labRequesrsTable">
    <thead>
        <tr>
            <th>
                Visit Date
            </th>
            <th>
                wife name
            </th>
            <th>
                husband name
            </th>
            <th class="col-md-1">
                Show
            </th>
        </tr>
    </thead>
    <tbody>
        {if $rescount > 0 }
        {foreach $res as $single}
        <tr>
            <td>
                {$single.visitDate}
            </td>
            <td>
                {$single.wifeName}
            </td>
            <td>
                {$single.husbandName}
            </td>
            <td>
                <a class="btn green btn-xs" href="{$hosturl}/controllers/{$controllname}.php?ac=showdetails&id={$single.visitid}" style=" float: left;" href="#" >
                    <i class="fa fa-pencil"></i> Show
                </a>
            </td>
        </tr> 

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


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


<!-------------------------------------------------------------------------------------------------------------->

{if $reportType == "rays"}
<table class="table table-striped table-hover table-bordered" id="rayRequesrsTable">
    <thead>
        <tr>
            <th>
                Visit Date
            </th>
            <th>
                wife name
            </th>
            <th>
                husband name
            </th>
            <th class="col-md-1">
                Show
            </th>
        </tr>
    </thead>
    <tbody>
        {if $rescount > 0 }
        {foreach $res as $single}
        <tr>

            <td>
                {$single.visitDate}
            </td>
            <td>
                {$single.wifeName}
            </td>
            <td>
                {$single.husbandName}
            </td>
            <td>
                <a class="btn green btn-xs" href="{$hosturl}/controllers/{$controllname}.php?ac=showdetails&id={$single.visitid}" style=" float: left;" href="#" >
                    <i class="fa fa-pencil"></i> Show
                </a>
            </td>
        </tr> 

        {/foreach}

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

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