
                        <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> Antenatal visits 
                                                </div>

                                                <div class="actions">
                                                    <a href="{$hosturl}/controllers/followup.php?ac=archive&patientid={$patientid}" class="btn btn-default btn-sm">
                                                        Archive pregnancy
                                                    </a>
                                                </div>

                                            </div>
                                            <div class="portlet-body">


                                                <table class="table table-striped table-hover table-bordered">
                                                    <thead>
                                                        <tr>
                                                            <th class="col-md-2">
                                                                LMP
                                                            </th>
                                                            <th class="col-md-2">
                                                                EDD
                                                            </th>
                                                            <th class="col-md-2">
                                                                IVF
                                                            </th>
                                                            <th class="col-md-1">
                                                                G
                                                            </th>
                                                            <th class="col-md-1">
                                                                P
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$followup->lmp}" readonly/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$followup->eed}" readonly/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$followup->ivf}" readonly/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$followup->g}" readonly/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$followup->p}" readonly/>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>




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

                                <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> General
                                                </div>

                                            </div>
                                            <div class="portlet-body">

                                                <div class="caption col-md-3 tbox3">
                                                    <span class="caption-subject bold uppercase"> Diagnosis</span>
                                                    
                                                </div>
                                                <table class="table table-striped table-hover table-bordered">
                                                    <thead>
                                                        <tr>
                                                            <th style="width: 12%;">
                                                                Date
                                                            </th>
                                                            <th>
                                                                Diagnosis
                                                            </th>
                                                   
                                                        </tr>
                                                    </thead>
                                                    <tbody id="diagnosisBody">
                                                        {if $diagnosis}
                                                        {foreach  $diagnosis  as $diag}
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control"  value="{$diag->date}" readonly/>
                                                            </td>
                                                            <td>
                                                                <textarea class="form-control" rows="2" readonly>{$diag->diagnosis}</textarea>
                                                            </td>
         
                                                        </tr>
                                                        {/foreach}
                                                        {/if}

                                                    </tbody>
                                                </table>


                                                <div class="caption col-md-3 tbox3">
                                                    <span class="caption-subject bold uppercase"> History</span>
                                                </div>
                                                <table class="table table-striped table-hover table-bordered">
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <textarea class="form-control" rows="2" readonly>{$followup->history}</textarea>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>



                                                <div class="caption col-md-3 tbox3">
                                                    <span class="caption-subject bold uppercase"> Examination</span>
                                                    
                                                </div>
                                                <table class="table table-striped table-hover table-bordered">
                                                    <thead>
                                                        <tr>
                                                            <th style="width: 12%;">
                                                                Date
                                                            </th>
                                                            <th>
                                                                Examination
                                                            </th>
                                                       
                                                        </tr>
                                                    </thead>
                                                    <tbody id="examinationBody">
                                                        {if $examination}
                                                        {foreach  $examination  as $diag}
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control "  value="{$diag->date}" readonly/>
                                                            </td>
                                                            <td>
                                                                <textarea class="form-control" rows="2" readonly>{$diag->exam}</textarea>
                                                            </td>
                                               
                                                        </tr>
                                                        {/foreach}
                                                        {/if}

                                                    </tbody>
                                                </table>
                                                <div class="caption col-md-3 tbox3">
                                                    <span class="caption-subject bold uppercase"> Investigation</span>
                                                    
                                                </div>
                                                <table class="table table-striped table-hover table-bordered">
                                                    <thead>
                                                        <tr>
                                                            <th style="width: 12%;">
                                                                Date
                                                            </th>
                                                            <th>
                                                                Investigation
                                                            </th>
                                                     
                                                        </tr>
                                                    </thead>
                                                    <tbody id="investigationBody">
                                                        {if $invest}
                                                        {foreach  $invest  as $diag}
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control  "  value="{$diag->date}" readonly/>
                                                            </td>
                                                            <td>
                                                                <textarea class="form-control " rows="2" readonly >{$diag->invest}</textarea>
                                                            </td>
                                                    
                                                        </tr>
                                                        {/foreach}
                                                        {/if}

                                                    </tbody>
                                                </table>


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


                                <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> All visits
                                                </div>

                                                <div class="actions">
                                                    <a href="javascript:;" class="btn btn-default btn-sm" id="showDrugs" data-mainId="{$followup->id}" data-archive="1" data-controller="followup"> TTT</a>
                                                </div>

                                            </div>
                                            <div class="portlet-body" id="justfordrugs" >

                                                <table class="table table-striped table-hover table-bordered" id="antenalvisit">
                                                    <thead>
                                                        <tr>
                                                            <th style="width: 11%;">
                                                                Date
                                                            </th>
                                                            <th style="width: 6%;">
                                                                Wt
                                                            </th>
                                                            <th style="width: 7%;">
                                                                Bp
                                                            </th>
                                                            <th style="width: 4%;">
                                                                GA
                                                            </th>
                                                            <th>
                                                                U/S
                                                            </th>
                                                            <th>
                                                                Notes
                                                            </th>

                                                        </tr>
                                                    </thead>
                                                    <tbody id="visitBody">
                                                        {foreach  $visits  as $diag}
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control  "  value="{$diag->date}" readonly/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " readonly value="{$diag->wt}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control bp_mask " readonly value="{$diag->bp}"/>
                                                            </td>
                                                            <td>
                                                                <label id="ga{$diag->id}">{$diag->ga}</label>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " readonly  value="{$diag->us}"/>
                                                            </td>
                                                            <td>
                                                                <textarea class="form-control " rows="1"  readonly >{$diag->notes}</textarea>
                                                            </td>
                                                        
                                                        </tr>

                                                        {/foreach}
                                                    </tbody>
                                                </table>

      



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

                        </div>

                        <input type="hidden" id="patientId" value="{$patientId}"/>
                        <input type="hidden" id="followId" value="{$followup->id}"/>
                        <input type="hidden" id="controllName" value="followup"/>
                        <!----#########################################################################  model ##############################################################################################################--->

                       
                        <!---------------------------------------------------------------------------show Drugs Model-------------------------------------------------------------------------------------->
                        <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showPatientDrugs" style="min-width:1000px;z-index: 10049;">
                            <div class="modal-dialog  modal-lg wds90">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                                        <h4 class="modal-title">  </h4>
                                    </div>
                                    <div class="modal-body">
                                        <div class="portlet-body form">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="portlet blue-hoki box">
                                                        <div class="portlet-title" >
                                                            <div class="caption"> Prescriptions </div>
                                                        </div>
                                                        <div class="portlet-body" id="showPrescriptions">

                                                            <table class="table table-striped table-hover table-bordered">
                                                                <thead>
                                                                    <tr>
                                                                        <th>
                                                                            Date
                                                                        </th>
                                                                        <th>
                                                                            Drug Name
                                                                        </th>

                                                                        <th>
                                                                            Edit
                                                                        </th>
                                                                        <th>
                                                                            Print
                                                                        </th>
                                                                        <th>
                                                                            {if $ProgramesettingData->displaydoctorname eq 1} Doctor{/if}
                                                                        </th>
                                                                    </tr>
                                                                </thead>

                                                            </table>

                                                        </div>
                                                        <div id="drugPrintShow">

                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="modal-footer">

                                                    <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

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







                        <!------------------##############################-------------------- End of Models -----------------------#########################################-------------->
                        <div id="newDrugTableDiv"></div>