<?php /* Smarty version Smarty-3.1.11, created on 2023-08-21 20:20:48
         compiled from "..\views\obgy\patients\show.html" */ ?>
<?php /*%%SmartyHeaderCode:1516064e3ab007ba990-49169616%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3de285811231b2997cdad5f686089ee9b907b8a1' => 
    array (
      0 => '..\\views\\obgy\\patients\\show.html',
      1 => 1675241454,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1516064e3ab007ba990-49169616',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'py_all_doc' => 0,
    'data' => 0,
    'programesetting' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64e3ab00937c28_63896988',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64e3ab00937c28_63896988')) {function content_64e3ab00937c28_63896988($_smarty_tpl) {?><meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row rtl artbl"  >
            <div class="col-md-12 col-sm-12">
                <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-primary btn-sm">
                                <i class="fa fa-plus"></i> إضافة جديد</a>
                        </div>

                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php?ac=getexcel" target="_blank" class="btn btn-success btn-sm">
                                <i class="fa fa-download"></i>  Export Excel </a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <table class="table table-striped table-bordered table-hover ">
                            <thead>
                                <tr>
                                    <th class="wds30">الطبيب المعالج  </th>
                                    <td>
                                        <select class="form-control select2me "   id="patDoctor1">
                                            <option value="">All</option>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['py_all_doc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value['user_id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</option>
                                            <?php } ?>
                                        </select>
                                    </td>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>


        </div>

        <table class="table table-striped table-bordered table-hover rtl" id="patShowTb">
            <thead>
                <tr>
                    <!--th>المسلسل </th-->
                    <th>رقم الحالة</th>
                    <th>اسم الحالة</th>
                    <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang==1){?>    <th>اسم الزوج</th>  <?php }?>
                    <th>العنوان </th>
                    <th>التليفون </th>
                    <th>الموبايل </th>
                    <th> تاريخ الإضافة     </th>
                    <th>BQ </th>
                    <th>QR </th>
                    <th>الكارت </th>
                    <th>تعديل </th>
                    <th>إيقاف </th>
                    <?php if ($_SESSION['role_id']!=3){?>
                    <th>حذف</th>
                    <?php }?>
                </tr>
            </thead>
            <tbody id="delpatientnow">

            </tbody>
        </table>


    </div>
</div>


<div id="forPrint"></div>
<?php }} ?>