<!-------------------------------------------------------------------------------------------------------------->
<div class="page-content-wrapper">
    <div class="page-content all">
        <table class="table table-striped table-hover table-bordered" id="labRequesrsTable">
            <thead>
                <tr>
                    <th>
                        Visit Date
                    </th>
                    <th>
                        Invests
                    </th>
                </tr>
            </thead>
            <tbody>
                {if $rescount > 0 }
                {foreach $visits as $single}
                <tr>
                    <td>
                        {$single.visitDate}
                    </td>
                    <td>
                        {foreach $single.investigationresults as $invRes}
                        <a  href="{$hosturl}/controllers/{$controllname}.php?ac=displayInvDetails&id={$invRes.investigationResultId}" 
                            class="btn green btn-xs"  style=" float: left;"  target="_blank" >  {$invRes.investName}
                        </a>
                        {/foreach}
                    </td>
                </tr> 

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


            </tbody>
        </table>
    </div>
</div>

