<?php /* Smarty version Smarty-3.1.11, created on 2024-11-27 11:56:52
         compiled from "../views/obgy/lab/invest_data.html" */ ?>
<?php /*%%SmartyHeaderCode:11581066676746ece4322b41-51307478%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9e89f39d484704bfe05ee2147001c52af06914d0' => 
    array (
      0 => '../views/obgy/lab/invest_data.html',
      1 => 1702412252,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11581066676746ece4322b41-51307478',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'today' => 0,
    'cats' => 0,
    'row' => 0,
    'invests' => 0,
    'programesetting' => 0,
    'showStart' => 0,
    'showAll' => 0,
    'branches' => 0,
    'data' => 0,
    'selectedBranch' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6746ece453b595_28502127',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6746ece453b595_28502127')) {function content_6746ece453b595_28502127($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Investigation Details 
                        </div>
                        <div class="actions">
                            <a class="btn yellow-gold  btn-xs" id="supplies" href="javascript:;" style=" float: left;"  >
                                Supplies
                            </a>

                            <a class="btn btn-default btn-xs" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=index" style=" float: right;"  >
                                <i class="fa fa-backward"></i> عرض الكل 
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>

                        <div class="form-body" style="margin: 1%;">
                            <div class="row">
                                <input type="hidden" id="controllName" value="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"/>
                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Date From</label>
                                        <input type="text" class="form-control datepicker "  style=" border: 1px solid #000000;"  
                                               readonly="readonly"  id="searchValue1"    value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                    </div>
                                </div>
                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Date To</label>
                                        <input type="text" class="form-control datepicker "  style=" border: 1px solid #000000;"   
                                               readonly="readonly" id="searchValue2"     value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                    </div>
                                </div>


                                <div class="col-md-3">
                                    <div class="form-group ">
                                        <label class="control-label ls2"> Test Category</label>
                                        <select  class="form-control   select2h"    id="invsCats" placeholder="اختر  "  >
                                            <option value=""> All </option>
                                            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-3">
                                    <div class="form-group " id="investsDiv">
                                        <label class="control-label ls2"> Tests</label>
                                        <select  class="form-control   select2h"    id="invests" placeholder="اختر  "  >
                                            <option value=""> All</option>
                                            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['invests']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div>

                                <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->branches==1){?> 
                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Branch</label>

                                        <select class="form-control select2h" id="branch_id">
                                            <?php if ($_smarty_tpl->tpl_vars['showStart']->value==1){?> <option value="-1">choose</option>  <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['showAll']->value==1){?> <option value="">All</option> <?php }?>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['branches']->value; 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;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['selectedBranch']->value==$_smarty_tpl->tpl_vars['data']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div>
                                <?php }else{ ?>
                                <input type="hidden"  id="branch_id"  value="1"> 
                                <?php }?>

                                <div class="col-md-2 wds14 " style="margin-top: 20px;">
                                    <a class="btn btn-primary btn-sm" id="searchInvData" >
                                        <i class="fa fa-search"></i>  </a>

                                    <a class="btn btn-default btn-sm" id="printInvData" >
                                        <i class="fa fa-print"></i>  </a>
                                </div>


                            </div>
                            <div class="row" id="resultTableDiv">

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

</div>



<div id="invStatusDiv"></div>
<div id="printDiv"></div>
<div id="suppliesDiv"></div>
<div id="suppliesByCatDiv"></div>






<?php }} ?>