<div class="card" style="margin-bottom: 1%;">
    <input type="hidden" id="cultureInvest" value="1" />
    <div class="card-header txtl">


        <div class="fright wds100">
            <table class="table" style="width: 100%">
                <tbody>
                    <tr>
                        <td rowspan="2">   
                            <span style="float: left;">
                                <input type="checkbox"  class="checkGroup" value="{$inv->id}" name="invCheck[]">
                            </span>

                            <a class="card-link fleft" data-toggle="collapse" href="#invDiv{$inv->id}">
                                {$inv->invname}
                            </a>

                            <div class="col-md-1  fright">
                                <a class="btn btn-xs  bg-green-haze  printResultsOne "  data-id="{$inv->id}"   
                                   href="javascript:;"   > <i class="fa fa-print"></i> 
                                </a>
                            </div>   

                            {if  $inv->hasPdf== 1 }
                            <div class="col-md-1  fright">
                                <a href="#"  class="btn green-jungle btn-xs"
                                   onclick="document.getElementById('invPdf_{$inv->id}').click(); return false;" >
                                    <i class="fa fa-upload"></i>  </a>
                                <input type="file" name="invPdf_{$inv->id}"  id="invPdf_{$inv->id}"  
                                       class=" form-control addInvPdf" data-id="{$inv->id}" style="visibility:hidden;"  >
                            </div>   

                            <div class="col-md-1  fright">
                                {if  $inv->pdf != ''  &&  $inv->pdf != '.'  &&  $inv->pdf != Null &&  $inv->pdf != 'no image'  }
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_{$patientNo}" 
                                   href="{$hosturl}/../upload/inv_pdf/{$patientNo}/{$inv->pdf}" id="pdfDownload{$inv->id}" >
                                    <i class="fa fa-download"></i>
                                </a>

                                {else}
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_{$patientNo}" 
                                   id="pdfDownload{$inv->id}" style="display: none;" >
                                    <i class="fa fa-download"></i>
                                </a>
                                {/if}
                                <img src="{$hosturl}/../upload/loading.gif" id="talks-loading{$inv->id}" style="display: none;">
                            </div>   
                            {/if}



                        </td>
                        <th class="wds5 txtc"> F </th>
                        <th class="wds5 txtc"> V </th>
                        <th class="wds5 txtc"> P </th>
                        <th class="wds5 txtc"> D </th>
                        <td class="wds5 txtc"> S </td>
                    </tr>


                    <tr>

                        <td>
                            {if  $inv->filled == 1 }
                            <i class="fa fa-check  invStatusChange"   data-colName="filled"  data-val="0" 
                               data-id="{$inv->id}"    id="invFilled{$inv->id}" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {else}
                            <i class="fa fa-times invStatusChange"   data-colName="filled"    data-val="1" 
                               data-id="{$inv->id}"    id="invFilled{$inv->id}" 
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {/if}
                        </td>

                        <td>
                            {if  $inv->verified == 1 }
                            <i class="fa fa-check invStatusChange"   data-colName="verified"   data-val="0"  
                               data-id="{$inv->id}" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {else}
                            <i class="fa fa-times invStatusChange"   data-colName="verified"    data-val="1" 
                               data-id="{$inv->id}"  
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {/if}
                        </td>

                        <td>
                            {if  $inv->printed == 1 }
                            <i class="fa fa-check invStatusChange"    data-colName="printed"    data-val="0"      id="invPrinted{$inv->id}" 
                               data-id="{$inv->id}" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {else}
                            <i class="fa fa-times invStatusChange"    data-colName="printed"    data-val="1"      id="invPrinted{$inv->id}" 
                               data-id="{$inv->id}"  
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {/if}
                        </td>

                        <td>
                            {if  $inv->delivered == 1 }
                            <i class="fa fa-check invReDeliver "     data-id="{$inv->id}"  data-paid="{$paid}"  data-val="1" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;"></i> 
                            {else}
                            <i class="fa fa-times invStatusChange"    data-colName="delivered"    data-val="1" 
                               data-id="{$inv->id}"  data-paid="{$paid}" 
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {/if}
                        </td>

                        <td>
                            {if  $inv->sent == 1 }
                            <i class="fa fa-check invStatusChange"  data-colName="sent"    data-val="0" 
                               data-id="{$inv->id}"    
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {else}
                            <i class="fa fa-times invStatusChange"    data-colName="sent"    data-val="1" 
                               data-id="{$inv->id}"  
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <div class="form-group collapse  " data-parent="#accordion" style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$inv->id}">
                                <div class="card-body">



                                    <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     select-colName="name"    select-tableName="culture_sample"     class="form-control updateInvest  culture_sample" 
                                                                            data-colName="sample"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_sample"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_sample as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.sample ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_organism_a"     class="form-control updateInvest  culture_organism_a" 
                                                                            data-colName="organism_a"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_organism_a"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_organism_a as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.organism_a ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_organism_b"     class="form-control updateInvest  culture_organism_b" 
                                                                            data-colName="organism_b"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_organism_b"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_organism_b as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.organism_b ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_organism_c"     class="form-control updateInvest  culture_organism_c" 
                                                                            data-colName="organism_c"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_organism_c"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_organism_c as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.organism_c ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_condition"     class="form-control updateInvest  culture_condition" 
                                                                            data-colName="condition"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_condition"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_condition as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.condition ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_condition1"     class="form-control updateInvest  culture_condition1" 
                                                                            data-colName="condition1"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_condition1"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_condition1 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.condition1 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="culture_colony_count"     class="form-control updateInvest  culture_colony_count" 
                                                                            data-colName="colony_count"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_colony_count"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_colony_count as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.colony_count ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_reaction"     class="form-control updateInvest  culture_reaction" 
                                                                            data-colName="reaction"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_reaction"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_reaction as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.reaction ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_pus"     class="form-control updateInvest  culture_pus" 
                                                                            data-colName="pus"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_pus"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_pus as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.pus ==    $data->id }selected{/if}>{$data->name}</option>
                                                                    {/foreach}
                                                                    <option value="-2" class="deleteoptincompo">حذف</option>
                                                                </select>
                                                            </div>
                                                            <div class="col-md-1">
                                                                - 
                                                            </div>

                                                            <div class="col-md-3">
                                                                <select     select-colName="name"    select-tableName="urine_pus2"     class="form-control updateInvest  culture_pus2" 
                                                                            data-colName="pus2"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_pus2"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_pus2 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.pus2 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_pbcs"     class="form-control updateInvest  culture_pbcs" 
                                                                            data-colName="pbcs"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_pbcs"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_pbcs as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.pbcs ==    $data->id }selected{/if}>{$data->name}</option>
                                                                    {/foreach}
                                                                    <option value="-2" class="deleteoptincompo">حذف</option>
                                                                </select>
                                                            </div>

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

                                                            <div class="col-md-3">
                                                                <select     select-colName="name"    select-tableName="urine_pbcs2"     class="form-control updateInvest  culture_pbcs2" 
                                                                            data-colName="pbcs2"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_pbcs2"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_pbcs2 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.pbcs2 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_epithelial"     class="form-control updateInvest  culture_epithelial" 
                                                                            data-colName="epithelial"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_epithelial"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_epithelial as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.epithelial ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_crystal"     class="form-control updateInvest  culture_crystal" 
                                                                            data-colName="crystal"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_crystal"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_crystal as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.crystal ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_fungi"     class="form-control updateInvest  culture_fungi" 
                                                                            data-colName="fungi"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_fungi"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_fungi as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.fungi ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_bacteria"     class="form-control updateInvest  culture_bacteria" 
                                                                            data-colName="bacteria"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_bacteria"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_bacteria as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.bacteria ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_other"     class="form-control updateInvest  culture_other" 
                                                                            data-colName="other"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_other"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_other as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.other ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_other1"     class="form-control updateInvest  culture_other1" 
                                                                            data-colName="other1"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_other1"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_other1 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.other1 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_other2"     class="form-control updateInvest  culture_other2" 
                                                                            data-colName="other2"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_other2"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_other2 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.other2 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_other3"     class="form-control updateInvest  culture_other3" 
                                                                            data-colName="other3"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_other3"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_other3 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.other3 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_other4"     class="form-control updateInvest  culture_other4" 
                                                                            data-colName="other4"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_other4"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_other4 as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.other4 ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_gram"     class="form-control updateInvest  culture_gram" 
                                                                            data-colName="gram"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_gram"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_gram as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.gram ==    $data->id }selected{/if}>{$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     select-colName="name"    select-tableName="urine_zn_film"     class="form-control updateInvest  culture_zn_film" 
                                                                            data-colName="zn_film"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_zn_film"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $urine_zn_film as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.zn_film ==    $data->id }selected{/if}>{$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 updateInvest txtc" rows="2" data-id="{$inv->culture.id}" data-colName="comment" 
                                                                  data-tableName="{$inv->tableName}" placeholder="Enter more text" data-toggle="popover" 
                                                                  data-trigger="hover" data-placement="bottom" data-content="{$inv->culture.comment}">
                                                            {$inv->culture.comment}
                                                        </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     select-colName="name"    select-tableName="culture_sensitivity_cat"     class="form-control updateInvest  culture_sensitivity_cat" 
                                                                            data-colName="sensitivity_cat"   data-id="{$inv->culture.id}"  data-tableName="{$inv->tableName}"
                                                                            id="culture_sensitivity_cat"  {if $archive == 1 } disabled="" {/if} >
                                                                    <option value=""></option>
                                                                    {foreach $culture_sensitivity_cat as $data}
                                                                    <option value="{$data->id}" {if $inv->culture.sensitivity_cat ==    $data->id }selected{/if}>{$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">
                                                                                        {assign var=i value=1}
                                                                                        {foreach $inv->culture.investigationresults_culture_hs as $data}
                                                                                        <tr>
                                                                                            <td> {$i} </td>
                                                                                            <td>{$data.abbr}</td>
                                                                                            <td>{$data.scientific_name}</td>
                                                                                            <td>
                                                                                                <input type="text"  class="form-control updateInvest  notPop   " data-colName="sensitive"     
                                                                                                       data-id="{$data.id}"  data-tableName="investigationresults_culture_hs" 
                                                                                                       value="{$data.sensitive}"  {if $archive == 1 } disabled="" {/if} >
                                                                                            </td>
                                                                                            <td>{$data.sensitivity}</td>
                                                                                            <td>
                                                                                                <a class=" btn-warning btn-xs wds3 deleteMAbbr "  href="javascript:;"  data-culture="{$inv->culture.id}"
                                                                                                   data-id="{$data.id}"  data-tableName="investigationresults_culture_hs"   >
                                                                                                    <i class="fa fa-close"></i> 
                                                                                                </a>
                                                                                            </td>
                                                                                        </tr>
                                                                                        {capture assign=i}{$i+1}{/capture}
                                                                                        {/foreach}
                                                                                    </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">
                                                                                        {assign var=i value=1}
                                                                                        {foreach $inv->culture.investigationresults_culture_ms as $data}
                                                                                        <tr>
                                                                                            <td> {$i} </td>
                                                                                            <td>{$data.abbr}</td>
                                                                                            <td>{$data.scientific_name}</td>
                                                                                            <td>
                                                                                                <input type="text"  class="form-control updateInvest  notPop   " data-colName="sensitive"     
                                                                                                       data-id="{$data.id}"  data-tableName="investigationresults_culture_ms" 
                                                                                                       value="{$data.sensitive}"  {if $archive == 1 } disabled="" {/if} >
                                                                                            </td>
                                                                                            <td>{$data.sensitivity}</td>
                                                                                            <td>
                                                                                                <a class=" btn-warning btn-xs wds3 deleteMAbbr "  href="javascript:;"  data-culture="{$inv->culture.id}"
                                                                                                   data-id="{$data.id}"  data-tableName="investigationresults_culture_ms"   >
                                                                                                    <i class="fa fa-close"></i> 
                                                                                                </a>
                                                                                            </td>
                                                                                        </tr>
                                                                                        {capture assign=i}{$i+1}{/capture}
                                                                                        {/foreach}
                                                                                    </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">
                                                                                        {assign var=i value=1}
                                                                                        {foreach $inv->culture.investigationresults_culture_ls as $data}
                                                                                        <tr>
                                                                                            <td> {$i} </td>
                                                                                            <td>{$data.abbr}</td>
                                                                                            <td>{$data.scientific_name}</td>
                                                                                            <td>
                                                                                                <input type="text"  class="form-control updateInvest  notPop   " data-colName="sensitive"     
                                                                                                       data-id="{$data.id}"  data-tableName="investigationresults_culture_ls" 
                                                                                                       value="{$data.sensitive}"  {if $archive == 1 } disabled="" {/if} >
                                                                                            </td>
                                                                                            <td>{$data.sensitivity}</td>
                                                                                            <td>
                                                                                                <a class=" btn-warning btn-xs wds3 deleteMAbbr "  href="javascript:;"  data-culture="{$inv->culture.id}"
                                                                                                   data-id="{$data.id}"  data-tableName="investigationresults_culture_ls"   >
                                                                                                    <i class="fa fa-close"></i> 
                                                                                                </a>
                                                                                            </td>
                                                                                        </tr>
                                                                                        {capture assign=i}{$i+1}{/capture}
                                                                                        {/foreach}
                                                                                    </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">
                                                                                        {assign var=i value=1}
                                                                                        {foreach $inv->culture.investigationresults_culture_rs as $data}
                                                                                        <tr>
                                                                                            <td> {$i} </td>
                                                                                            <td>{$data.abbr}</td>
                                                                                            <td>{$data.scientific_name}</td>
                                                                                            <td>
                                                                                                <input type="text"  class="form-control updateInvest  notPop   " data-colName="sensitive"     
                                                                                                       data-id="{$data.id}"  data-tableName="investigationresults_culture_rs" 
                                                                                                       value="{$data.sensitive}"  {if $archive == 1 } disabled="" {/if} >
                                                                                            </td>
                                                                                            <td>{$data.sensitivity}</td>
                                                                                            <td>
                                                                                                <a class=" btn-warning btn-xs wds3 deleteMAbbr "  href="javascript:;"  data-culture="{$inv->culture.id}"
                                                                                                   data-id="{$data.id}"  data-tableName="investigationresults_culture_rs"   >
                                                                                                    <i class="fa fa-close"></i> 
                                                                                                </a>
                                                                                            </td>
                                                                                        </tr>
                                                                                        {capture assign=i}{$i+1}{/capture}
                                                                                        {/foreach}
                                                                                    </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  notPop   "   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  notPop   "   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  notPop   "   id="sensitivity" >
                                                                </div>
                                                            </div>

                                                            <a class="btn btn-success btn-xs " id="AddAbbr"  href="javascript:;"  data-culture="{$inv->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="{$inv->culture.id}" >
                                                                                <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>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>


</div>