<style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;
        table-layout: fixed
    }

    td, th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" id="gprinModel">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">

                            <i class="fa fa-user"></i>Embryos Lab
                        </div>
                        <div class="actions">

                            {if isset($is_add)}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=savenow&&patientid={$patientId}" class="btn btn-default btn-sm pull-left" style="margin-right: 5px;">
                                save </a>
                            {/if}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show&&patientid={$patientId}" class="btn btn-default btn-sm">
                                Show </a>



                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="row_id" value="{$updatedate.id}"/>
                        <!---======================================================== tab1============================================================================================ ----->

                        <div class="row">
                            <div id="ultrasoundgynaDiv">

                                <div class="row">

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

                                                <div style="background: #b1efff;">
                                                    <div class="col-md-6">
                                                        <div class="form-group ">
                                                            <label class="col-md-4 control-label" for="form_control_1">Referred Dr :</label>
                                                            <div class="col-md-3">
                                                                <input type="text" class="form-control " required="required"  value="{if !empty($ref_dr['name'])}{$ref_dr['name']}{else}{$ref_dr}{/if}" name="ref_by_dr" readonly/>
                                                                <input type="hidden" class="form-control " value="{if !empty($ref_dr['user_id'])}{$ref_dr['user_id']}{else}0{/if}" name="ref_by_dr_id" id="ref_by_dr_id" data-colName="referred_dr_id" data-tableName="embryoslab" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group ">
                                                            <label class="col-md-4 control-label" for="form_control_1">Date :</label>
                                                            <div class="col-md-6">
                                                                <input type="text" id="date" class="form-control  datepicker updateEmbryoLab"  value='{if $updatedate.date eq "0000-00-00"}{$smarty.now|date_format:"%Y-%m-%d"}{else}{$updatedate.date}{/if}'  name="date" data-colName="date" data-tableName="embryoslab" />

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <hr>
                                                    <div class="col-md-12">
                                                        <label class="col-md-2 control-label" for="form_control_1">
                                                            Sperm Source
                                                        </label>
                                                        <div class="col-md-10">

                                                            <div class="col-md-12">
                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Ejaculate" name="sperm_source" class="md-radiobtn sradio updateEmbryoLab" value="0" data-colName="sperm_source" data-tableName="embryoslab" {if $updatedate.sperm_source eq 0 && $updatedate.sperm_source neq ""}checked{/if}>
                                                                            <label for="Ejaculate">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Ejaculate</label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Frozen" name="sperm_source" class="md-radiobtn sradio updateEmbryoLab" value="1" data-colName="sperm_source" data-tableName="embryoslab" {if $updatedate.sperm_source eq 1  && $updatedate.sperm_source neq ""}checked{/if}>
                                                                            <label for="Frozen">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Frozen ejaculate </label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Aspiration" name="sperm_source" class="md-radiobtn updateEmbryoLab" value="2" data-colName="sperm_source" data-tableName="embryoslab" {if $updatedate.sperm_source eq 2  && $updatedate.sperm_source neq ""}checked{/if}>
                                                                            <label for="Aspiration">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Testicular Aspiration</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            <div class="col-md-12">
                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="biopsy" name="sperm_source" class="md-radiobtn updateEmbryoLab" value="3" data-colName="sperm_source" data-tableName="embryoslab" {if $updatedate.sperm_source eq 3  && $updatedate.sperm_source neq ""}checked{/if}>
                                                                            <label for="biopsy">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Testicular biopsy</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Frozenbiopsy" name="sperm_source" class="md-radiobtn updateEmbryoLab" value="4" data-colName="sperm_source" data-tableName="embryoslab" {if $updatedate.sperm_source eq 4  && $updatedate.sperm_source neq ""}checked{/if}>
                                                                            <label for="Frozenbiopsy">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Frozen biopsy </label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>

                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-2 control-label" for="form_control_1">
                                                            Semen Parameters
                                                        </label>
                                                        <div class="col-md-8">
                                                            <div class="col-md-12">
                                                                <label class="col-md-4 control-label" for="form_control_1">
                                                                    Count:
                                                                </label>
                                                                <div class="col-md-4">
                                                                    <input type="text" name="count" class="form-control input-sm updateEmbryoLab" id="form_control_1" placeholder="" value="{$updatedate.semen_count}" data-colName="semen_count" data-tableName="embryoslab">
                                                                    <div class="form-control-focus">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-12">
                                                                <label class="col-md-4 control-label" for="form_control_1">
                                                                    Motility:
                                                                </label>
                                                                <div class="col-md-4">
                                                                    <input type="text" name="motility" class="form-control input-sm updateEmbryoLab" id="form_control_1" placeholder=""  value="{$updatedate.semen_motililty}" data-colName="semen_motililty" data-tableName="embryoslab">
                                                                    <div class="form-control-focus">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-12">
                                                                <label class="col-md-4 control-label" for="form_control_1">
                                                                    Morphology:
                                                                </label>
                                                                <div class="col-md-4">
                                                                    <input type="text" name="morphology" class="form-control input-sm updateEmbryoLab" id="form_control_1" placeholder="" value="{$updatedate.semen_morphology}" data-colName="semen_morphology" data-tableName="embryoslab">
                                                                    <div class="form-control-focus">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-2 control-label" for="form_control_1">
                                                            Semen Processing
                                                        </label>
                                                        <div class="col-md-10">

                                                            <div class="col-md-12">
                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Densitygradient" name="semen_processing" class="md-radiobtn updateEmbryoLab" value="0" data-colName="semen_processing" data-tableName="embryoslab" {if $updatedate.semen_processing eq 0 && $updatedate.semen_processing neq ""}checked{/if}>
                                                                            <label for="Densitygradient">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Density gradient</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-4">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="Spermwash" name="semen_processing" class="md-radiobtn updateEmbryoLab" value="1" data-colName="semen_processing" data-tableName="embryoslab" {if $updatedate.semen_processing eq 1 && $updatedate.semen_processing neq ""}checked{/if}>
                                                                            <label for="Spermwash">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                Sperm wash</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <label class="col-md-1 control-label" for="form_control_1">
                                                            Notes:
                                                        </label>
                                                        <div class="col-md-11">
                                                            <textarea class="form-control updateEmbryoLab" rows="2" id='notes' name='notes' placeholder="Enter more text" data-id="" data-colName="mine_notes" data-tableName="embryoslab">{$updatedate.mine_notes}</textarea>
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>

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

                                                </div>


                                                <hr>
                                                <div style="background: #efddff">


                                                    <div class="caption font-green-haze col-md-6">
                                                        <span class="caption-subject bold uppercase"> Oocyte retrieval</span>
                                                    </div>

                                                    <div class="clearfix"></div>
                                                    <div class="col-md-12">
                                                        <div class="col-md-4">
                                                            <div class="form-group ">
                                                                <label class="col-md-5 control-label" for="form_control_1">Clinician :</label>
                                                                <div class="col-md-6">
                                                                    <select class="form-control select2me updateEmbryoLab" name="retrieval_clinician_id" data-colName="clinician_id" data-tableName="embryoslab" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $clinician as $one}
                                                                        <option value="{$one.user_id}"{if $updatedate.clinician_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                                        {/foreach}

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

                                                        <div class="col-md-4">
                                                            <div class="form-group ">
                                                                <label class="col-md-5 control-label" for="form_control_1">Embryologist :</label>
                                                                <div class="col-md-6">
                                                                    <select class="form-control select2me updateEmbryoLab" name="retrieval_embryologist_id" data-colName="embryologist_id" data-tableName="embryoslab" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $embryologist as $one}
                                                                        <option value="{$one.user_id}"{if $updatedate.embryologist_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                                        {/foreach}

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

                                                        </div>
                                                        <div class="col-md-4">
                                                            <div class="form-group ">
                                                                <label class="col-md-5 control-label" for="form_control_1">
                                                                    Duration :
                                                                </label>
                                                                <div class="col-md-6">
                                                                    <input type="text" name="duration1" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.duration}" data-colName="duration" data-tableName="embryoslab">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <div class="col-md-4">
                                                            <div class="form-group form-md-line-input">
                                                                <label class="col-md-5 control-label" for="form_control_1">
                                                                    No. of oocyte collected :
                                                                </label>
                                                                <div class="col-md-6">
                                                                    <input type="text" name="no_oocyte" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.no_oocyte}" data-colName="no_oocyte" data-tableName="embryoslab">

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

                                                        <div class="col-md-4">
                                                            <div class="form-group form-md-line-input">
                                                                <label class="col-md-5 control-label" for="form_control_1">
                                                                    Follicular fluid volume :
                                                                </label>
                                                                <div class="col-md-6">
                                                                    <input type="text" name="follicular_volume" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.follicular_volume}" data-colName="follicular_volume" data-tableName="embryoslab">

                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-4">
                                                            <div class="form-group form-md-line-input">
                                                                <label class="col-md-5 control-label" for="form_control_1">
                                                                    Blood content :
                                                                </label>
                                                                <div class="col-md-6">
                                                                    <div class="col-md-4">
                                                                        <div class="md-radio-list">
                                                                            <div class="md-radio">
                                                                                <input type="radio" id="content1" name="blood_content" class="md-radiobtn updateEmbryoLab" value="0" data-colName="blood_content" data-tableName="embryoslab" {if $updatedate.blood_content eq 0  && $updatedate.blood_content neq ""}checked{/if}>
                                                                                <label for="content1">
                                                                                    <span></span>
                                                                                    <span class="check"></span>
                                                                                    <span class="box"></span>
                                                                                    +</label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-4">
                                                                        <div class="md-radio-list">
                                                                            <div class="md-radio">
                                                                                <input type="radio" id="content2" name="blood_content" class="md-radiobtn updateEmbryoLab" value="1" data-colName="blood_content" data-tableName="embryoslab" {if $updatedate.blood_content eq 1  && $updatedate.blood_content neq ""}checked{/if}>
                                                                                <label for="content2">
                                                                                    <span></span>
                                                                                    <span class="check"></span>
                                                                                    <span class="box"></span>
                                                                                    ++</label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-4">
                                                                        <div class="md-radio-list">
                                                                            <div class="md-radio">
                                                                                <input type="radio" id="content3" name="blood_content" class="md-radiobtn updateEmbryoLab" value="2" data-colName="blood_content" data-tableName="embryoslab" {if $updatedate.blood_content eq 2 && $updatedate.blood_content neq ""}checked{/if}>
                                                                                <label for="content3">
                                                                                    <span></span>
                                                                                    <span class="check"></span>
                                                                                    <span class="box"></span>
                                                                                    +++</label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="clearfix"></div>
                                                    <hr>
                                                    <div class="col-md-12">
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Oocyte maturity</span>
                                                        </div>
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Oocyte Quality</span>
                                                        </div>
                                                        <div class="clearfix"></div>
                                                        <div class="col-md-12">

                                                            <div class=" col-md-6">
                                                                <table>
                                                                    <thead>
                                                                        <tr>
                                                                            <th>
                                                                                MII
                                                                            </th>
                                                                            <th>
                                                                                MI
                                                                            </th>
                                                                            <th>
                                                                                G.V
                                                                            </th>
                                                                            <th>
                                                                                Atretic
                                                                            </th>
                                                                            <th>
                                                                                Other
                                                                            </th>


                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="mii" value="{$updatedate.mii}" data-colName="mii" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="mi" value="{$updatedate.mi}" data-colName="mi" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="gv" value="{$updatedate.gv}" data-colName="gv" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="atretic" value="{$updatedate.atretic}" data-colName="atretic" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="other1" value="{$updatedate.other1}" data-colName="other1" data-tableName="embryoslab"/>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                            <div class=" col-md-6">
                                                                <table>
                                                                    <thead>
                                                                        <tr>
                                                                            <th>
                                                                                Quality
                                                                            </th>
                                                                            <th>
                                                                                Zona
                                                                            </th>
                                                                            <th>
                                                                                Cytoplasm
                                                                            </th>
                                                                            <th>
                                                                                P.V.S
                                                                            </th>
                                                                            <th>
                                                                                Other
                                                                            </th>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <select id="t1" class="form-control selectTable updateEmbryoLab" select-tableName="oocytequality" data-colName="quality" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $oocytequality as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.quality eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t2" class="form-control selectTable updateEmbryoLab"  select-tableName="oocytezona" data-colName="zona" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $oocytezona as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.zona eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t3" class="form-control selectTable updateEmbryoLab"  select-tableName="oocytecytoplasm" data-colName="cytoplasm" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $oocytecytoplasm as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.cytoplasm eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t4" class="form-control selectTable updateEmbryoLab" select-tableName="oocytepvs" data-colName="pvs" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $oocytepvs as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.pvs eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t5" class="form-control selectTable updateEmbryoLab"  select-tableName="oocyteother" data-colName="other2" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $oocyteother as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.other2 eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>

                                                        <div class="clearfix"></div>
                                                        <hr>
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Fertilization assessments</span>
                                                        </div>
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Growth </span>
                                                        </div>

                                                        <div class="clearfix"></div>
                                                        <div class="col-md-12">
                                                            <div class="col-md-6">
                                                                <table>
                                                                    <thead>
                                                                        <tr>
                                                                            <th>
                                                                                Fertilized
                                                                            </th>
                                                                            <th>
                                                                                unfertilized
                                                                            </th>
                                                                            <th>
                                                                                Degenerated
                                                                            </th>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="fertilized" value="{$updatedate.fertilized}" data-colName="fertilized" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="unfertilized" value="{$updatedate.unfertilized}"  data-colName="unfertilized" data-tableName="embryoslab"/>
                                                                            </td>
                                                                            <td>
                                                                                <input type="text" class="form-control updateEmbryoLab" name="degenerated" value="{$updatedate.degenerated}"  data-colName="degenerated" data-tableName="embryoslab"/>
                                                                            </td>

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

                                                            <div class="col-md-6">
                                                                <table>
                                                                    <thead>
                                                                        <tr>
                                                                            <th>
                                                                                Media
                                                                            </th>
                                                                            <th>
                                                                                Oil
                                                                            </th>
                                                                            <th>
                                                                                Incubator
                                                                            </th>
                                                                            <th>
                                                                                CO2
                                                                            </th>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <select id="t6" class="form-control selectTable updateEmbryoLab"  select-tableName="growthmedia" data-colName="media" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $growthmedia as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.media eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t7" class="form-control selectTable updateEmbryoLab"  select-tableName="growthoil" data-colName="oil" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $growthoil as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.oil eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t8" class="form-control selectTable updateEmbryoLab"  select-tableName="growthincubator" data-colName="incubator" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $growthincubator as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.incubator eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="t9" class="form-control selectTable updateEmbryoLab"  select-tableName="growthco2" data-colName="co2" data-tableName="embryoslab">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $growthco2 as $one}
                                                                                    <option value="{$one->id}"{if $updatedate.co2 eq $one->id}selected{/if}>{$one->name}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>

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

                                                <div style="background-color: #add0ff;">



                                                    <div class="col-md-12" >

                                                        <div class="col-md-4">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="scoring" name="radio_type" class="md-radiobtn updateEmbryoLab" value="0" data-colName="radiotype" data-tableName="embryoslab" {if $updatedate.radiotype eq 0 && $updatedate.radiotype neq ""}checked{/if}>
                                                                    <label for="scoring">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Embryo Scoring and Grading</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-4">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="transfer" name="radio_type" class="md-radiobtn updateEmbryoLab" value="1" data-colName="radiotype" data-tableName="embryoslab" {if $updatedate.radiotype eq 1 && $updatedate.radiotype neq ""}checked{/if}>
                                                                    <label for="transfer">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Embryo Transfer</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-4">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="freezing" name="radio_type" class="md-radiobtn updateEmbryoLab" value="2" data-colName="radiotype" data-tableName="embryoslab" {if $updatedate.radiotype eq 2 && $updatedate.radiotype neq ""}checked{/if}>
                                                                    <label for="freezing">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Embryo Freezing</label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <div style="display:none" id="scoringDiv">
                                                        <hr>
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Embryo scoring and grading</span>
                                                        </div>
                                                        <div class="caption font-green-haze col-md-5">

                                                            <label class="col-md-4 control-label">ICSI done by :</label>
                                                            <div class="col-md-6">
                                                                <select class="form-control select2me updateEmbryoLab" name="icsi_id" data-colName="icsi_by" data-tableName="embryoslab">
                                                                    <option value="">choose</option>
                                                                    {foreach  $embryologist as $one}
                                                                    <option value="{$one.user_id}"{if $updatedate.icsi_by eq $one.user_id}selected{/if}>{$one.name}</option>
                                                                    {/foreach}

                                                                </select>
                                                            </div>
                                                        </div>
                                                        <div class="actions col-md-1" style="float:right">
                                                            <a href="javascript:;" class="btn btn-default btn-sm " data-tableName="embryoscoring" id="addnewRowscoring">
                                                                Add New</a>
                                                        </div>
                                                        <div class="col-md-12">
                                                            <table id="scoringTable">
                                                                <thead>

                                                                    <tr>
                                                                        <th rowspan="2">
                                                                            NO
                                                                        </th>
                                                                        <th  colspan="2">
                                                                            Day1
                                                                        </th>
                                                                        <th  colspan="2">
                                                                            Day2
                                                                        </th>
                                                                        <th  colspan="2">
                                                                            Day3
                                                                        </th>

                                                                        <th  colspan="2">
                                                                            Day4
                                                                        </th>
                                                                        <th  colspan="2">
                                                                            Day5
                                                                        </th>
                                                                        <th  colspan="2">
                                                                            Day6
                                                                        </th>

                                                                        <th rowspan="2">
                                                                            Delete
                                                                        </th>
                                                                    </tr>
                                                                    <tr>
                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>
                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>

                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>
                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>
                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>
                                                                        <th >
                                                                            stage
                                                                        </th>
                                                                        <th >
                                                                            grade
                                                                        </th>

                                                                    </tr>

                                                                </thead>
                                                                <tbody id="scoringTable">
                                                                    {assign var=myItra value=1}
                                                                    {foreach $scoring as $one_scoring}
                                                                    <tr>
                                                                        <!--<input type="hidden" value="{$one_scoring->id}" id="newrow_id"/>-->

                                                                        <td value="" id="row_num">
                                                                            {$myItra}
                                                                        </td>

                                                                        <td>
                                                                            <select id="s1" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage1" select-tableName="stage" data-colName="stage1">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>

                                                                        <td>

                                                                            <select id="g1" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade1" select-tableName="grade" data-colName="grade1">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>

                                                                        </td>
                                                                        <td>

                                                                            <select id="s2" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage2" select-tableName="stage" data-colName="stage2">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="g2" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade2" select-tableName="grade" data-colName="grade2">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade2 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>

                                                                        </td>
                                                                        <td>
                                                                            <select id="s3" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage3" select-tableName="stage" data-colName="stage3">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select  id="g3" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade3" select-tableName="grade" data-colName="grade3">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="s4" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage4" select-tableName="stage" data-colName="stage4">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage4 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select  id="g4" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade4" select-tableName="grade" data-colName="grade4">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade4 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="s5" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage5" select-tableName="stage" data-colName="stage5">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage5 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="g5" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade5" select-tableName="grade" data-colName="grade5">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade5 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="s6" class="form-control selectStage update_item" data-rowid="{$one_scoring->id}" name="stage6" select-tableName="stage" data-colName="stage6">
                                                                                <option value="">choose</option>
                                                                                {foreach  $stages as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->stage6 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <select id="g6" class="form-control selectGrade update_item" data-rowid="{$one_scoring->id}" name="grade6" select-tableName="grade" data-colName="grade6">
                                                                                <option value="">choose</option>
                                                                                {foreach  $grades as $one}
                                                                                <option value="{$one->id}"{if $one_scoring->grade6 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>
                                                                        </td>



                                                                        <td>
                                                                            <a id="delFromTable" class="btn grey-cascade btn-xs delFromTable" data-rowid="{$one_scoring->id}" style=" float: left;"  data-fn="del">
                                                                                <i class="fa fa-close"></i>
                                                                            </a>
                                                                        </td>
                                                                    </tr>
                                                                    {capture assign=myItra}{$myItra+1}{/capture}
                                                                    {/foreach}
                                                                <input type="hidden" name="myItra" id="myItra" value="{$count_scoring}"/>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="clearfix"></div>

                                                    <div style="display:none" id="transferDiv">
                                                        <hr>
                                                        <div class="col-md-12" >
                                                            <div class="caption font-green-haze col-md-4">
                                                                <span class="caption-subject bold "> Embryo Transfer</span>
                                                            </div>
                                                            <div class="caption font-green-haze col-md-4">
                                                                <label class="col-md-4 control-label">Clinician :</label>
                                                                <div class="col-md-6">
                                                                    <select class="form-control select2me updateTransferTable" name="transfer_clinician_id" data-colName="clinician_id" data-tableName="embryotransfer"  data-id="{$one.user_id}" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $clinician as $one}
                                                                        <option value="{$one.user_id}"{if $transfer->clinician_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                                        {/foreach}

                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <div class="caption font-green-haze col-md-4">
                                                                <label class="col-md-4 control-label">Embryologist :</label>
                                                                <div class="col-md-6">
                                                                    <select class="form-control select2me updateTransferTable" name="transfer_embryologist_id" data-colName="embryologist_id" data-tableName="embryotransfer"  data-id="{$one.user_id}" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $embryologist as $one}
                                                                        <option value="{$one.user_id}"{if $transfer->embryologist_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                                        {/foreach}

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


                                                            <div class="col-md-4">
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label" for="form_control_1">Day:</label>
                                                                    <div class="col-md-4">
                                                                        <select class="form-control select2me updateTransferTable"  required="required" id="et_day"  data-placeholder="Select..." name="transfer_day_id" data-colName="et_day" data-tableName="embryotransfer"  data-id="{$one.et_day}">
                                                                            {foreach  $et_day_array as $one}
                                                                            <option value="{$one}"{if $transfer->et_day eq $one}selected{/if}>{$one}</option>
                                                                            {/foreach}

                                                                        </select>
                                                                        <div class="form-control-focus">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-4">
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label" for="form_control_1">Date:</label>
                                                                    <div class="col-md-8">
                                                                        <input type="text" class="form-control  datepicker updateTransferTable"  value="{$transfer.date_transer_embryo}" name="date_transer_embryo" data-colName="date_transer_embryo" data-tableName="embryotransfer"  data-id="{$one.date_transer_embryo}"/>
                                                                    </div>
                                                                </div>
                                                            </div>




                                                            <div class="clearfix"></div>
                                                            <div class="col-md-12">


                                                                <table>
                                                                    <thead>
                                                                        <tr>
                                                                            <th>
                                                                                No of embryos
                                                                            </th>
                                                                            <th>
                                                                                1
                                                                            </th>
                                                                            <th>
                                                                                2
                                                                            </th>
                                                                            <th>
                                                                                3
                                                                            </th>
                                                                            <th>
                                                                                4
                                                                            </th>


                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td >
                                                                                <span style="font-weight: bold;" >  Stage</span>
                                                                            </td>

                                                                            <td>
                                                                                <select id="s7" class="form-control selectStage updateTransferTable" name="stage1" select-tableName="stage" data-colName="stage1" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $stages as $one}
                                                                                    <option value="{$one->id}"{if $transfer->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="s8" class="form-control selectStage updateTransferTable"name="stage2"  select-tableName="stage" data-colName="stage2" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $stages as $one}
                                                                                    <option value="{$one->id}"{if $transfer->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="s9" class="form-control selectStage updateTransferTable" name="stage3" select-tableName="stage" data-colName="stage3" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $stages as $one}
                                                                                    <option value="{$one->id}"{if $transfer->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="s10" class="form-control selectStage updateTransferTable"  name="stage4" select-tableName="stage" data-colName="stage4" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $stages as $one}
                                                                                    <option value="{$one->id}"{if $transfer->stage4 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <span style="font-weight: bold;" > Grade </span>
                                                                            </td>

                                                                            <td>
                                                                                <select id="g7" class="form-control selectGrade updateTransferTable"  name="grade1" select-tableName="grade" data-colName="grade1" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $grades as $one}
                                                                                    <option value="{$one->id}"{if $transfer->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="g8" class="form-control selectGrade updateTransferTable"  name="grade2" select-tableName="grade" data-colName="grade2" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $grades as $one}
                                                                                    <option value="{$one->id}"{if $transfer->grade2 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="g9" class="form-control selectGrade updateTransferTable"  name="grade3" select-tableName="grade" data-colName="grade3" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $grades as $one}
                                                                                    <option value="{$one->id}"{if $transfer->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                            <td>
                                                                                <select id="g10" class="form-control selectGrade updateTransferTable"  name="grade4" select-tableName="grade" data-colName="grade4" data-tableName="embryotransfer">
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $grades as $one}
                                                                                    <option value="{$one->id}"{if $transfer->grade4 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                                    {/foreach}

                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>                                                                        </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>

                                                            </div>
                                                        </div>
                                                        <div class="clearfix"></div>
                                                        <hr>
                                                        <div class="caption font-green-haze col-md-4">
                                                            <span class="caption-subject bold "> Embryo Transfer Characterization</span>
                                                        </div>
                                                        <div class="col-md-12">

                                                            <table>
                                                                <thead>
                                                                    <tr>
                                                                        <th>
                                                                            Catheter Type
                                                                        </th>
                                                                        <th>
                                                                            Difficulty
                                                                        </th>
                                                                        <th>
                                                                            Blood
                                                                        </th>
                                                                        <th>
                                                                            Duration
                                                                        </th>
                                                                        <th>
                                                                            Jet Place
                                                                        </th>
                                                                        <th>
                                                                            L.A.H
                                                                        </th>
                                                                        <th>
                                                                            Type
                                                                        </th>
                                                                        <th>
                                                                            Day
                                                                        </th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <tr>
                                                                        <td>
                                                                            <select id="t10" class="form-control selectTable updateTransferTable" select-tableName="embryocathetertype" data-colName="catheter_type" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryocathetertype as $one}
                                                                                <option value="{$one->id}"{if $transfer->catheter_type eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <select id="t11" class="form-control selectTable updateTransferTable" select-tableName="embryodifficulty" data-colName="difficulty" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryodifficulty as $one}
                                                                                <option value="{$one->id}"{if $transfer->difficulty eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <select id="t12" class="form-control selectTable updateTransferTable" select-tableName="embryoblood" data-colName="blood" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryoblood as $one}
                                                                                <option value="{$one->id}"{if $transfer->blood eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateTransferTable"  data-colName="duration" data-tableName="embryotransfer" value="{$transfer->duration}"/>
                                                                        </td>
                                                                        <td>
                                                                            <select id="t13" class="form-control selectTable updateTransferTable" select-tableName="embryojetplace" data-colName="jet_place" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryojetplace as $one}
                                                                                <option value="{$one->id}"{if $transfer->jet_place eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <select id="t14" class="form-control selectTable updateTransferTable" select-tableName="embryolah" data-colName="lah" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryolah as $one}
                                                                                <option value="{$one->id}"{if $transfer->lah eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <select id="t15" class="form-control selectTable updateTransferTable" select-tableName="embryotype" data-colName="type" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $embryotype as $one}
                                                                                <option value="{$one->id}"{if $transfer->type eq $one->id}selected{/if}>{$one->name}</option>
                                                                                {/foreach}

                                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                                            </select>                                                                    </td>
                                                                        <td>
                                                                            <select id="" class="form-control updateTransferTable"  data-colName="day" data-tableName="embryotransfer">
                                                                                <option value="">choose</option>
                                                                                {foreach  $day_array as $one}
                                                                                <option value="{$one}"{if $transfer->day eq $one}selected{/if}>{$one}</option>
                                                                                {/foreach}


                                                                            </select>                                                                    </td>

                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <div style="display:none" id="freezingDiv">
                                                        <hr>
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold ">Embryo Freezing</span>
                                                        </div>
                                                        <div class="col-md-12">
                                                            <div class="caption font-green-haze col-md-4">

                                                                <div class="form-group form-md-line-input">
                                                                    <label class="col-md-5 control-label" for="form_control_1">
                                                                        No Of Straws :
                                                                    </label>
                                                                    <div class="col-md-6">
                                                                        <input type="text" name="no_straws" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.no_straws}" data-colName="no_straws" data-tableName="embryoslab">

                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="caption font-green-haze col-md-4">

                                                                <div class="form-group form-md-line-input">
                                                                    <label class="col-md-5 control-label" for="form_control_1">
                                                                        No Of Embryos :
                                                                    </label>
                                                                    <div class="col-md-6">
                                                                        <input type="text" name="no_embryos" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.no_embryos}" data-colName="no_embryos" data-tableName="embryoslab">

                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="caption font-green-haze col-md-4">

                                                                <div class="form-group form-md-line-input">
                                                                    <label class="col-md-5 control-label" for="form_control_1">
                                                                        Location :
                                                                    </label>
                                                                    <div class="col-md-6">
                                                                        <!--                                                                        <input type="text" name="location" class="form-control input-sm updateEmbryoLab bp_location" id="form_control_1"  value="{$updatedate.location}" data-colName="location" data-tableName="embryoslab">-->
                                                                        {foreach $tank_cells as $cell}
                                                                        <label id="location_value_for_patient" style="display: block;">{$cell.name}-{$cell.up_level_name}-{$cell.cell_name}</label>
                                                                        {/foreach}
                                                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addTankLocation">
                                                                            Add location in tank
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>


                                                        <div class="col-md-12">
                                                            <label class="col-md-3 control-label" for="form_control_1">
                                                                Day of Freezing:
                                                            </label>
                                                            <div class="col-md-8">
                                                                <div class="col-md-2">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio"  id="2d" name="days" class="md-radiobtn sradio updateEmbryoLab" data-val="1" value="1" data-colName="dayoffreezzing" data-tableName="embryoslab" {if $updatedate.dayoffreezzing eq 1 && $updatedate.dayoffreezzing neq ""}checked{/if}>
                                                                            <label for="2d">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                2nd day</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio"  id="3d" name="days" class="md-radiobtn sradio updateEmbryoLab" data-val="2" value="2" data-colName="dayoffreezzing" data-tableName="embryoslab" {if $updatedate.dayoffreezzing eq 2 && $updatedate.dayoffreezzing neq ""}checked{/if}>
                                                                            <label for="3d">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                3rd day</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio"  id="4d" name="days" class="md-radiobtn sradio updateEmbryoLab" data-val="3" value="3" data-colName="dayoffreezzing" data-tableName="embryoslab" {if $updatedate.dayoffreezzing eq 3 && $updatedate.dayoffreezzing neq ""}checked{/if}>
                                                                            <label for="4d">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                4nd day</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="5d" name="days" class="md-radiobtn sradio updateEmbryoLab" data-val="4" value="4" data-colName="dayoffreezzing" data-tableName="embryoslab" {if $updatedate.dayoffreezzing eq 4 && $updatedate.dayoffreezzing neq ""}checked{/if}>
                                                                            <label for="5d">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                5nd day</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2">
                                                                    <div class="md-radio-list">
                                                                        <div class="md-radio">
                                                                            <input type="radio" id="6d" name="days" class="md-radiobtn sradio updateEmbryoLab" data-val="5" value="5" data-colName="dayoffreezzing" data-tableName="embryoslab" {if $updatedate.dayoffreezzing eq 5 && $updatedate.dayoffreezzing neq ""}checked{/if}>
                                                                            <label for="6d">
                                                                                <span></span>
                                                                                <span class="check"></span>
                                                                                <span class="box"></span>
                                                                                6nd day</label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>


                                                        <div class="actions" style="float:right">
                                                            <a href="javascript:;" class="btn btn-default btn-sm " data-tableName="embryofreezing" id="addnewRowfreezing">
                                                                Add New</a>
                                                        </div>
                                                        <div class="clearfix"></div>
                                                        <br>
                                                        <table>
                                                            <thead>

                                                                <tr>
                                                                    <th  rowspan="2" class="wds6">
                                                                        Straw#
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        1
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        2
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        3
                                                                    </th>

                                                                    <th  colspan="2">
                                                                        4
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        5
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        6
                                                                    </th>
                                                                    <th  colspan="2">
                                                                        7
                                                                    </th>

                                                                    <th rowspan="2" class="wds4"  >

                                                                    </th>
                                                                </tr>
                                                                <tr>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>

                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                    <th >
                                                                        stage
                                                                    </th>
                                                                    <th >
                                                                        grade
                                                                    </th>
                                                                </tr>

                                                            </thead>
                                                            <tbody id="freezingTable">
                                                                {assign var=itr value=1}
                                                                {foreach $embryofreezing as $one_freezing}
                                                                <tr>
                                                                    <td>
                                                                        Straw#{$itr}
                                                                    </td>
                                                                    <td>
                                                                        <select id="s11" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage1" select-tableName="stage" data-colName="stage1">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g11" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade1" select-tableName="grade" data-colName="grade1">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s12" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage2" select-tableName="stage" data-colName="stage2">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g12" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade2" select-tableName="grade" data-colName="grade2">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade2 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s13" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage3" select-tableName="stage" data-colName="stage3">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g13" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade3" select-tableName="grade" data-colName="grade3">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s14" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage4" select-tableName="stage" data-colName="stage4">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage4 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g14" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade4" select-tableName="grade" data-colName="grade4">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade4 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s15" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage5" select-tableName="stage" data-colName="stage5">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage5 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g15" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade5" select-tableName="grade" data-colName="grade5">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade5 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s16" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage6" select-tableName="stage" data-colName="stage6">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage6 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g16" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade6" select-tableName="grade" data-colName="grade6">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade6 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="s17" class="form-control selectStage update_item2" data-rowid="{$one_freezing->id}" name="stage7" select-tableName="stage" data-colName="stage7">
                                                                            <option value="">choose</option>
                                                                            {foreach  $stages as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->stage7 eq $one->id}selected{/if}>{$one->stage}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
                                                                        <select id="g17" class="form-control selectGrade update_item2" data-rowid="{$one_freezing->id}" name="grade7" select-tableName="grade" data-colName="grade7">
                                                                            <option value="">choose</option>
                                                                            {foreach  $grades as $one}
                                                                            <option value="{$one->id}"{if $one_freezing->grade7 eq $one->id}selected{/if}>{$one->grade}</option>
                                                                            {/foreach}

                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                        </select>
                                                                    </td>
                                                                    <td rowspan="2">
                                                                        <a class="btn grey-cascade btn-xs delFromTableFreezing" data-rowid="{$one_freezing->id}" style=" float: left;">
                                                                            <i class="fa fa-close"></i>
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                                <tr >
                                                                    <td colspan="15">
                                                                        <textarea class="form-control update_item2" data-rowid="{$one_freezing->id}" rows="2"  name='straw_notes' placeholder="Enter more text"
                                                                                  data-id="{$one_freezing->id}" data-colName="straw_notes" data-tableName="embryofreezing">{$one_freezing->straw_notes}</textarea>
                                                                        <div class="form-control-focus">
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                {capture assign=itr}{$itr+1}{/capture}
                                                                {/foreach}
                                                            <input type="hidden" name="Itr" id="Itr" value="{$count_embryofreezing}"/>

                                                            </tbody>
                                                        </table>



                                                        <div class="col-md-12">
                                                            <div class="portlet box blue">
                                                                <div class="portlet-title" style="height: 5px">
                                                                    <div class="caption">
                                                                        <i class="fa fa-edit"></i>Embryo Thawing
                                                                    </div>
                                                                </div>
                                                                <div class="portlet-body"  >
                                                                    <div class="table-toolbar">
                                                                        <div class="row">
                                                                            <div class="col-md-6">
                                                                                <div class="btn-group">
                                                                                    <a href="javascript:;" class="btn btn green btn-sm" id="addNewthawingRow" data-tableName="embryothawing">
                                                                                        <i class="fa fa-plus"></i> Add New</a>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-6">
                                                                            </div>
                                                                        </div>
                                                                    </div>

                                                                    <input type="hidden" id="storesController" value="1">
                                                                    <table class="table table-striped table-hover table-bordered" >
                                                                        <thead>
                                                                            <tr>
                                                                                <th class="col-md-1">
                                                                                    Straw
                                                                                </th >
                                                                                <th class="col-md-1">
                                                                                    No Of Embryos
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Thawing Date
                                                                                </th>

                                                                                <th class="col-md-1">
                                                                                    Recovered
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Lost
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    E.T Date
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Embryos
                                                                                </th>

                                                                                <th class="col-md-1">
                                                                                    Grades
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Embryol oigist
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Clinician
                                                                                </th>
                                                                                <th class="col-md-1">
                                                                                    Cathetr
                                                                                </th>
                                                                                <th >
                                                                                    Delete
                                                                                </th>
                                                                            </tr>

                                                                        </thead>
                                                                        <tbody id="thawingContent">
                                                                            {assign var=itr value=1}
                                                                            {foreach $embryothawing as $pre}
                                                                            <tr>

                                                                                <td>
                                                                                    {$itr}
                                                                                    <input type="hidden" name="safyinput1_{$itr}" id="safyinput1_{$itr}" value="{$itr}"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control updateEmbryoLab_thawing" value="{$pre.no_of_embryos}" id="no_of_embryos_{$itr}_1"  data-itra="{$itr}_1" name="no_of_embryos_{$itr}_1" data-colName="no_of_embryos" data-tableName="embryothawing" data-tableRow="{$pre.id}"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control datepicker updateEmbryoLab_thawing" data-colName="thawing_date" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.thawing_date}" id="thawing_date_{$itr}_2"  data-itra="{$itr}_2" name="thawing_date_{$itr}_2"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="recovered" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.recovered}" id="recovered_{$itr}_3"  data-itra="{$itr}_3" name="recovered_{$itr}_3"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="lost" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.lost}" id="lost_{$itr}_4"  data-itra="{$itr}_4" name="lost_{$itr}_4"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control datepicker updateEmbryoLab_thawing" data-colName="e_t_date" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.e_t_date}" id="et_date_{$itr}_5"  data-itra="{$itr}_5" name="et_date_{$itr}_5"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="embryos" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.embryos}" id="embryos_{$itr}_6"  data-itra="{$itr}_6" name="embryos_{$itr}_6"/>
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="grades" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.grades}" id="grades_{$itr}_7"  data-itra="{$itr}_7" name="grades_{$itr}_7"/>
                                                                                </td>
                                                                                <td>
                                                                                    <div class="col-md-12">
                                                                                        <select class="form-control  select2me updateEmbryoLab_thawing" id="embryol_{$itr}_8" name="embryol_{$itr}_8" data-itr="{$itr}_8" data-id="{$pre.id}" data-colName="embryol_oigist" data-tableName="embryothawing" data-tableRow="{$pre.id}"  data-placeholder="Select..."  >
                                                                                            <option value="">choose</option>
                                                                                            {foreach  $embryologist as $one}
                                                                                            <option value="{$one.user_id}"  {if $pre.embryol_oigist == $one.user_id}selected{/if}>{$one.name}</option>
                                                                                            {/foreach}
                                                                                        </select>
                                                                                    </div>                                                                    </td>
                                                                                <td>
                                                                                    <div class="col-md-12">
                                                                                        <select class="form-control  select2me updateEmbryoLab_thawing" id="clinician_{$itr}_9" name="clinician_{$itr}_9" data-itr="{$itr}_9" data-id="{$pre->id}"  data-colName="clinician" data-tableName="embryothawing" data-tableRow="{$pre.id}"  data-placeholder="Select...">
                                                                                            <option value="">choose</option>
                                                                                            {foreach  $clinician as $one}
                                                                                            <option value="{$one.user_id}"  {if $pre.clinician == $one.user_id}selected{/if}>{$one.name}</option>
                                                                                            {/foreach}
                                                                                        </select>
                                                                                    </div>
                                                                                </td>
                                                                                <td>
                                                                                    <div class="col-md-12">
                                                                                        <select class="form-control xx dname select2me cathetrselect allupdateselect cathetr updateEmbryoLab_thawing" data-itra="{$itr}_10" id="cathetr_{$itr}_10" name="cathetr_{$itr}_10" data-id="{$pre->id}" data-colName="cathetr" data-tableName="embryothawing" data-tableRow="{$pre.id}" select-tableName="cathetr"  data-placeholder="Select...">
                                                                                            <option value="">choose</option>
                                                                                            {foreach  $cathetrs as $one}
                                                                                            <option value="{$one.id}" {if $pre.cathetr == $one.id}selected{/if}>{$one.cathetr}</option>
                                                                                            {/foreach}

                                                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                        </select>
                                                                                    </div>
                                                                                </td>
                                                                                <td>
                                                                                    <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$pre.id}" style=" float: left;" href="#" data-link="embryofreezing" data-fn="delRowsommedel" data-tableName="embryothawing">
                                                                                        <i class="fa fa-close"></i>
                                                                                    </a>

                                                                                </td>
                                                                            </tr>

                                                                            {capture assign=itr}{$itr+1}{/capture}
                                                                            {/foreach}

                                                                        <input id="thawitr" value="{$itr-1}" type="hidden">

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

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

                                                    </div>
                                                </div>

                                                <!--                                            <div class="row">
                                                                                                <div class="col-md-offset-2 col-md-10 hidPrint">
                                                                                                    <button type="button" id="doneBtn" class="btn blue" data-id="{$updatedate->id}">Save</button>
                                                                                                    <button type="button" class="btn showPrint" data-detailid="{$updatedate->id}" style=" margin: 20px auto; float: none; ">Print</button>
                                                                                                </div>
                                                                                                <br>
                                                                                            </div>-->
                                            </div>
                                        </form>
                                    </div>

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

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

            <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title"> Edit </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form">
                                <form action="" method="post" class="form-horizontal emptyform">
                                    <div class="form-body">
                                        <!------===========================================------->
                                        <div>
                                            <div id="alldatadiv" class=""> </div>
                                        </div>

                                        <!------===========================================------->
                                        <!--                            <div class="form-group">
                                                                        <label class="col-md-3 control-label"> Name</label>
                                                                        <div class="col-md-8">
                                                                            <input type="hidden" class="form-control"  id="newitem_id" name="newamount_id" >
                                                                            <input type="text" class="form-control"  id="newitem_name" name="newamount_name" style="text-align:left;" >
                                                                            <div id="divsucess1" style="color:red; display:none;"></div>
                                                                        </div>
                                                                    </div>-->
                                        <!------===========================================------->
                                        <div class="modal-footer">
                                            <!--                                <button type="button" class="btn green" id="editmodel_submit"> Update </button>-->
                                            <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<div class="clearfix"></div>
