
<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> Monitoring sheet
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/monitoring.php?ac=trials&patientid={$patientid}" class="btn btn-default btn-sm">
                                Previous ART trials
                            </a>
                        </div>

                    </div>
                    <div class="portlet-body">
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th class="col-md-2">
                                        Date
                                    </th>
                                    <td class="col-md-2">
                                        {$monitorSheet.monitordate}
                                    </td>
                                    <th class="col-md-2">
                                        LMP
                                    </th>
                                    <td  class="col-md-2">
                                        {$monitorSheet.lmp}
                                    </td>
                                    <th class="col-md-2">
                                        Attemp No.
                                    </th>
                                    <td class="col-md-2">
                                        {$monitorSheet.attempno}
                                    </td>

                                </tr>
                            </thead>

                        </table>

                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th rowspan="2">
                                        procedure
                                    </th>
                                    <th colspan="4">
                                        Sem. source
                                    </th>
                                </tr>
                                <tr>
                                    <th>
                                        Ejac
                                    </th>
                                    <th>
                                        PESA
                                    </th>
                                    <th>
                                        TESE
                                    </th>
                                    <th>
                                        Cryo
                                    </th>
                                </tr>
                                <tr>
                                    <td>{$monitorSheet.procedureName} </td>
                                    <td>{$monitorSheet.ejacName} </td>
                                    <td>{$monitorSheet.pesaName} </td>
                                    <td>{$monitorSheet.teseName} </td>
                                    <td>{$monitorSheet.sryoName} </td>

                                </tr>
                                <tr>
                                    <th>
                                        Protocol
                                    </th>
                                    <th colspan="2">
                                        HMG Name
                                    </th>
                                    <th colspan="2">
                                        Agonist / Antagonist
                                    </th>
                                </tr>
                                <tr>
                                    <td>{$monitorSheet.protocolName} </td>
                                    <td colspan="2">{$monitorSheet.hmgName} </td>
                                    <td colspan="2">{$monitorSheet.agonistName} </td>
                                </tr>
                            </thead>
                            <tbody>

                            </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">
                            <div class="btn-group">
                                <a class="btn btn-default btn-sm" href="javascript:;" id="showDrugs" 
                                   data-controller="monitoring" data-archive="1">  TTT  </a>
                            </div>
                        </div>

                        <div class="actions">
                            <div class="btn-group">
                                <a class="btn btn-default btn-sm" href="javascript:;"  id="showInv" 
                                   data-controller="monitoring" data-archive="1"> Lab </a>
                            </div>
                        </div>

                        <div class="actions">
                            <div class="btn-group">
                                <a class="btn btn-default btn-sm" href="javascript:;" id="showDrugs" 
                                   data-controller="monitoring" data-archive="1" data-old="1">  TTT  - Old </a>
                            </div>
                        </div>

                        <div class="actions">
                            <div class="btn-group">
                                <a class="btn btn-default btn-sm" href="javascript:;"  id="showInv" 
                                   data-controller="monitoring" data-archive="1" data-old="1"> Lab  - Old </a>
                            </div>
                        </div>
                    </div>

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

                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th rowspan="2">
                                        Date
                                    </th>
                                    <th rowspan="2">
                                        Cycle day
                                    </th>
                                    <th rowspan="2">
                                        HMG dos / day
                                    </th>
                                    <th rowspan="2">
                                        Endo
                                    </th>
                                    <th colspan="2">
                                        Folliculometry
                                    </th>
                                    <th rowspan="2">
                                        E2
                                    </th>
                                </tr>
                                <tr>
                                    <th>
                                        Rt.
                                    </th>
                                    <th>
                                        Lt.
                                    </th>
                                </tr>
                            </thead>
                            <tbody id="monitorAaddDiv">
                                {foreach $visits as $data}
                                <tr>
                                    <td>
                                        {$data->visitdate}
                                    </td>

                                    <td>
                                        {$data->cycleday}
                                    </td>
                                    <td>
                                        {$data->hmg}
                                    </td>
                                    <td>
                                        {$data->endo}
                                    </td>
                                    <td>
                                        {$data->follicright}
                                    </td>
                                    <td>
                                        {$data->follicleft}
                                    </td>
                                    <td>
                                        {$data->e2}
                                    </td>
                                </tr>

                                {/foreach}


                            </tbody>
                        </table>
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th class="col-md-2 wds5">
                                        Remarks
                                    </th>
                                    <td>
                                        {$monitorSheet.remarks}
                                    </td>
                                    <th class="col-md-2 wds5">
                                        HCG
                                    </th>
                                    <td>
                                        {$monitorSheet.hcgName}
                                    </td>

                                </tr>
                            </thead>

                        </table>




                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

<input type="hidden" id="patientId" value="{$patientid}"/>
<input type="hidden" id="monitorSheetId" value="{$monitorSheet.id}"/>
<input type="hidden" id="mainAntenatalId" value="{$monitorSheet.id}"/>
<input type="hidden" id="controllName" value="monitoring"/>
<!----#########################################################################  model ##############################################################################################################--->

<div class="all">

    <!--------------------------------------------------------------------------- show Investigation Model-------------------------------------------------------------------------------------->
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showPatientInvestigation" style="min-width:1000px;">
        <div class="modal-dialog  modal-lg wds80">
            <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"> Investigations  </div>
                                    </div>
                                    <div class="portlet-body all">
                                        <div  id="showInvs">
                                            <table class="table table-striped table-hover table-bordered">
                                                <thead>
                                                    <tr>
                                                        <th> <div align="center">Date </div></th>
                                                        <th colspan="3"> <div align="center">Investigations </div></th>
                                                    </tr>
                                                </thead>

                                            </table>
                                        </div>
                                        <div  id="inv_divShow">

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

    <!---------------------------------------------------------------------------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>

</div>