
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Old Antenatal visits
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/followup.php?ac=index&patientid={$patientid}" class="btn btn-default btn-sm">
                                Antenatal visits
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body">

                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <td>#</td>
                                    <td>Pregnancy No.</td>
                                </tr>
                            </thead>
                            <tbody>
                                {if $oldantenalCount >0}
                                {assign var="i" value="1"}
                                {foreach $oldantenal as $myobj}
                                <tr>
                                    <td>{$i}</td>
                                    <td style="padding: 3px;">
                                        <div align="center">
                                            <a href="{$hosturl}/controllers/followup.php?ac=pregdetail&patientid={$patientid}&pregno={$myobj->id}">
                                                Pregnancy Data NO.  {$i}
                                            </a>
                                        </div>

                                    </td>
                                </tr>
                                {assign var="i" value=$i+1}
                                {/foreach}
                                {else}
                                <tr>
                                    <td style="padding: 3px;" colspan="2">
                                        <div align="center">
                                            NO DATA
                                        </div>

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




                    </div>
                </div>
            </div>
        </div>

    </div>

</div>