<?php /* Smarty version Smarty-3.1.11, created on 2025-03-01 01:30:41
         compiled from "../views/obgy/patients/show.html" */ ?>
<?php /*%%SmartyHeaderCode:162540963867c2d3c1863b73-48601920%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '949b6109f2bd3094a7a429e1dca0e95674d91bc1' => 
    array (
      0 => '../views/obgy/patients/show.html',
      1 => 1624487776,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '162540963867c2d3c1863b73-48601920',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'programesetting' => 0,
    'allPatientData' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67c2d3c1a2a507_83242623',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67c2d3c1a2a507_83242623')) {function content_67c2d3c1a2a507_83242623($_smarty_tpl) {?><meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <!--        <h3 class="page-title">
                    <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

                </h3>
                <div class="page-bar">
                    <ul class="page-breadcrumb">
                        <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

                    </ul>
                </div>-->
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row rtl artbl"  >
            <div class="col-md-12 col-sm-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box grey-cascade">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>جميع المرضى
                        </div>

                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=index" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> إضافة جديد</a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <table class="table table-striped table-bordered table-hover datafordelete" id="sample_3">
                            <thead>
                                <tr>

                                    <th>المسلسل </th>
                                    <th>رقم الحالة</th>
                                    <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?> 
                                    <th>اسم الزوجة</th>
                                    <th>اسم الزوج</th>
                                    <?php }else{ ?>
                                    <th>اسم المريض</th>
                                    <?php }?>
                                    <th>العنوان </th>
                                    <th>التليفون </th>
                                    <th>الموبايل </th>
                                    <th>تعديل </th>
                                    <th>حذف</th>
                                </tr>
                            </thead>
                            <tbody id="delpatientnow">
                                <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allPatientData']->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 class="odd gradeX">
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>

                                    </td>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->statusno;?>

                                    </td>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->wifename;?>

                                    </td>
                                    <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?> 
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->husdandname;?>

                                    </td>
                                    <?php }?>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->address;?>

                                    </td>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->phone;?>

                                    </td>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['row']->value->mobile;?>

                                    </td>
                                    <td>
                                        <a class="label  label-primary" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
">تعديل</a>
                                    </td>
                                    <td >
                                        <a class="deletemsgEX label  label-danger"   data-id="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" data-link="patients" data-fn="del">حذف</a>
                                    </td>
                                </tr>
                                <?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE PORTLET-->
            </div>
        </div>
    </div>
    <!-- END PAGE CONTENT-->
</div>

<!-- END CONTENT --><?php }} ?>