
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <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> Investigation Preview
                        </div>
                        <div class="actions">
                            <!--button type="button" class="btn green-haze printInvSample" data-id="{$invest->id}" 
                              style=" float: right;" > <i class="fa fa-print"></i>print</button-->
                        </div>
                    </div>
                    <div class="portlet-body" >

                        <table class="table table-striped table-hover table-bordered">
                            <tbody>
                                <tr>
                                    <td style="padding-left: 7px;padding-right: 10px;">
                                        <!-------------------------------  blood picture  ----------------------------------------------------------------->
                                        {if $invest->special_inv_type == 1  }  
                                        <input type="hidden" id="bPictureInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;  border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px; " id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline; margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">Hgb  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  blood bloodCalc  positivefloat" data-colName="hgb"  data-target="hgb"    
                                                           data-tableName="{$invest->tableName}" value="{$invest->blood->hgb}"  id="hgb_blood" data-level="1"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text"  data-colName="hgb_calc"  class="form-control  positivefloat   " 
                                                           value="{$invest->blood->hgb_calc}"   data-tableName="{$invest->tableName}"    id="hgb_calc"  
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="hgb_level"  class="form-control" >
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  blood"  data-target="hgb"       id="hgb_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->hgb_ranges as $rang}
                                                        <option value="{$rang->id}"  > {$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>



                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">RBC : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  blood bloodCalc  positivefloat" data-colName="rbc"  data-target="rbc"    
                                                           data-tableName="{$invest->tableName}" value="{$invest->blood->rbc}"  id="rbc_blood"
                                                           data-level="2" >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text"  data-colName="rbc_calc"  class="form-control   positivefloat  " 
                                                           value="{$invest->blood->rbc_calc}"   data-tableName="{$invest->tableName}" 
                                                           id="rbc_calc" >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="rbc_level"  class="form-control" >
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  blood"    data-target="rbc"     id="rbc_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->rbc_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">WBC : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  blood positivefloat absCalcAllPreview" data-colName="wbc"  data-target="wbc"    
                                                           data-tableName="{$invest->tableName}" value="{$invest->blood->wbc}"  id="wbc_blood"
                                                           data-level="5">
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text"  data-colName="wbc_calc"  class="form-control   positivefloat  " 
                                                           value="{$invest->blood->wbc_calc}"   data-tableName="{$invest->tableName}" 
                                                           id="wbc_calc"  >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="wbc_level"  class="form-control">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  blood"   data-target="wbc"     id="wbc_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->blood->wbc_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">Plt : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  blood positivefloat" data-colName="plt"  data-target="plt"    
                                                           data-tableName="{$invest->tableName}" value="{$invest->blood->plt}"  id="plt_blood"
                                                           data-level="13"  >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text"  data-colName="plt_calc"  class="form-control   positivefloat  " 
                                                           value="{$invest->blood->plt_calc}"   data-tableName="{$invest->tableName}" 
                                                           id="plt_calc" >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="plt_level"  class="form-control" >
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  blood"  data-target="plt"      id="plt_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->blood->plt_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                <div class="form-group  wds35 " style=" float: left; margin-top: 5px; ">

                                                </div>
                                                <div class="form-group wds14 " style=" float: left; margin-top: 5px;margin-left: 4%; ">
                                                    Relative Count
                                                </div>

                                                <div class="form-group wds17 " style=" float: left; margin-top: 5px;margin-left: 1%;">
                                                    Absolute Count
                                                </div>

                                            </div>

                                            <div class="form-group col-md-3 " style=" float: left; margin-top: 5px; ">

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">Hct : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control  bloodCalc   positivefloat" data-colName="hct"  data-target="hct"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->hct}"  id="hct_blood"
                                                               data-level="3" >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="hct_calc"  class="form-control  positivefloat  "  id="hct_calc" 
                                                               value="{$invest->blood->hct_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">MCV : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="mcv_calc"  class="form-control  positivefloat  "   id="mcv_calc" 
                                                               value="{$invest->blood->mcv_calc}"   data-tableName="{$invest->tableName}" 
                                                               disabled="" >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="mcv"  data-target="mcv"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->mcv}"  id="mcv_blood"
                                                               >
                                                    </div>



                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">MCH : </label>
                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="mch_calc"  class="form-control  positivefloat  "   id="mch_calc" 
                                                               value="{$invest->blood->mch_calc}"   data-tableName="{$invest->tableName}" 
                                                               disabled="" >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="mch"  data-target="mch"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->mch}"  id="mch_blood"
                                                               >
                                                    </div>



                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">MCHC : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="mchc_calc"  class="form-control  positivefloat  "  id="mchc_calc"   
                                                               value="{$invest->blood->mchc_calc}"   data-tableName="{$invest->tableName}" 
                                                               disabled="" >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="mchc"  data-target="mchc"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->mchc}"  id="mchc_blood"
                                                               >
                                                    </div>



                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">RDW : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="rdw"  data-target="rdw"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->rdw}"  id="rdw_blood"
                                                               data-level="4" >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="rdw_calc"  class="form-control  positivefloat  "  id="rdw_calc"   
                                                               value="{$invest->blood->rdw_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">Hgb % : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="hgbpercent"  data-target="hgbpercent"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->hgbpercent}"  id="hgbpercent_blood"
                                                               >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="hgbpercent_calc"  class="form-control   positivefloat  "   id="hgbpercent_calc"    
                                                               value="{$invest->blood->hgbpercent_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-6 control-label bold txtl" style=" font-size: 16px;">Mentzer Index % : </label>

                                                    <div class="col-md-3">
                                                        <input type="text"  class="form-control   positivefloat" data-colName="mindex"  data-target="mindex"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->mindex}"  id="mindex_blood"
                                                               >
                                                    </div>

                                                    <div class="col-md-3">
                                                        <input type="text"  data-colName="mindex_calc"  class="form-control  positivefloat   "   id="mindex_calc"     
                                                               value="{$invest->blood->mindex_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>


                                            </div>


                                            <div class="form-group col-md-3 " style=" float: left; margin-top: 5px;    margin-left: 3%; ">


                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Neutrophil : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat absCalc cells_calc " data-colName="neutrophil_r"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->neutrophil_r}" 
                                                               data-level="6"  id="neutrophil_r_blood" data-target="neutrophil_abs"     >
                                                    </div>

                                                    <div class="col-md-2">
                                                        <input type="text"   class="form-control "  value="%"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Lymphocytes : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat absCalc cells_calc " data-colName="lymphocytes_r"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->lymphocytes_r}" 
                                                               data-level="9"   id="lymphocytes_r_blood" data-target="lymphocytes_abs"     >
                                                    </div>

                                                    <div class="col-md-2">
                                                        <input type="text"   class="form-control "  value="%"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Monocytes : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat absCalc cells_calc " data-colName="monocytes_r"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->monocytes_r}" 
                                                               data-level="10"    id="monocytes_r_blood" data-target="monocytes_abs"     >
                                                    </div>

                                                    <div class="col-md-2">
                                                        <input type="text"   class="form-control "  value="%"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Eosinophils : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat absCalc cells_calc " data-colName="eosinophils_r"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->eosinophils_r}" 
                                                               data-level="11"    id="eosinophils_r_blood" data-target="eosinophils_abs"     >
                                                    </div>

                                                    <div class="col-md-2">
                                                        <input type="text"   class="form-control "  value="%"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Basophils : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat absCalc cells_calc " data-colName="basophils_r"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->basophils_r}" 
                                                               data-level="12"    id="basophils_r_blood" data-target="basophils_abs"     >
                                                    </div>

                                                    <div class="col-md-2">
                                                        <input type="text"   class="form-control "  value="%"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Other Cells : </label>

                                                    <div class="col-md-7">
                                                        <input type="text"  class="form-control  positivefloat  " data-colName="othercells"  
                                                               data-tableName="{$invest->tableName}" value="100" 
                                                               id="othercells_blood"   disabled=""    >
                                                    </div>
                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Segmented  : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat  " data-colName="segmented"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->segmented}" 
                                                               data-level="7"   id="segmented_blood"      >
                                                    </div>
                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-5 control-label bold txtl" style=" font-size: 16px;">Band  : </label>

                                                    <div class="col-md-5">
                                                        <input type="text"  class="form-control  positivefloat  " data-colName="band"  
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->band}" 
                                                               data-level="8"   id="band_blood"      >
                                                    </div>
                                                </div>


                                            </div>

                                            <div class="form-group col-md-2 " style=" float: left; margin-top: 5px;     margin-left: 1%;">

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="neutrophil_abs"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->neutrophil_abs}" 
                                                               id="neutrophil_abs_blood"    disabled=""   >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"   class="form-control "  value="K/uL"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="lymphocytes_abs"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->lymphocytes_abs}" 
                                                               id="lymphocytes_abs_blood"    disabled=""   >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"   class="form-control "  value="K/uL"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="monocytes_abs"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->monocytes_abs}" 
                                                               id="monocytes_abs_blood"    disabled=""   >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"   class="form-control "  value="K/uL"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="eosinophils_abs"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->eosinophils_abs}" 
                                                               id="eosinophils_abs_blood"    disabled=""   >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"   class="form-control "  value="K/uL"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="basophils_abs"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->basophils_abs}" 
                                                               id="basophils_abs_blood"    disabled=""   >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"   class="form-control "  value="K/uL"    disabled=""  >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px;height: 30px; "></div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="segmented1"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->segmented1}" 
                                                               id="segmented1_blood"         >
                                                    </div>
                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">
                                                    <div class="col-md-8">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="band1"    
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->band1}" 
                                                               id="band1_blood"       >
                                                    </div>
                                                </div>


                                            </div>

                                            <div class="form-group col-md-3 " style=" float: left; margin-top: 5px;     margin-left: 3%;">

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Pct : </label>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="pct"     
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->pct}"  id="pct_blood"
                                                               >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat"  data-colName="pct_calc"    id="pct_calc" 
                                                               value="{$invest->blood->pct_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">MPV : </label>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="mpv"     
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->mpv}"  id="mpv_blood"
                                                               >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat"  data-colName="mpv_calc"    id="mpv_calc" 
                                                               value="{$invest->blood->mpv_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">PDW : </label>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat" data-colName="pdw"     
                                                               data-tableName="{$invest->tableName}" value="{$invest->blood->pdw}"  id="pdw_blood"
                                                               >
                                                    </div>

                                                    <div class="col-md-4">
                                                        <input type="text"  class="form-control  positivefloat"  data-colName="pdw_calc"    id="pdw_calc" 
                                                               value="{$invest->blood->pdw_calc}"   data-tableName="{$invest->tableName}" 
                                                               >
                                                    </div>

                                                </div>

                                                <div class="form-group col-md-12 " style="border: 1px solid black; margin-top: 5px;">

                                                    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px;  margin-left:  5px; ">

                                                        <div class="col-md-4" style="margin-right: 9px;">
                                                            <input type="text"  class="form-control  positivefloat" data-colName="nrbc"     
                                                                   data-tableName="{$invest->tableName}" value="{$invest->blood->nrbc}"  id="nrbc_blood"
                                                                   >
                                                        </div>

                                                        <label class="col-md-7 control-label bold txtl" style=" font-size: 16px;">NRBC / 100 WBC  </label>


                                                    </div>

                                                    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px;margin-left:  5px;  ">

                                                        <div class="col-md-4" style="margin-right: 9px;">
                                                            <input type="text"  class="form-control  positivefloat" data-colName="promyelocyte"     
                                                                   data-tableName="{$invest->tableName}" value="{$invest->blood->promyelocyte}"  id="promyelocyte_blood"
                                                                   >
                                                        </div>

                                                        <label class="col-md-7 control-label bold txtl" style=" font-size: 16px;">Promyelocyte  </label>


                                                    </div>

                                                    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; margin-left:  5px; ">

                                                        <div class="col-md-4" style="margin-right: 9px;">
                                                            <input type="text"  class="form-control  positivefloat" data-colName="myelocyte"     
                                                                   data-tableName="{$invest->tableName}" value="{$invest->blood->myelocyte}"  id="myelocyte_blood"
                                                                   >
                                                        </div>

                                                        <label class="col-md-7 control-label bold txtl" style=" font-size: 16px;">Myelocytes  </label>


                                                    </div>

                                                    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px;margin-left:  5px;  ">

                                                        <div class="col-md-4" style="margin-right: 9px;">
                                                            <input type="text"  class="form-control  positivefloat" data-colName="juvenile"     
                                                                   data-tableName="{$invest->tableName}" value="{$invest->blood->juvenile}"  id="juvenile_blood"
                                                                   >
                                                        </div>

                                                        <label class="col-md-7 control-label bold txtl" style=" font-size: 16px;">Juvenile  </label>


                                                    </div>

                                                    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px;margin-left:  5px; margin-bottom:5px; ">

                                                        <div class="col-md-4" style="margin-right: 9px;">
                                                            <input type="text"  class="form-control  positivefloat" data-colName="blast"     
                                                                   data-tableName="{$invest->tableName}" value="{$invest->blood->blast}"  id="blast_blood"
                                                                   >
                                                        </div>

                                                        <label class="col-md-7 control-label bold txtl" style=" font-size: 16px;">Blast  </label>


                                                    </div>

                                                </div>


                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2"   placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <!-------------------------------  urine analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 2  }  
                                        <input type="hidden" id="urineInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>

                                            <div class="form-group col-md-4 " style="margin-left: 30%;">
                                                <h4 style="font-weight: bold;background: #DDD;padding:5px; ">Physical Examination :  </h4>   
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Volume:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_volume"    id="urine_volume"   >
                                                        <option value=""></option>
                                                        {foreach $urine_volume as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Aspect:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_aspect"   id="urine_aspect"   >
                                                        <option value=""></option>
                                                        {foreach $urine_aspect as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Color:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_color"     id="urine_color"   >
                                                        <option value=""></option>
                                                        {foreach $urine_color as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Deposit:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_deposit"     id="urine_deposit"   >
                                                        <option value=""></option>
                                                        {foreach $urine_deposit as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Odor:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_odor"   id="urine_odor"   >
                                                        <option value=""></option>
                                                        {foreach $urine_odor as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-4 " style="margin-left: 30%;">
                                                <h4 style="font-weight: bold;background: #DDD;padding:5px; ">Chemical Examination :  </h4>   
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Reaction:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_reaction"   id="urine_reaction"   >
                                                        <option value=""></option>
                                                        {foreach $urine_reaction as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Specific Gravity:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_gravity"    id="urine_gravity"   >
                                                        <option value=""></option>
                                                        {foreach $urine_gravity as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Protein:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_protein"    id="urine_protein"   >
                                                        <option value=""></option>
                                                        {foreach $urine_protein as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>



                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Bilirubin:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_bilirubin"    id="urine_bilirubin"   >
                                                        <option value=""></option>
                                                        {foreach $urine_bilirubin as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Sugar:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_sugar"    id="urine_sugar"   >
                                                        <option value=""></option>
                                                        {foreach $urine_sugar as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Urobilinigen:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_urobilinigen"      id="urine_urobilinigen"   >
                                                        <option value=""></option>
                                                        {foreach $urine_urobilinigen as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Acetone:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_acetone"    id="urine_acetone"   >
                                                        <option value=""></option>
                                                        {foreach $urine_acetone as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Leucocytes:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_leucocytes"   id="urine_leucocytes"   >
                                                        <option value=""></option>
                                                        {foreach $urine_leucocytes as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Nitrite:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_nitrite"     id="urine_nitrite"   >
                                                        <option value=""></option>
                                                        {foreach $urine_nitrite as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Blood:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_blood"    id="urine_blood"   >
                                                        <option value=""></option>
                                                        {foreach $urine_blood as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>



                                            <div class="form-group col-md-4 " style="margin-left: 30%;">
                                                <h4 style="font-weight: bold;background: #DDD;padding:5px; ">Microscopic Examination :  </h4>   
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Pus Cells:</label>
                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   urine_pus"      id="urine_pus"   >
                                                        <option value=""></option>
                                                        {foreach $urine_pus as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                                <div class="col-md-2 wds4">
                                                    - 
                                                </div>

                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   urine_pus2" 
                                                            data-colName="pus2"     
                                                            id="urine_pus2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_pus2 as $data}
                                                        <option value="{$data->id}" {if $invest->urine->pus2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Amorphous:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_amorphous"   id="urine_amorphous"   >
                                                        <option value=""></option>
                                                        {foreach $urine_amorphous as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2" style="float: right;">
                                                    <select class="form-control   urine_amorphous2" 
                                                            data-colName="amorphous2"     
                                                            id="urine_amorphous2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_amorphous2 as $data}
                                                        <option value="{$data->id}" {if $invest->urine->amorphous2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">R.B.Cs:</label>
                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   urine_pbcs"    id="urine_pbcs"   >
                                                        <option value=""></option>
                                                        {foreach $urine_pbcs as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2 wds4">
                                                    - 
                                                </div>

                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   urine_pbcs2"     id="urine_pbcs2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_pbcs2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>


                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Ova:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_ova"      id="urine_ova"   >
                                                        <option value=""></option>
                                                        {foreach $urine_ova as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Epithelial Cells: :</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_epithelial"    id="urine_epithelial"   >
                                                        <option value=""></option>
                                                        {foreach $urine_epithelial as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Trophazite:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_trophazite"     id="urine_trophazite"   >
                                                        <option value=""></option>
                                                        {foreach $urine_trophazite as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Casts:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_casts"   id="urine_casts"   >
                                                        <option value=""></option>
                                                        {foreach $urine_casts as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Mucus:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_mucus"     id="urine_mucus"   >
                                                        <option value=""></option>
                                                        {foreach $urine_mucus as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_casts2"     id="urine_casts2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_casts2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Urine Artifacts:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_artifacts"   id="urine_artifacts"   >
                                                        <option value=""></option>
                                                        {foreach $urine_artifacts as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Crystal:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_crystal"    id="urine_crystal"   >
                                                        <option value=""></option>
                                                        {foreach $urine_crystal as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Fungi:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_fungi"  id="urine_fungi"   >
                                                        <option value=""></option>
                                                        {foreach $urine_fungi as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_crystal2"   id="urine_crystal2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_crystal2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Bacteria:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   urine_bacteria"    id="urine_bacteria"   >
                                                        <option value=""></option>
                                                        {foreach $urine_bacteria as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2" style="float: right;">
                                                    <select class="form-control   urine_bacteria2"   id="urine_bacteria2"   >
                                                        <option value=""></option>
                                                        {foreach $urine_bacteria2 as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2"  
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>


                                        </div>

                                        <!-------------------------------  stool analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 3  }  
                                        <input type="hidden" id="stoolInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">

                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline ;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>

                                            <div class="form-group col-md-4 " style="margin-left: 30%;">
                                                <h4 style="font-weight: bold;background: #DDD;padding:5px; ">Physical Examination :  </h4>   
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Color:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_color"   id="stool_color"   >
                                                        <option value=""></option>
                                                        {foreach $stool_color as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Consistency:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_consistency"   id="stool_consistency"   >
                                                        <option value=""></option>
                                                        {foreach $stool_consistency as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Reaction:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_reaction"   id="stool_reaction"   >
                                                        <option value=""></option>
                                                        {foreach $stool_reaction as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Food Particles:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_food"   id="stool_food"   >
                                                        <option value=""></option>
                                                        {foreach $stool_food as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Odor:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_odor"   id="stool_odor"   >
                                                        <option value=""></option>
                                                        {foreach $stool_odor as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Blood:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_blood"     id="stool_blood"   >
                                                        <option value=""></option>
                                                        {foreach $stool_blood as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Mucus :</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_mucus"    id="stool_mucus"   >
                                                        <option value=""></option>
                                                        {foreach $stool_mucus as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-4 " style="margin-left: 30%;">
                                                <h4 style="font-weight: bold;background: #DDD;padding:5px; ">Microscopic  Examination :  </h4>   
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">WBCs:</label>
                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   stool_wbc"    id="stool_wbc"   >
                                                        <option value=""></option>
                                                        {foreach $stool_wbc as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                                <div class="col-md-2 wds4">
                                                    - 
                                                </div>

                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   stool_wbc2"    id="stool_wbc2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_wbc2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Proglottids:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_prog"    id="stool_prog"   >
                                                        <option value=""></option>
                                                        {foreach $stool_prog as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">RBCs:</label>
                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   stool_rbc"   id="stool_rbc"   >
                                                        <option value=""></option>
                                                        {foreach $stool_rbc as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                                <div class="col-md-2 wds4">
                                                    - 
                                                </div>

                                                <div class="col-md-2 wds23">
                                                    <select class="form-control   stool_rbc2"    id="stool_rbc2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_rbc2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_prog2"    id="stool_prog2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_prog2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Trophozoite:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_trophozoite"   id="stool_trophozoite"   >
                                                        <option value=""></option>
                                                        {foreach $stool_trophozoite as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2" style="float: right;">
                                                    <select class="form-control   stool_trophozoite2"   id="stool_trophozoite2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_trophozoite2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Flagellates:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_flagellates"    id="stool_flagellates"   >
                                                        <option value=""></option>
                                                        {foreach $stool_flagellates as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_trophozoite3"     id="stool_trophozoite3"   >
                                                        <option value=""></option>
                                                        {foreach $stool_trophozoite3 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_flagellates2"   id="stool_flagellates2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_flagellates2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Cysts:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_cysts"   id="stool_cysts"   >
                                                        <option value=""></option>
                                                        {foreach $stool_cysts as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Ciliate:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_ciliate"    id="stool_ciliate"   >
                                                        <option value=""></option>
                                                        {foreach $stool_ciliate as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_cysts2"   id="stool_cysts2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_cysts2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Undigested Food:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_undigested"    id="stool_undigested"   >
                                                        <option value=""></option>
                                                        {foreach $stool_undigested as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2" style="float: right;">
                                                    <select class="form-control   stool_undigested2"    id="stool_undigested2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_undigested2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Ova:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_ova"  id="stool_ova"   >
                                                        <option value=""></option>
                                                        {foreach $stool_ova as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_undigested3"   id="stool_undigested3"   >
                                                        <option value=""></option>
                                                        {foreach $stool_undigested3 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_ova2"   id="stool_ova2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_ova2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_undigested4"    id="stool_undigested4"   >
                                                        <option value=""></option>
                                                        {foreach $stool_undigested4 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Larva:</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_larva"     id="stool_larva"   >
                                                        <option value=""></option>
                                                        {foreach $stool_larva as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Parasitology Artifacts: :</label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_parasitology"   id="stool_parasitology"   >
                                                        <option value=""></option>
                                                        {foreach $stool_parasitology as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_larva2"  id="stool_larva2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_larva2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-6 " style=" float: left; ">
                                                <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                                <div class="col-md-6">
                                                    <select class="form-control   stool_parasitology2"   id="stool_parasitology2"   >
                                                        <option value=""></option>
                                                        {foreach $stool_parasitology2 as $data}
                                                        <option value="{$data->id}">{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2"  placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>
                                        </div>

                                        <!-------------------------------  Culture analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 4  }  
                                        <input type="hidden" id="cultureInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">

                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>

                                            <div class="tabbable tabbable-custom tabbable-noborder">

                                                <ul class="nav nav-tabs">
                                                    <li class="aw_3d_list active"> <a href="#tab_1" data-toggle="tab"> Culture </a> </li>
                                                    <li class="aw_3d_list"  > <a href="#tab_2" data-toggle="tab"> Sensitivity </a> </li>
                                                </ul>

                                                <div class="tab-content">

                                                    <div class="tab-pane active" id="tab_1">
                                                        <div class="row all nolabel" style="border-bottom:  1px solid black;">
                                                            <div class="col-md-6">
                                                                <div class="portlet-title tbox col-md-6">
                                                                    <div class="caption font-green-haze col-md-12">
                                                                        <span class="caption-subject bold uppercase"> Culture :  </span>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Sample : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_sample"     id="culture_sample"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_sample as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Organism A : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_organism_a"   id="culture_organism_a"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_organism_a as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Organism B : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_organism_b" 
                                                                                id="culture_organism_b"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_organism_b as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Organism C : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_organism_c" 
                                                                                id="culture_organism_c"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_organism_c as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Culture Condition : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_condition" 
                                                                                id="culture_condition"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_condition as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;"></label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_condition1" 
                                                                                id="culture_condition1"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_condition1 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>


                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Colony Count : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_colony_count" 
                                                                                id="culture_colony_count"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_colony_count as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                            </div>
                                                            <div class="col-md-6" style="border-left:  1px solid black;padding-left: 20px;">
                                                                <div class="portlet-title tbox col-md-6">
                                                                    <div class="caption font-green-haze col-md-12">
                                                                        <span class="caption-subject bold uppercase"> Urine Examination :  </span>
                                                                    </div>
                                                                </div>


                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Reaction:</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_reaction" 
                                                                                id="culture_reaction"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_reaction as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>



                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Pus Cells:</label>
                                                                    <div class="col-md-3">
                                                                        <select class="form-control   culture_pus" 
                                                                                id="culture_pus"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_pus as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                    <div class="col-md-1">
                                                                        - 
                                                                    </div>

                                                                    <div class="col-md-3">
                                                                        <select class="form-control   culture_pus2" 
                                                                                id="culture_pus2"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_pus2 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>



                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">R.B.Cs:</label>
                                                                    <div class="col-md-3">
                                                                        <select class="form-control   culture_pbcs" 
                                                                                id="culture_pbcs"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_pbcs as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>

                                                                    <div class="col-md-1">
                                                                        - 
                                                                    </div>

                                                                    <div class="col-md-3">
                                                                        <select class="form-control   culture_pbcs2" 
                                                                                id="culture_pbcs2"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_pbcs2 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>


                                                                </div>




                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Epithelial Cells: :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_epithelial" 
                                                                                id="culture_epithelial"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_epithelial as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>



                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Crystal:</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_crystal" 
                                                                                id="culture_crystal"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_crystal as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Fungi:</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_fungi" 
                                                                                id="culture_fungi"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_fungi as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>




                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Bacteria:</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_bacteria" 
                                                                                id="culture_bacteria"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_bacteria as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Others : </label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_other" 
                                                                                id="culture_other"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_other as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Others :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_other1" 
                                                                                id="culture_other1"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_other1 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Others :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_other2" 
                                                                                id="culture_other2"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_other2 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Others :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_other3" 
                                                                                id="culture_other3"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_other3 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Others :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_other4" 
                                                                                id="culture_other4"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_other4 as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">Gram stain film  :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_gram" 
                                                                                id="culture_gram"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_gram as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;margin-left: 4px;">ZN film  :</label>
                                                                    <div class="col-md-7">
                                                                        <select class="form-control   culture_zn_film" 
                                                                                id="culture_zn_film"   >
                                                                            <option value=""></option>
                                                                            {foreach $urine_zn_film as $data}
                                                                            <option value="{$data->id}" >{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>


                                                            </div>
                                                        </div>

                                                        <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                            <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                            <div class="col-md-10">
                                                                <textarea class="form-control  txtc" rows="2" 
                                                                          placeholder="Enter more text" data-toggle="popover" 
                                                                          data-trigger="hover" data-placement="bottom" data-content="">
                                                                </textarea>
                                                            </div>
                                                        </div>
                                                        <div class="clearfix"></div>
                                                    </div>

                                                    <!-------------------------------------------------------------------------------------------------------------------->

                                                    <div class="tab-pane" id="tab_2">
                                                        <div class="row all nolabel" style="border-bottom:  1px solid black;">
                                                            <div class="col-md-6">
                                                                <div class="portlet-title tbox col-md-6">
                                                                    <div class="caption font-green-haze col-md-12">
                                                                        <span class="caption-subject bold uppercase"> Sensitivity :  </span>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-4 " style=" float: left;padding: 8px 3px; ">
                                                                    <div class="col-md-12">
                                                                        <select class="form-control   culture_sensitivity_cat" 
                                                                                id="culture_sensitivity_cat"   >
                                                                            <option value=""></option>
                                                                            {foreach $culture_sensitivity_cat as $data}
                                                                            <option value="{$data->id}">{$data->name}</option>
                                                                            {/foreach}
                                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                                        </select>
                                                                    </div>
                                                                </div>

                                                                <input type="hidden" id="activeTab" value="hs" />

                                                                <div class="form-group col-md-12 " style=" float: left; ">

                                                                    <div class="tabbable tabbable-custom tabbable-noborder">

                                                                        <ul class="nav nav-tabs">
                                                                            <li class="aw_3d_list active" style="padding: 0px 5px !important;"> <a class="activeTab" data-tab="hs" href="#tab_2_1" data-toggle="tab"> Highly For </a> </li>
                                                                            <li class="aw_3d_list"  style="padding: 0px 5px !important;" > <a class="activeTab" data-tab="ms" href="#tab_2_2" data-toggle="tab"> Moderate For  </a> </li>
                                                                            <li class="aw_3d_list"  style="padding: 0px 5px !important;" > <a class="activeTab" data-tab="ls" href="#tab_2_3" data-toggle="tab"> Low For  </a> </li>
                                                                            <li class="aw_3d_list"  style="padding: 0px 5px !important;" > <a class="activeTab" data-tab="rs" href="#tab_2_4" data-toggle="tab"> Resistant For  </a> </li>
                                                                        </ul>

                                                                        <div class="tab-content">

                                                                            <div class="tab-pane active" id="tab_2_1">
                                                                                <div class="row nolabel" style="border:  1px solid black;">
                                                                                    <div class="col-md-12">
                                                                                        <table class="table table-striped table-hover table-bordered">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th class="bold col-md-1"> <div align="center">No </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Abbr </div></th>
                                                                                                    <th class="bold"> <div align="center">Scientific Name </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensit. </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensitivity </div></th>
                                                                                                    <th class="wds3"></th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                            <tbody id="hsContainer">  </tbody>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="clearfix"></div>
                                                                            </div>


                                                                            <div class="tab-pane" id="tab_2_2">
                                                                                <div class="row  nolabel" style="border:  1px solid black;">
                                                                                    <div class="col-md-12">
                                                                                        <table class="table table-striped table-hover table-bordered">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th class="bold col-md-1"> <div align="center">No </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Abbr </div></th>
                                                                                                    <th class="bold"> <div align="center">Scientific Name </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensit. </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensitivity </div></th>
                                                                                                    <th class="wds3"></th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                            <tbody id="msContainer"> </tbody>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="clearfix"></div>
                                                                            </div>



                                                                            <div class="tab-pane" id="tab_2_3">
                                                                                <div class="row  nolabel" style="border:  1px solid black;">
                                                                                    <div class="col-md-12">
                                                                                        <table class="table table-striped table-hover table-bordered">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th class="bold col-md-1"> <div align="center">No </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Abbr </div></th>
                                                                                                    <th class="bold"> <div align="center">Scientific Name </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensit. </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensitivity </div></th>
                                                                                                    <th class="wds3"></th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                            <tbody id="lsContainer">  </tbody>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="clearfix"></div>
                                                                            </div>

                                                                            <div class="tab-pane" id="tab_2_4">
                                                                                <div class="row  nolabel" style="border:  1px solid black;">
                                                                                    <div class="col-md-12">
                                                                                        <table class="table table-striped table-hover table-bordered">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th class="bold col-md-1"> <div align="center">No </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Abbr </div></th>
                                                                                                    <th class="bold"> <div align="center">Scientific Name </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensit. </div></th>
                                                                                                    <th class="bold col-md-2"> <div align="center">Sensitivity </div></th>
                                                                                                    <th class="wds3"></th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                            <tbody id="rsContainer">   </tbody>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="clearfix"></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-6" style="padding-left: 20px;">
                                                                <div class="col-md-6" style="padding: 10px 3px;margin: 3px 0px; height: 37px;">
                                                                    <div class="caption font-green-haze col-md-12">
                                                                        <span class="caption-subject bold uppercase">  </span>
                                                                    </div>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <div class="col-md-2">
                                                                        <div class="form-group  form-md-floating-label has-info">
                                                                            <label for="abbr" class="txtc">Abbr</label>
                                                                            <input type="text"  class="form-control"   id="abbr" >
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-md-6">
                                                                        <div class="form-group  form-md-floating-label has-info">
                                                                            <label for="scientific_name" class="txtc">Scientific Name</label>
                                                                            <input type="text"  class="form-control"   id="scientific_name" >
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-md-3">
                                                                        <div class="form-group  form-md-floating-label has-info">
                                                                            <label for="sensitivity" class="txtc">Sensitivity</label>
                                                                            <input type="text"  class="form-control"   id="sensitivity" >
                                                                        </div>
                                                                    </div>

                                                                    <a class="btn btn-success btn-xs " id="AddAbbr"  href="javascript:;"  data-culture="{$invest->culture.id}" 
                                                                       style=" float: right;margin-right: 0px; margin-top: 25px;"  >
                                                                        <i class="fa fa-plus"></i> </a>
                                                                </div>

                                                                <div class="form-group col-md-12 " style=" float: left; ">
                                                                    <table class="table table-striped table-hover table-bordered">
                                                                        <thead>
                                                                            <tr>
                                                                                <th class="wds5"></th>
                                                                                <th class="bold"> <div align="center">Abbr </div></th>
                                                                                <th class="bold"> <div align="center">Scientific Name </div></th>
                                                                                <th class="bold"> <div align="center">Sensitivity </div></th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody id="abbrContainer">
                                                                            {foreach $antibiotic_sensitivity as $data}
                                                                            <tr>
                                                                                <td>
                                                                                    <a class=" btn-success btn-xs moveAbbr "  href="javascript:;" data-id="{$data.id}" data-culture="0" >
                                                                                        <i class="fa fa-arrow-left"></i> </a>
                                                                                </td>
                                                                                <td>{$data.abbr}</td>
                                                                                <td>{$data.scientific_name}</td>
                                                                                <td>{$data.sensitivity}</td>
                                                                            </tr>
                                                                            {/foreach}
                                                                        </tbody>
                                                                    </table>
                                                                </div>

                                                            </div>
                                                        </div>

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



                                                </div>


                                            </div>
                                        </div>
                                        <!-------------------------------  ESR analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 5  }  
                                        <input type="hidden" id="esrInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">ESR 1st Hour : </label>

                                                <div class="col-md-2">
                                                    <select class="form-control   esr_hour1 esr "     data-target="hour1"   
                                                            id="esr_hour1"   >
                                                        <option value=""></option>
                                                        {foreach $esr_hour1 as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="hour1_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="hour1_level"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  esr" data-target="hour1" 
                                                            id="hour1_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->hour1_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>



                                            <div class="form-group col-md-12 " style=" float: left;  margin-top :  5px;">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">ESR 2nd Hour : </label>

                                                <div class="col-md-2">
                                                    <select class="form-control   esr_hour2 esr" 
                                                            data-target="hour2"    id="esr_hour2"   >
                                                        <option value=""></option>
                                                        {foreach $esr_hour2 as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="hour2_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="hour2_level"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  esr"   data-target="hour2" 
                                                            id="hour2_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->hour2_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2" 
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>


                                        </div>

                                        <!-------------------------------  Cross Matching analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 6  }  
                                        <input type="hidden" id="crossInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 wds20 control-label bold txtl" style=" font-size: 16px;">The Patient  : </label>

                                                <div class="col-md-2 wds8">
                                                    <select class="form-control   cross_abo"  
                                                            id="cross_abo"   >
                                                        <option value=""></option>
                                                        {foreach $cross_abo as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>


                                                <div class="col-md-4 wds12">
                                                    <select class="form-control   cross_rh"  
                                                            id="cross_rh"   >
                                                        <option value=""></option>
                                                        {foreach $cross_rh as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>




                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; background-color: #ddd; ">
                                                <input type="hidden" id="crossDonnersItr" value="1" />
                                                <label class=" col-md-2 wds20 control-label bold txtl" style=" font-size: 16px;">The Donors  : 

                                                    <a class=" btn-success btn-xs " id="AddDonor"  href="javascript:;"  data-cross="0" 
                                                       style="margin-right: 0px;"  >
                                                        <i class="fa fa-plus"></i> </a>

                                                </label>
                                                <div class="col-md-2 wds8">ABO</div>
                                                <div class="col-md-2 wds12">Rh</div>
                                                <div class="col-md-2 wds15">Compatibility</div>
                                                <div class="col-md-2 wds15">HCV</div>
                                                <div class="col-md-2 wds15">HBsAg</div>
                                                <div class="col-md-2 wds15">HV</div>
                                            </div>

                                            <div id="donorsDiv">        

                                                <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                    <div class="col-md-2 wds20">

                                                        <input type="text"  class="form-control "    value=""   >

                                                    </div>

                                                    <div class="col-md-2 wds8">
                                                        <select class="form-control   cross_abo"  
                                                                id="donner_abo1" data-itr="1"   >
                                                            <option value=""></option>
                                                            {foreach $cross_abo as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                    <div class="col-md-2 wds12">
                                                        <select class="form-control   cross_rh"  
                                                                id="donner_rh1" data-itr="1"    >
                                                            <option value=""></option>
                                                            {foreach $cross_rh as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                    <div class="col-md-2 wds15">
                                                        <select class="form-control   cross_compatibility"  
                                                                id="cross_compatibility1" data-itr="1"    >
                                                            <option value=""></option>
                                                            {foreach $cross_compatibility as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                    <div class="col-md-2 wds15">
                                                        <select class="form-control   cross_hcv"  
                                                                id="cross_hcv1" data-itr="1"    >
                                                            <option value=""></option>
                                                            {foreach $cross_hcv as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                    <div class="col-md-2 wds15">
                                                        <select class="form-control   cross_hbsag"  
                                                                id="cross_hbsag1" data-itr="1"    >
                                                            <option value=""></option>
                                                            {foreach $cross_hbsag as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                    <div class="col-md-2 wds15">
                                                        <select class="form-control   cross_hv"  
                                                                id="cross_hv1" data-itr="1"    >
                                                            <option value=""></option>
                                                            {foreach $cross_hv as $data}
                                                            <option value="{$data->id}" >{$data->name}</option>
                                                            {/foreach}
                                                            <option value="0" class="deleteoptincompo">حذف</option>
                                                        </select>
                                                    </div>


                                                </div>
                                            </div>





                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2" 
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>


                                        </div>

                                        <!-------------------------------  HB sag analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 7  }  
                                        <input type="hidden" id="hbsagInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>


                                        </div>
                                        <!-------------------------------  Clothing time analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 8  }  
                                        <input type="hidden" id="clothingInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">Bleeding Time  : </label>

                                                <div class="col-md-1 wds16 ">
                                                    <input type="text"  class="form-control  clothing   positivefloat" data-colName="bleeding"  data-target="bleeding"   id="bleeding_clothing"  >
                                                </div>

                                                <div class="col-md-1 wds4">
                                                    <input type="text"   class="form-control "  value="min"    disabled=""  >
                                                </div>

                                                <div class="col-md-1 wds16">
                                                    <input type="text"    class="form-control  positivefloat   "  data-colName="bleeding_sec"
                                                           value="{$invest->bleeding_sec}"    
                                                           >
                                                </div>

                                                <div class="col-md-1 wds4 ">
                                                    <input type="text"   class="form-control "  value="sec"    disabled=""  >
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="bleeding_level"  class="form-control" value="   ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  clothing" data-colName="bleeding_rangeid" 
                                                            data-target="bleeding"   
                                                            id="bleeding_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->bleeding_ranges as $rang}
                                                        <option value="{$rang->id}" >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">Clothing Time  : </label>

                                                <div class="col-md-1 wds16 ">
                                                    <input type="text"  class="form-control  clothing   positivefloat" data-colName="clothing"  data-target="clothing"     
                                                           value="{$invest->clothing}"  id="clothing_clothing"
                                                           >
                                                </div>

                                                <div class="col-md-1 wds4">
                                                    <input type="text"   class="form-control "  value="min"    disabled=""  >
                                                </div>

                                                <div class="col-md-1 wds16">
                                                    <input type="text"    class="form-control  positivefloat   "  data-colName="clothing_sec"
                                                           value="{$invest->clothing_sec}"    
                                                           >
                                                </div>

                                                <div class="col-md-1 wds4 ">
                                                    <input type="text"   class="form-control "  value="sec"    disabled=""  >
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="clothing_level"  class="form-control" value="   ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  clothing" data-colName="clothing_rangeid" 
                                                            data-target="clothing"   
                                                            id="clothing_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->clothing_ranges as $rang}
                                                        <option value="{$rang->id}" >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control " rows="2" 
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>


                                        </div>
                                        <!-------------------------------  PT analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 9  }  

                                        <input type="hidden" id="ptInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-8 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>

                                            <a class="btn btn-success btn-xs col-md-3  "  id="calculator"  href="javascript:;" data-invResId="{$inv->id}"  >
                                                Factors
                                            </a>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold" style="text-align: center !important;background: #DDD;padding: 5px; margin-right:  21.66666667%;">PT</label>

                                                <div class="col-md-2">
                                                    <input type="text"   class="form-control "  value="Control's Time"    disabled=""  >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="control_time_pt"  class="form-control" value="13">
                                                </div>

                                                <div class="col-md-1 wds4">
                                                    <input type="text"   class="form-control "  value="sec"    disabled=""  >
                                                </div>

                                                <div class="col-md-1 wds4">
                                                    <input type="text"   class="form-control "  value="ISI"    disabled=""  >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="isi_pt"  class="form-control" value="1.06">
                                                </div>

                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style="margin-left: 5%;">Patient's Time  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="patient_time"  data-target="patient_time"    
                                                           id="patient_time_pt"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="patient_time_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="patient_time_level"  class="form-control" value=" ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt"      data-target="patient_time"      id="patient_time_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->patient_time_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style="margin-left: 5%;">Concentration  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="concentration"  data-target="concentration"    
                                                           id="concentration_pt"  disabled=""
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="concentration_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="concentration_level"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="concentration_rangeid" 
                                                            data-target="concentration"   
                                                            id="concentration_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->concentration_ranges as $rang}
                                                        <option value="{$rang->id}" >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style="margin-left: 5%;">I.N.R  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="inr"  data-target="inr"    
                                                           value=""  id="inr_pt" disabled
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="inr_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="inr_level"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="inr_rangeid" 
                                                            data-target="inr"   
                                                            id="inr_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->inr_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style="margin-left: 5%;">Ratio  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="ratio"  data-target="ratio"    
                                                           value=""  id="ratio_pt"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="ratio_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="ratio_level"  class="form-control" value="    ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="ratio_rangeid" 
                                                            data-target="ratio"   
                                                            id="ratio_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->ratio_ranges as $rang}
                                                        <option value="{$rang->id}" >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5%; ">

                                                <label class="col-md-2 control-label bold" style="text-align: center !important;background: #DDD;padding: 5px; margin-right:  21.66666667%;">APTT</label>

                                                <div class="col-md-2">
                                                    <input type="text"   class="form-control "  value="Control's Time"    disabled=""  >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="control_time1_pt"  class="form-control" value="30">
                                                </div>

                                                <div class="col-md-1 wds4">
                                                    <input type="text"   class="form-control "  value="sec"    disabled=""  >
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold txtl" style="margin-left: 5%;">Patient's Time  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="patient_time1"  data-target="patient_time1"    
                                                           value=""  id="patient_time1_pt"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="patient_time1_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="patient_time1_level"  class="form-control" value="  ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="patient_time1_rangeid" 
                                                            data-target="patient_time1"   
                                                            id="patient_time1_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->patient_time1_ranges as $rang}
                                                        <option value="{$rang->id}" >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold" style="margin-right: 5%;background: #DDD;padding: 5px;">Fibrinogen  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="fibrinogen"  data-target="fibrinogen"    
                                                           value=""  id="fibrinogen_pt"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="fibrinogen_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="fibrinogen_level"  class="form-control" value=" ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="fibrinogen_rangeid" 
                                                            data-target="fibrinogen"   
                                                            id="fibrinogen_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->fibrinogen_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2 control-label bold" style="margin-right: 5%;background: #DDD;padding: 5px;">FDP  : </label>

                                                <div class="col-md-2">
                                                    <input type="text"  class="form-control  pt   positivefloat" data-colName="fdp"  data-target="fdp"    
                                                           value=""  id="fdp_pt"
                                                           >
                                                </div>

                                                <div class="col-md-2">
                                                    <input type="text" disabled="" id="fdp_unit"  class="form-control" value="">
                                                </div>

                                                <div class="col-md-2 wds10">
                                                    <input type="text" disabled="" id="fdp_level"  class="form-control" value="  ">
                                                </div>

                                                <div class="col-md-4">
                                                    <select class="form-control select2h  pt" data-colName="fdp_rangeid" 
                                                            data-target="fdp"   
                                                            id="fdp_rangeid" >
                                                        <option value=""></option>
                                                        {foreach  $invest->fdp_ranges as $rang}
                                                        <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control " rows="2"  data-colName="comment" 
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>

                                        </div>

                                        <!-------------------------------  ABO/RH analysis ----------------------------------------------------------------->
                                        {else if $invest->special_inv_type == 10  }  
                                        <input type="hidden" id="aborhInvest" value="1" />
                                        <div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


                                            <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
                                                <span style="float: left;">
                                                    <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                </span>
                                            </label>


                                            <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

                                                <label class="col-md-2  control-label bold txtl" style=" font-size: 16px;">ABO System : </label>
                                                <div class="col-md-3">
                                                    <select class="form-control   cross_abo"  
                                                            id="aborh_abo"   >
                                                        <option value=""></option>
                                                        {foreach $cross_abo as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>

                                                <label class="col-md-2  control-label bold txtl" style=" font-size: 16px;margin-left: 2%;">Blood Rh : </label>



                                                <div class="col-md-4">
                                                    <select class="form-control   cross_rh"  
                                                            id="aborh_rh"   >
                                                        <option value=""></option>
                                                        {foreach $cross_rh as $data}
                                                        <option value="{$data->id}" >{$data->name}</option>
                                                        {/foreach}
                                                        <option value="0" class="deleteoptincompo">حذف</option>
                                                    </select>
                                                </div>
                                            </div>


                                            <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
                                                <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control  txtc" rows="2" 
                                                              placeholder="Enter more text" data-toggle="popover" 
                                                              data-trigger="hover" data-placement="bottom" data-content="">
                                                    </textarea>
                                                </div>
                                            </div>


                                        </div>
                                        {else}
                                        <table class="table table-striped table-hover table-bordered">
                                            <thead>
                                                <tr>
                                                    <th class="bold col-md-3"> <div align="center">Name </div></th>
                                                    <th class="bold col-md-3"> <div align="center">Result </div></th>
                                                    <th class="bold col-md-5"> <div align="center">Range </div></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <label class=" control-label bold txtl" style="margin-left: 4px;float: left;" >{$invest->name}
                                                            <span style="float: left;">
                                                                <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
                                                            </span>
                                                        </label>
                                                    </td>

                                                    <td>
                                                        <input type="text" class="form-control">
                                                    </td>

                                                    <td>
                                                        <select class="form-control select2" >
                                                            <option value=""></option>
                                                            {foreach  $invest->ranges as $rang}
                                                            <option value="{$rang->id}"  >{$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units} </option>
                                                            {/foreach}
                                                        </select>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        {/if}

                                    </td>
                                </tr>
                            </tbody>
                        </table>



                        <!--button type="button" class="btn green-haze printInvSample" data-id="{$invest->id}" 
                                style=" float: right;" > <i class="fa fa-print"></i>print</button-->
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="controllName" value="invsdept"/>
<div id="calculatorDiv"></div>