<div id="vvv"></div>
<input type="hidden" id="embryoslab" value="{$embryoslab_id}">


<script>


    $(".amrpop,input[type='text']:not(.datepicker),textarea").hover(function () {
        var pop_value = $(this).val();
        $(this).attr({
            "data-toggle": "popover",
            "data-trigger": "hover",
            "data-placement": "bottom",
            "data-content": pop_value
        });
        $(this).popover("show");
    });

</script>

<!-- Modal -->
<div class="modal fade" id="addTankLocation" tabindex="-1" role="dialog" aria-labelledby="addTankLocationLabel"  aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <form action="" class="form-horizontal" id="tank_lab_locations" method="post">
                <div class="modal-header">
                    <h5 class="modal-title" id="addTankLocationLabel">Choose location in tank</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body" style="padding: 2em 1em 1em;">

                    <label class="col-md-5 control-label" for="form_control_1">
                        Tanks
                    </label>
                    <select class="form-control select2me" id="lab_tank_id" name="lab_tank_id" data-placeholder="Select...">
                        <option value="">choose</option>
                        {foreach  $tanks as $tank}
                        <option value="{$tank->id}" >{$tank->name}</option>
                        {/foreach}
                    </select>

                    <input type="hidden" name="lab_patient_id" value="{$patientId}">
                    <input type="hidden" id="up_level_name" name="up_level_name" value="0">
                    <input type="hidden" id="cell_name" name="cell_name" value="0">

                    <hr/>

                    <div id="tankCellsContainer">
                        Choose tank to load cells
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary" id="save_tank_lab_cell_patient">Save changes</button>
                </div>
            </form>
        </div>
    </div>
</div>