<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 10:26:51
         compiled from "../views/obgy/lab/result_invests.html" */ ?>
<?php /*%%SmartyHeaderCode:3048039966b9b93b4f71e4-91613141%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8b7f1c2097df30515fe90934eef5bc56aa207986' => 
    array (
      0 => '../views/obgy/lab/result_invests.html',
      1 => 1626503400,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3048039966b9b93b4f71e4-91613141',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rescount' => 0,
    'res2count' => 0,
    'res3count' => 0,
    'res6count' => 0,
    'res4count' => 0,
    'res5count' => 0,
    'res9count' => 0,
    'hosturl' => 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_66b9b93b64a075_62329012',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9b93b64a075_62329012')) {function content_66b9b93b64a075_62329012($_smarty_tpl) {?>
<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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </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>
                <td class="wds29">
                    <?php echo $_smarty_tpl->tpl_vars['single']->value['visitDate'];?>

                </td>
            </tr> 

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


<?php }} ?>