<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 12:11:58
         compiled from "../views/obgy/gyna/showPrescriptions.html" */ ?>
<?php /*%%SmartyHeaderCode:15853282365fffc6ede82f9-23428495%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ccfc16a8f479358bd2db1339114b0dd78d7772bb' => 
    array (
      0 => '../views/obgy/gyna/showPrescriptions.html',
      1 => 1647616216,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15853282365fffc6ede82f9-23428495',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'dates' => 0,
    'date' => 0,
    'countWife' => 0,
    'i' => 0,
    'hosturl' => 0,
    'countHusband' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fffc6ee932c9_84365097',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fffc6ee932c9_84365097')) {function content_65fffc6ee932c9_84365097($_smarty_tpl) {?>
<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"> <div align="center">Drugs </div></th>
        </tr>
    </thead>


    <tbody>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['date'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['date']->_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['date']->key => $_smarty_tpl->tpl_vars['date']->value){
$_smarty_tpl->tpl_vars['date']->_loop = true;
?>
        <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['date']->value["date"];?>
</td>
            <td>
                <table class="table table-striped table-hover table-bordered">
                    <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?>
                    <tr>
                        <td class="bold col-md-1">
                            Wife
                        </td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['date']->value["drugdos"];?>

                        </td>

                        <td class="col-md-1">
                            <a href="#"  class="btn green btn-block btn-xs editPre" data-for="0"  data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Edit </a>
                        </td>
                        <td class="col-md-1">
                            <a href="#"  class="btn green btn-block btn-xs printPre" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Print </a>
                        </td>
                        <td class="col-md-1">
                            <a href="#"  class="btn green-haze btn-block btn-xs sendPre" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Send</a>
                            <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/loading.gif" id="sendLoading0<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;">
                            <i class="fa fa-check green" id="sendDone0<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;color: green;font-size: large; "></i>
                            <i class="fa fa-exclamation-triangle red" id="sendError0<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;color: red;font-size: large; "></i>
                        </td>
                        <td class="col-md-1">
                            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="gynadrugs">
                                <i class="fa fa-close"></i>
                            </a>
                        </td>

                    </tr>
                    <?php }?>
                    <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?>
                    <tr>
                        <td class="bold col-md-1">
                            Husband
                        </td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['date']->value["drugtype"];?>

                        </td>

                        <td class="col-md-1"> 
                            <a href="#"  class="btn green btn-block btn-xs editPre" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Edit </a>
                        </td>
                        <td class="col-md-1">
                            <a href="#"  class="btn green btn-block btn-xs printPre" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Print </a>
                        </td>
                        <td class="col-md-1">
                            <a href="#"  class="btn green-haze btn-block btn-xs sendPre" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Send</a>
                            <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/loading.gif" id="sendLoading1<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;">
                            <i class="fa fa-check green" id="sendDone1<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;color: green;font-size: large; "></i>
                            <i class="fa fa-exclamation-triangle red" id="sendError1<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="display: none;color: red;font-size: large; "></i>
                        </td>
                        <td class="col-md-1">
                            <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="gynadrugs">
                                <i class="fa fa-close"></i>
                            </a>
                        </td>

                    </tr>
                    <?php }?>
                </table>
            </td>
        </tr>
        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
        <?php } ?>
    </tbody>

</table><?php }} ?>