<?php /* Smarty version Smarty-3.1.11, created on 2025-04-30 00:53:40
         compiled from "../views/obgy/visits/visitold.html" */ ?>
<?php /*%%SmartyHeaderCode:111714769268114a642fd856-25574241%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f782560ee8ed0e4a2d08b68236040eca7fba98f3' => 
    array (
      0 => '../views/obgy/visits/visitold.html',
      1 => 1639895354,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '111714769268114a642fd856-25574241',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'programesetting' => 0,
    'allvisit' => 0,
    'i' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_68114a6439d684_47645463',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68114a6439d684_47645463')) {function content_68114a6439d684_47645463($_smarty_tpl) {?><table class="table table-bordered table-striped table-hover rtl dataTable">
    <thead>
        <tr>
            <th class="wds3 txtc">م</th>
            <th class="txtc">اسم الحالة</th>
            <th class="wds5 txtc">رقم الحالة</th>
            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang==1){?>    
            <th class="txtc"> اسم الزوج </th>
            <?php }?> 
            <th class="txtc"> العنوان </th>
            <th class="txtc"> التاريخ </th>
            <th class="txtc"> الطبيب </th>
            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang==1){?>    
            <th class="txtc"> المريض </th>
            <?php }?> 
            <th class="wds5 txtc">  </th>
        </tr>
    </thead>
    <tbody>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allvisit']->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;
?>
        <tr>
            <td> <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
            <td>  <?php echo $_smarty_tpl->tpl_vars['row']->value->patientName;?>
  </td>
            <td> <?php echo $_smarty_tpl->tpl_vars['row']->value->patientstatusno;?>
</td>
            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang==1){?>    
            <td> <?php echo $_smarty_tpl->tpl_vars['row']->value->husbandname;?>
</td>
            <?php }?>
            <td> <?php echo $_smarty_tpl->tpl_vars['row']->value->address;?>
</td>
            <td> <?php echo $_smarty_tpl->tpl_vars['row']->value->visitdate;?>
</td>
            <td > <?php echo $_smarty_tpl->tpl_vars['row']->value->for_doctor_name;?>
 <?php if (!empty($_smarty_tpl->tpl_vars['row']->value->operation_time)){?>(<?php echo $_smarty_tpl->tpl_vars['row']->value->operation_time;?>
)<?php }?> </td>

            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang==1){?>    
            <td>
                <?php if ($_smarty_tpl->tpl_vars['row']->value->for_husband==1){?> الزوج 
                <?php }elseif($_smarty_tpl->tpl_vars['row']->value->for_husband==2){?>    
                <?php if ($_smarty_tpl->tpl_vars['row']->value->child_gender==1){?> طفل <?php }else{ ?> طفلة  <?php }?>
                <?php if ($_smarty_tpl->tpl_vars['row']->value->child_name!=''&&$_smarty_tpl->tpl_vars['row']->value->child_name!=null){?>  (<?php echo $_smarty_tpl->tpl_vars['row']->value->child_name;?>
) <?php }?> 
                <?php }else{ ?> الزوجه<?php }?>
            </td>
            <?php }?> 
            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_type==2){?>    
            <td> <?php echo $_smarty_tpl->tpl_vars['row']->value->visitHour;?>
</td>
            <?php }?> 

            <td>
                <a class=" bg-green dltbtn  printLR" data-visitId="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
"><i class="fa fa-print"></i></a>
            </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>



<script>
    $('.dataTable').dataTable();
</script>
<?php }} ?>