<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 14:23:50
         compiled from "../views/obgy/lab/labs/labs_11.html" */ ?>
<?php /*%%SmartyHeaderCode:111053026766b9f0c665fbd3-45810710%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b3c76cead5bd82799989466e44afd7380a34d8fd' => 
    array (
      0 => '../views/obgy/lab/labs/labs_11.html',
      1 => 1714872703,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '111053026766b9f0c665fbd3-45810710',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'inv' => 0,
    'patientNo' => 0,
    'hosturl' => 0,
    'paid' => 0,
    'data' => 0,
    'custom_select' => 0,
    'one' => 0,
    'rang' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9f0c67e78a8_08805813',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9f0c67e78a8_08805813')) {function content_66b9f0c67e78a8_08805813($_smarty_tpl) {?><div class="card" style="margin-bottom: 1%;">
    <input type="hidden" id="customInvest" 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="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" name="invCheck[]">
                            </span>

                            <a class="card-link fleft" data-toggle="collapse" href="#invDiv<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
">
                                <?php echo $_smarty_tpl->tpl_vars['inv']->value->invname;?>

                            </a>




                            <div class="col-md-1  fright">
                                <a class="btn btn-xs  bg-green-haze  printResultsOne "  data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"   
                                   href="javascript:;"   > <i class="fa fa-print"></i> 
                                </a>
                            </div>   

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


                                <?php if ($_smarty_tpl->tpl_vars['inv']->value->pdf!=''&&$_smarty_tpl->tpl_vars['inv']->value->pdf!='.'&&$_smarty_tpl->tpl_vars['inv']->value->pdf!=null&&$_smarty_tpl->tpl_vars['inv']->value->pdf!='no image'){?>
                                <a class=" btn  btn-xs blue" download="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invname;?>
_1_<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
"
                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_pdf/<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['inv']->value->pdf;?>
" id="pdf1Download<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" >
                                    <i class="fa fa-download"></i> 1
                                </a>

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

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

                                <?php if ($_smarty_tpl->tpl_vars['inv']->value->pdf2!=''&&$_smarty_tpl->tpl_vars['inv']->value->pdf2!='.'&&$_smarty_tpl->tpl_vars['inv']->value->pdf2!=null&&$_smarty_tpl->tpl_vars['inv']->value->pdf2!='no image'){?>
                                <a class=" btn  btn-xs blue" download="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invname;?>
_2_<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
"
                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_pdf/<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['inv']->value->pdf2;?>
" id="pdf2Download<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" >
                                    <i class="fa fa-download"></i> 2
                                </a>

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

                                <?php if ($_smarty_tpl->tpl_vars['inv']->value->pdf3!=''&&$_smarty_tpl->tpl_vars['inv']->value->pdf3!='.'&&$_smarty_tpl->tpl_vars['inv']->value->pdf3!=null&&$_smarty_tpl->tpl_vars['inv']->value->pdf3!='no image'){?>
                                <a class=" btn  btn-xs blue" download="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invname;?>
_3_<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
"
                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_pdf/<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['inv']->value->pdf3;?>
" id="pdf3Download<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" >
                                    <i class="fa fa-download"></i> 3
                                </a>

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

                                <?php if ($_smarty_tpl->tpl_vars['inv']->value->pdf4!=''&&$_smarty_tpl->tpl_vars['inv']->value->pdf4!='.'&&$_smarty_tpl->tpl_vars['inv']->value->pdf4!=null&&$_smarty_tpl->tpl_vars['inv']->value->pdf4!='no image'){?>
                                <a class=" btn  btn-xs blue" download="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invname;?>
_4_<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
"
                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_pdf/<?php echo $_smarty_tpl->tpl_vars['patientNo']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['inv']->value->pdf4;?>
" id="pdf4Download<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" >
                                    <i class="fa fa-download"></i> 4
                                </a>

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

                            <?php }?>

                            <?php }?>

                            <?php }?>

                            <?php }?>

                            <div class="col-md-2 filledName mL5 fright" >   (By :   <?php echo $_smarty_tpl->tpl_vars['inv']->value->filledName;?>
  ) </div>    
                            <div class="col-md-2 sampleNo mL5 fright" >   (Sample No :   <?php echo $_smarty_tpl->tpl_vars['inv']->value->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>
                            <?php if ($_smarty_tpl->tpl_vars['inv']->value->filled==1){?>
                            <i class="fa fa-check  invStatusChange"   data-colName="filled"  data-val="0" 
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"    id="invFilled<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }else{ ?>
                            <i class="fa fa-times invStatusChange"   data-colName="filled"    data-val="1" 
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"    id="invFilled<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" 
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }?>
                        </td>

                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['inv']->value->verified==1){?>
                            <i class="fa fa-check invStatusChange"   data-colName="verified"   data-val="0"  
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" 
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }else{ ?>
                            <i class="fa fa-times invStatusChange"   data-colName="verified"    data-val="1" 
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"  
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }?>
                        </td>

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

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

                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['inv']->value->sent==1){?>
                            <i class="fa fa-check invStatusChange"  data-colName="sent"    data-val="0" 
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"    
                               style="color: #119866;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }else{ ?>
                            <i class="fa fa-times invStatusChange"    data-colName="sent"    data-val="1" 
                               data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
"  
                               style="color: red;font-size: 20px;margin-top: 5%;margin-bottom: 10%;"></i> 
                            <?php }?>
                        </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<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
">
                                <div class="card-body">

                                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv']->value->elements; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>

                                    <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;"><?php echo $_smarty_tpl->tpl_vars['data']->value->show_name;?>
  : </label>


                                        <div class="col-md-4">
                                            <select     select-colName="name"    select-tableName="custom_select"     
                                                        class="form-control updateInvest  custom_select select2h"  
                                                        data-colName="element_select"   data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->content->id;?>
" 
                                                        data-tableName="<?php echo $_smarty_tpl->tpl_vars['inv']->value->tableName;?>
"
                                                        id="custom_select<?php echo $_smarty_tpl->tpl_vars['data']->value->content->id;?>
"  >
                                                <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['custom_select']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['data']->value->content->element_select==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                <?php } ?>
                                                <option value="-2" class="deleteoptincompo">حذف</option>
                                            </select>
                                        </div>

                                        <div class="col-md-2">
                                            <input type="text"  class="form-control updateInvest    notPop    " 
                                                   data-colName="element_text"     data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->content->id;?>
"  
                                                   data-tableName="<?php echo $_smarty_tpl->tpl_vars['inv']->value->tableName;?>
" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->content->element_text;?>
" >
                                        </div>

                                        <div class="col-md-4">
                                            <select        class="form-control select2h updateInvest custom" data-colName="element_text_rangeid" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->content->id;?>
"  data-tableName="<?php echo $_smarty_tpl->tpl_vars['inv']->value->tableName;?>
"   data-target="hgb"   
                                                           id="element_text_rangeid" >
                                                <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['rang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value->element_text_ranges; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rang']->key => $_smarty_tpl->tpl_vars['rang']->value){
$_smarty_tpl->tpl_vars['rang']->_loop = true;
?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['rang']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['rang']->value->id==$_smarty_tpl->tpl_vars['data']->value->content->element_text_rangeid){?> selected <?php }?> > <?php echo $_smarty_tpl->tpl_vars['rang']->value->range_txt;?>
  <?php echo $_smarty_tpl->tpl_vars['rang']->value->range_low;?>
 - <?php echo $_smarty_tpl->tpl_vars['rang']->value->range_high;?>
   <?php echo $_smarty_tpl->tpl_vars['rang']->value->invest_units;?>
</option>
                                                <?php } ?>
                                            </select>
                                        </div>
                                    </div>

                                    <?php } ?>

                                    <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   notPop   " rows="2" 
                                                      data-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->id;?>
" data-colName="comment" 
                                                      data-tableName="investigationresults" placeholder="Enter more text" >
                                                <?php echo $_smarty_tpl->tpl_vars['inv']->value->comment;?>

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

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

</div><?php }} ?>