<?php /* Smarty version Smarty-3.1.11, created on 2024-08-28 06:13:35
         compiled from "../views/obgy/antenalvisit/showInvestigation.html" */ ?>
<?php /*%%SmartyHeaderCode:100207025866cf227f54b880-98004097%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a2506763d616453c5a0fcc5419c63874f12e3a8' => 
    array (
      0 => '../views/obgy/antenalvisit/showInvestigation.html',
      1 => 1542464108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '100207025866cf227f54b880-98004097',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'archive' => 0,
    'dates' => 0,
    'inv' => 0,
    'countWife' => 0,
    'countHusband' => 0,
    'invest' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cf227f5d7df0_46627079',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cf227f5d7df0_46627079')) {function content_66cf227f5d7df0_46627079($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['archive']->value==1){?>
<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th class="bold col-md-1"> <div align="center">Date </div></th>
<th class="bold col-md-1"> <div align="center">For </div></th>
<th colspan="3" class="bold"> <div align="center">Investigations </div></th>
<th>Print</th>
<th>Delete</th>
</tr>
</thead>


<tbody>
    <?php  $_smarty_tpl->tpl_vars['inv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['inv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['inv']->key => $_smarty_tpl->tpl_vars['inv']->value){
$_smarty_tpl->tpl_vars['inv']->_loop = true;
?>
    <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>
    <tr>
        <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>  <td rowspan="2"> <?php }else{ ?> <td> <?php }?>
            <?php echo $_smarty_tpl->tpl_vars['inv']->value["date"];?>

        </td>
        <td>
            Wife
        </td>
        <td colspan="3">

            <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv']->value['investsw']; 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;
?>

            <div class="form-group " style=" width: 32%; float: left; ">
                <label class="col-md-8 control-label bold" style=" font-size: 16px; margin-left: 4px;"><?php echo $_smarty_tpl->tpl_vars['invest']->value->invname;?>
:</label>
                <label class="col-md-3 control-label" style=" font-size: 14px; "><?php echo $_smarty_tpl->tpl_vars['invest']->value->investresult;?>
</label>

            </div>
            <?php } ?>
        </td>
        <td><button type="button" class="btn green btn-block btn-xs printInv" data-for="wife"  data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
"  data-controller="antenalvisit">  Print  </button></td>
        <td>
            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="mainantenentalinvest">
                <i class="fa fa-close"></i>
            </a>
        </td>
    </tr>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>
    <tr>
        <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?><?php }else{ ?>  <td> <?php echo $_smarty_tpl->tpl_vars['inv']->value["date"];?>
</td><?php }?>
        <td>
            Husband
        </td>

        <td colspan="3">

            <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv']->value['investsh']; 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;
?>

            <div class="form-group " style=" width: 32%; float: left; ">
                <label class="col-md-8 control-label bold" style=" font-size: 16px; margin-left: 4px;"><?php echo $_smarty_tpl->tpl_vars['invest']->value->invname;?>
:</label>
                <label class="col-md-3 control-label" style=" font-size: 14px; "><?php echo $_smarty_tpl->tpl_vars['invest']->value->investresult;?>
</label>
            </div>
            <?php } ?>
        </td>
        <td><button type="button" class="btn green btn-block btn-xs printInv" data-for="husband"  data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
"  data-controller="antenalvisit">  Print  </button></td>
        <td>
            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="mainantenentalinvest">
                <i class="fa fa-close"></i>
            </a>
        </td>
    </tr>
    <?php }?>

    <?php } ?>
</tbody>

</table>

<?php }else{ ?>

<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th class="bold col-md-1"> <div align="center">Date </div></th>
<th class="bold col-md-1"> <div align="center">For </div></th>
<th colspan="3" class="bold"> <div align="center">Investigations </div></th>
<th>Print</th>
<th>Delete</th>
</tr>
</thead>


<tbody>
    <?php  $_smarty_tpl->tpl_vars['inv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['inv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['inv']->key => $_smarty_tpl->tpl_vars['inv']->value){
$_smarty_tpl->tpl_vars['inv']->_loop = true;
?>
    <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>
    <tr>
        <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>  <td rowspan="2"> <?php }else{ ?> <td> <?php }?>
            <?php echo $_smarty_tpl->tpl_vars['inv']->value["date"];?>

        </td>
        <td>
            Wife
        </td>
        <td colspan="3">

            <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv']->value['investsw']; 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;
?>

            <div class="form-group " style=" width: 32%; float: left; ">
                <label class="col-md-8 control-label bold txtl" style=" font-size: 16px; margin-left: 4px;"><?php echo $_smarty_tpl->tpl_vars['invest']->value->invname;?>
:</label>
                <div class="col-md-3">
                    <input type="text" class="form-control updateElement" data-colName="investresult" data-id="<?php echo $_smarty_tpl->tpl_vars['invest']->value->id;?>
"  data-tableName="mainantenentalinvest" value="<?php echo $_smarty_tpl->tpl_vars['invest']->value->investresult;?>
">

                </div>
            </div>
            <?php } ?>
        </td>
        <td><button type="button" class="btn green btn-block btn-xs printInv" data-for="wife"  data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
"  data-controller="antenalvisit">  Print  </button></td>
        <td>
            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="mainantenentalinvest">
                <i class="fa fa-close"></i>
            </a>
        </td>
    </tr>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?>
    <tr>
        <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['inv']->value["date"]]>0){?><?php }else{ ?>  <td> <?php echo $_smarty_tpl->tpl_vars['inv']->value["date"];?>
</td><?php }?>
        <td>
            Husband
        </td>

        <td colspan="3">

            <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv']->value['investsh']; 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;
?>

            <div class="form-group " style=" width: 32%; float: left; ">
                <label class="col-md-8 control-label bold txtl" style=" font-size: 16px; margin-left: 4px;"><?php echo $_smarty_tpl->tpl_vars['invest']->value->invname;?>
:</label>
                <div class="col-md-3">
                    <input type="text" class="form-control updateElement" data-colName="investresult" data-id="<?php echo $_smarty_tpl->tpl_vars['invest']->value->id;?>
"  data-tableName="mainantenentalinvest" value="<?php echo $_smarty_tpl->tpl_vars['invest']->value->investresult;?>
">

                </div>
            </div>
            <?php } ?>
        </td>
        <td><button type="button" class="btn green btn-block btn-xs printInv" data-for="husband"  data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
"  data-controller="antenalvisit">  Print  </button></td>
        <td>
            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['inv']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="mainantenentalinvest">
                <i class="fa fa-close"></i>
            </a>
        </td>
    </tr>
    <?php }?>

    <?php } ?>
</tbody>

</table>


<?php }?>



<!--
<script type="text/javascript" >
    $('#presTable').dataTable({"pageLength": 50,"order": [[0, "asc"]]});
</script>
--><?php }} ?>