<div class="card" style="margin-bottom: 1%;">
    <input type="hidden" id="stoolInvest" 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->pdfNos > 0  }
                            <div class="col-md-1 wds5  fright">
                                <a href="#"  class="btn green-jungle btn-xs"
                                   onclick="document.getElementById('invPdf1_{$inv->id}').click(); return false;" >
                                    <i class="fa fa-upload"></i> 1   </a>
                                <input type="file" name="invPdf1_{$inv->id}"  id="invPdf1_{$inv->id}"
                                       class=" form-control addInvPdf" data-id="{$inv->id}" data-no="1" style="visibility:hidden;height: 9px;"  >


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

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

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

                                {if  $inv->pdf2 != ''  &&  $inv->pdf2 != '.'  &&  $inv->pdf2 != Null &&  $inv->pdf2 != 'no image'  }
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_2_{$patientNo}"
                                   href="{$hosturl}/../upload/inv_pdf/{$patientNo}/{$inv->pdf2}" id="pdf2Download{$inv->id}" >
                                    <i class="fa fa-download"></i> 2
                                </a>

                                {else}
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_2_{$patientNo}"
                                   id="pdf2Download{$inv->id}" style="display: none;" >
                                    <i class="fa fa-download"></i> 2
                                </a>
                                {/if}
                                <img src="{$hosturl}/../upload/loading.gif" id="talks-loading{$inv->id}_2" style="display: none;">
                            </div>
                            {if  $inv->pdfNos > 2  }
                            <div class="col-md-1 wds5   fright">
                                <a href="#"  class="btn green-jungle btn-xs"
                                   onclick="document.getElementById('invPdf3_{$inv->id}').click(); return false;" >
                                    <i class="fa fa-upload"></i>  3 </a>
                                <input type="file" name="invPdf3_{$inv->id}"  id="invPdf3_{$inv->id}"
                                       class=" form-control addInvPdf" data-id="{$inv->id}" data-no="3" style="visibility:hidden;height: 9px;"  >

                                {if  $inv->pdf3 != ''  &&  $inv->pdf3 != '.'  &&  $inv->pdf3 != Null &&  $inv->pdf3 != 'no image'  }
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_3_{$patientNo}"
                                   href="{$hosturl}/../upload/inv_pdf/{$patientNo}/{$inv->pdf3}" id="pdf3Download{$inv->id}" >
                                    <i class="fa fa-download"></i> 3
                                </a>

                                {else}
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_3_{$patientNo}"
                                   id="pdf3Download{$inv->id}" style="display: none;" >
                                    <i class="fa fa-download"></i> 3
                                </a>
                                {/if}
                                <img src="{$hosturl}/../upload/loading.gif" id="talks-loading{$inv->id}_3" style="display: none;">
                            </div>
                            {if  $inv->pdfNos > 3  }
                            <div class="col-md-1 wds5  fright">
                                <a href="#"  class="btn green-jungle btn-xs"
                                   onclick="document.getElementById('invPdf4_{$inv->id}').click(); return false;" >
                                    <i class="fa fa-upload"></i>  4 </a>
                                <input type="file" name="invPdf4_{$inv->id}"  id="invPdf4_{$inv->id}"
                                       class=" form-control addInvPdf" data-id="{$inv->id}" data-no="4" style="visibility:hidden;height: 9px;"  >

                                {if  $inv->pdf4 != ''  &&  $inv->pdf4 != '.'  &&  $inv->pdf4 != Null &&  $inv->pdf4 != 'no image'  }
                                <a class=" btn  btn-xs blue" download="{$inv->invname}_4_{$patientNo}"
                                   href="{$hosturl}/../upload/inv_pdf/{$patientNo}/{$inv->pdf4}" id="pdf4Download{$inv->id}" >
                                    <i class="fa fa-download"></i> 4
                                </a>

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

                            {/if}

                            {/if}

                            {/if}

                            {/if}

                            <div class="col-md-2 filledName mL5 fright" >   (By :   {$inv->filledName}  ) </div>    
                            <div class="col-md-2 sampleNo mL5 fright" >   (Sample No :   {$inv->sampleNo}  ) </div>  

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

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Color:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_color"     class="form-control updateInvest  stool_color" 
                                                     data-colName="color"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_color"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_color as $data}
                                                <option value="{$data->id}" {if $inv->stool->color ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Consistency:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_consistency"     class="form-control updateInvest  stool_consistency" 
                                                     data-colName="consistency"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_consistency"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_consistency as $data}
                                                <option value="{$data->id}" {if $inv->stool->consistency ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Reaction:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_reaction"     class="form-control updateInvest  stool_reaction" 
                                                     data-colName="reaction"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_reaction"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_reaction as $data}
                                                <option value="{$data->id}" {if $inv->stool->reaction ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Food Particles:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_food"     class="form-control updateInvest  stool_food" 
                                                     data-colName="food"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_food"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_food as $data}
                                                <option value="{$data->id}" {if $inv->stool->food ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Odor:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_odor"     class="form-control updateInvest  stool_odor" 
                                                     data-colName="odor"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_odor"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_odor as $data}
                                                <option value="{$data->id}" {if $inv->stool->odor ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Blood:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_blood"     class="form-control updateInvest  stool_blood" 
                                                     data-colName="blood"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_blood"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_blood as $data}
                                                <option value="{$data->id}" {if $inv->stool->blood ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Mucus :</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_mucus"     class="form-control updateInvest  stool_mucus" 
                                                     data-colName="mucus"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_mucus"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_mucus as $data}
                                                <option value="{$data->id}" {if $inv->stool->mucus ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

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

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">WBCs:</label>
                                        <div class="col-md-2 wds23">
                                            <input type="text"  data-colName="wbc"  class="form-control  notPop    updateInvest positivefloat   " 
                                                   value="{$inv->stool->wbc}" data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}" 
                                                   id="stool_wbc"  {if $archive == 1 } disabled="" {/if} >
                                        </div>
                                        <div class="col-md-2 wds4">
                                            - 
                                        </div>

                                        <div class="col-md-2 wds23">
                                            <input type="text"  data-colName="wbc2"  class="form-control  notPop    updateInvest positivefloat   " 
                                                   value="{$inv->stool->wbc2}" data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}" 
                                                   id="stool_wbc2"  {if $archive == 1 } disabled="" {/if} >         
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Proglottids:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_prog"     class="form-control updateInvest  stool_prog" 
                                                     data-colName="prog"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_prog"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_prog as $data}
                                                <option value="{$data->id}" {if $inv->stool->prog ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">RBCs:</label>
                                        <div class="col-md-2 wds23">
                                            <input type="text"  data-colName="rbc"  class="form-control  notPop    updateInvest positivefloat   " 
                                                   value="{$inv->stool->rbc}" data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}" 
                                                   id="stool_rbc"  {if $archive == 1 } disabled="" {/if} >

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

                                        <div class="col-md-2 wds23">
                                            <input type="text"  data-colName="rbc2"  class="form-control  notPop    updateInvest positivefloat   " 
                                                   value="{$inv->stool->rbc2}" data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}" 
                                                   id="stool_rbc2"  {if $archive == 1 } disabled="" {/if} >
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_prog2"     class="form-control updateInvest  stool_prog2" 
                                                     data-colName="prog2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_prog2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_prog2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->prog2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Trophozoite:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_trophozoite"     class="form-control updateInvest  stool_trophozoite" 
                                                     data-colName="trophozoite"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_trophozoite"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_trophozoite as $data}
                                                <option value="{$data->id}" {if $inv->stool->trophozoite ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>

                                        <div class="col-md-2" style="float: right;">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_trophozoite2"     class="form-control updateInvest  stool_trophozoite2" 
                                                     data-colName="trophozoite2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_trophozoite2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_trophozoite2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->trophozoite2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>


                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Flagellates:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_flagellates"     class="form-control updateInvest  stool_flagellates" 
                                                     data-colName="flagellates"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_flagellates"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_flagellates as $data}
                                                <option value="{$data->id}" {if $inv->stool->flagellates ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_trophozoite3"     class="form-control updateInvest  stool_trophozoite3" 
                                                     data-colName="trophozoite3"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_trophozoite3"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_trophozoite3 as $data}
                                                <option value="{$data->id}" {if $inv->stool->trophozoite3 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_flagellates2"     class="form-control updateInvest  stool_flagellates2" 
                                                     data-colName="flagellates2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_flagellates2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_flagellates2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->flagellates2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Cysts:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_cysts"     class="form-control updateInvest  stool_cysts" 
                                                     data-colName="cysts"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_cysts"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_cysts as $data}
                                                <option value="{$data->id}" {if $inv->stool->cysts ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Ciliate:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_ciliate"     class="form-control updateInvest  stool_ciliate" 
                                                     data-colName="ciliate"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_ciliate"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_ciliate as $data}
                                                <option value="{$data->id}" {if $inv->stool->ciliate ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_cysts2"     class="form-control updateInvest  stool_cysts2" 
                                                     data-colName="cysts2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_cysts2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_cysts2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->cysts2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Undigested Food:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_undigested"     class="form-control updateInvest  stool_undigested" 
                                                     data-colName="undigested"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_undigested"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_undigested as $data}
                                                <option value="{$data->id}" {if $inv->stool->undigested ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>

                                        <div class="col-md-2" style="float: right;">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_undigested2"     class="form-control updateInvest  stool_undigested2" 
                                                     data-colName="undigested2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_undigested2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_undigested2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->undigested2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>


                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Ova:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_ova"     class="form-control updateInvest  stool_ova" 
                                                     data-colName="ova"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_ova"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_ova as $data}
                                                <option value="{$data->id}" {if $inv->stool->ova ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_undigested3"     class="form-control updateInvest  stool_undigested3" 
                                                     data-colName="undigested3"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_undigested3"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_undigested3 as $data}
                                                <option value="{$data->id}" {if $inv->stool->undigested3 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_ova2"     class="form-control updateInvest  stool_ova2" 
                                                     data-colName="ova2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_ova2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_ova2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->ova2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_undigested4"     class="form-control updateInvest  stool_undigested4" 
                                                     data-colName="undigested4"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_undigested4"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_undigested4 as $data}
                                                <option value="{$data->id}" {if $inv->stool->undigested4 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Larva:</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_larva"     class="form-control updateInvest  stool_larva" 
                                                     data-colName="larva"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_larva"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_larva as $data}
                                                <option value="{$data->id}" {if $inv->stool->larva ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;">Parasitology Artifacts: :</label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_parasitology"     class="form-control updateInvest  stool_parasitology" 
                                                     data-colName="parasitology"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_parasitology"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_parasitology as $data}
                                                <option value="{$data->id}" {if $inv->stool->parasitology ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_larva2"     class="form-control updateInvest  stool_larva2" 
                                                     data-colName="larva2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_larva2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_larva2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->larva2 ==    $data->id }selected{/if}>{$data->name}</option>
                                                {/foreach}
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-6 " style=" float: left; ">
                                        <label class="col-md-4 control-label bold txtl" style=" font-size: 16px;"></label>
                                        <div class="col-md-6">
                                            <select  select-default="1"    select-colName="name"    select-tableName="stool_parasitology2"     class="form-control updateInvest  stool_parasitology2" 
                                                     data-colName="parasitology2"   data-id="{$inv->stool->id}"  data-tableName="{$inv->tableName}"
                                                     id="stool_parasitology2"  {if $archive == 1 } disabled="" {/if} >
                                                     <option value=""></option>
                                                {foreach $stool_parasitology2 as $data}
                                                <option value="{$data->id}" {if $inv->stool->parasitology2 ==    $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-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
                                        <div class="col-md-10">
                                            <textarea class="form-control updateInvest txtc notPop" rows="2" data-id="{$inv->stool->id}" data-colName="comment" 
                                                      data-tableName="{$inv->tableName}" placeholder="Enter more text" >
                                                {$inv->stool->comment}
                                            </textarea>
                                        </div>
                                    </div>




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


</div>