<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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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="-2" 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>