<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 08:48:16
         compiled from "../views/obgy/lab/show.html" */ ?>
<?php /*%%SmartyHeaderCode:153846554666b9a22058ca68-96300851%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '389cc4dcd49a4c375f89f0b97b43e1865251c312' => 
    array (
      0 => '../views/obgy/lab/show.html',
      1 => 1711842176,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '153846554666b9a22058ca68-96300851',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'programesetting' => 0,
    'showStart' => 0,
    'showAll' => 0,
    'branches' => 0,
    'data' => 0,
    'selectedBranch' => 0,
    'invests' => 0,
    'invest' => 0,
    'rescount' => 0,
    'res2count' => 0,
    'res3count' => 0,
    'res6count' => 0,
    'res4count' => 0,
    'res5count' => 0,
    'res9count' => 0,
    'requests_all' => 0,
    'single' => 0,
    'requests_2' => 0,
    'requests_3' => 0,
    'requests_6' => 0,
    'requests_4' => 0,
    'requests_5' => 0,
    'requests_9' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9a2206d4c51_77757668',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9a2206d4c51_77757668')) {function content_66b9a2206d4c51_77757668($_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> Lab Requests
                        </div>
                        <div class="actions">
                            <a class="btn yellow-gold btn-xs" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=invsData" style=" float: left;"  >
                                Investigation Details 
                            </a>
                            <a class="btn btn-success btn-xs" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/visits.php?ac=lab_visit" style=" float: left;"  >
                                new Visit
                            </a>
                            <!--a class="btn red-soft btn-xs" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php" style=" float: left;"  >
                                <i class="fa fa-pencil"></i> new Patient
                            </a-->
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>

                        <div class="form-body">
                            <div class="row">
                                <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" data-type="invests" data-type1="lab" 
                                               data-status="0"   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" data-type="invests" data-type1="lab"  data-status="0" 
                                               value=""/>
                                    </div>
                                </div>

                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2">Sample Id .</label>
                                        <input type="text"  id="sampleIdShow"
                                               class="form-control  txtc  positiveNo " >
                                    </div>
                                </div>

                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2">Pat Id .</label>
                                        <input type="text"  id="patIdShow"
                                               class="form-control  txtc  positiveNo " >
                                    </div>
                                </div>

                                <div class="col-md-2 wds11">
                                    <div class="form-group">
                                        <label class="control-label ls2">Pat Mobile.</label>
                                        <input type="text"   id="patMobileShow"
                                               class="form-control  txtc  positiveNo " >
                                    </div>
                                </div>



                                <div class="col-md-2 wds11">
                                    <div class="form-group">
                                        <label class="control-label ls2">Patient No</label>
                                        <input type="text"  id="statusNoRemote"  
                                               class="form-control  txtc searchPatRemote positiveNo "  data-alert="no"  >
                                    </div>
                                </div>


                                <div class="col-md-5 wds25">
                                    <div class="form-group">
                                        <label class="control-label ls2">Patient Name</label>
                                        <input type="hidden" class="form-control"    id="patientIdRemote" 
                                               data-type="invests" data-type1="lab" >
                                    </div>
                                </div>


                                <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->branches!=1){?>
                                <input type="hidden"  id="branch_id"  name="branch_id"  value="1"> 
                                <?php }else{ ?>
                                <div class="col-md-2 wds14">
                                    <div class="form-group form-md-line-input has-success">
                                        <select class="form-control select2h" id="branch_id"  name="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>
                                        <label for="branch_id">Branch </label>
                                    </div>
                                </div>
                                <?php }?> 
                                
                                                                <div class="col-md-5 wds25">
                                    <div class="form-group">
                                        <label class="control-label ls2">Tests</label>
                                        <select class="form-control select2h" id="testId"  name="testId" >
                                            <option value=""></option>
                                                <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_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['invest']->key => $_smarty_tpl->tpl_vars['invest']->value){
$_smarty_tpl->tpl_vars['invest']->_loop = true;
?>
                                            <?php if (!empty($_smarty_tpl->tpl_vars['invest']->value['name'])){?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['invest']->value['id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['invest']->value['name'];?>
</option>
                                             <?php }?>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-5 wds25">
                                    <label class="control-label ls2">Status </label>
                                    <select class="form-control select2h" id="testStatus"  name="testStatus" >
                                        <option value="1" selected >Unfinished</option>
                                        <option value="2">Finished</option>
                                        <option value="">All</option>
                                    </select>
                                </div>

                                <div class="col-md-1">
                                    <a class="btn btn-primary btn-sm"   id="searchRecords" 
                                       style="    margin-top: 21px;" data-type="invests" data-type1="lab"  data-status="0" >
                                        <i class="fa fa-search"></i> Search </a>
                                </div>

                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <span id="oldSearchError" 
                                          style="color: red ; float: right; direction: rtl;padding-right: 15px;display: none;font-weight: bold"
                                          >حدد بيانات للبحث أولا ...............................</span>
                                </div>
                            </div>
                            <div class="row" >


                                <div class="col-md-8" id="invStatusDiv"> </div>

                                <div class="col-md-4" id="resultTableDiv">
                                    <table class="table table-striped table-hover table-bordered rtl" style=" width: 98%;margin-bottom: 2px;">
                                        <thead>
                                            <tr>
                                                <th colspan="6">     عدد المرضى          </th>
                                            </tr>
                                            <tr style="    background-color: yellow;">
                                                <td class="col-md-2 wds15"><?php echo $_smarty_tpl->tpl_vars['rescount']->value;?>
</td>
                                                <td class="col-md-2 wds14"><?php echo $_smarty_tpl->tpl_vars['res2count']->value;?>
</td>
                                                <td class="col-md-2 wds15"><?php echo $_smarty_tpl->tpl_vars['res3count']->value;?>
</td>
                                                <td class="col-md-2 wds14"><?php echo $_smarty_tpl->tpl_vars['res6count']->value;?>
</td>
                                                <td class="col-md-2 wds14"><?php echo $_smarty_tpl->tpl_vars['res4count']->value;?>
</td>
                                                <td class="col-md-2 wds14"><?php echo $_smarty_tpl->tpl_vars['res5count']->value;?>
</td>
                                                <td class="col-md-2 wds14"><?php echo $_smarty_tpl->tpl_vars['res9count']->value;?>
</td>
                                            </tr>
                                            <tr>
                                                <th class="col-md-2 wds15  searchRecords2"   data-cat ="1"
                                                    style="background-color: white;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/all.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                                <th class="col-md-2 wds14  searchRecords2"   data-cat ="2"
                                                    style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/new2.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                                <th class="col-md-2 wds15  searchRecords2"   data-cat ="3"
                                                    style="background-color: white;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/inProgress.jpeg" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                                <th class="col-md-2 wds14  searchRecords2"   data-cat ="6"
                                                    style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/sand_clock.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                                <th class="col-md-2  wds14 searchRecords2"   data-cat ="4"
                                                    style="background-color: white;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/printed.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                                <th class="col-md-2  wds14  searchRecords2"   data-cat ="5"
                                                    style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/verified-symbol.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>

                                                <th class="col-md-2  wds14  searchRecords2"   data-cat ="9"
                                                    style="background-color: white;" data-type="invests" data-type1="lab" >
                                                    <img alt="" class="img-circle" 
                                                         src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/s-icon.png" 
                                                         style="height: 30px;border-radius: 0%;width: 50%;"/>
                                                </th>
                                            </tr>
                                        </thead>
                                    </table>

                                    <div style="overflow-y:  auto; max-height: 550px;" id='result_1'>
                                        <table class="table table-striped table-hover table-bordered rtl" style=" width: 98%;" >
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_all']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class="invStatus"   id="invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>
                                                </tr> 
                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_2'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;" >
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_2']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_3'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;" '>
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_3']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_6'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;" '>
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_6']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>


                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_4'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;">
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_4']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_5'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;" >
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_5']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_9'>
                                        <table class="table table-striped table-hover table-bordered rtl" 
                                               style=" width: 98%;" >
                                            <tbody>

                                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['requests_9']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                <tr>
                                                    <td>
                                                        <a class=" invStatus"   id=" invStatus<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" href="javascript:;" style=" float: right;"  data-visitid="<?php echo $_smarty_tpl->tpl_vars['single']->value['visitid'];?>
" >
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['husbandName'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['single']->value['for_husband']==2){?>

                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_name']!=''&&$_smarty_tpl->tpl_vars['single']->value['child_name']!=null){?> 
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['child_name'];?>
  /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }else{ ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['single']->value['child_gender']==1){?> طفل <?php }else{ ?> طفلة  <?php }?>     /  <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?> 

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['single']->value['wifeName'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td class="wds10">
                                                        <img alt="" class="img-circle" 
                                                             src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/inv_status/<?php echo $_smarty_tpl->tpl_vars['single']->value['statusImg'];?>
" 
                                                             style="height: 30px;border-radius: 0%;width: 100%;"/>
                                                    </td>

                                                </tr> 

                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>



                                </div>
                            </div>


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

</div>












<?php }} ?>