<?php /* Smarty version Smarty-3.1.11, created on 2023-10-31 15:31:02
         compiled from "../views/obgy/customer_service/search_visits.html" */ ?>
<?php /*%%SmartyHeaderCode:783876146541019699be81-08200161%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9c65ddf1116a170e9d141234470423beef688036' => 
    array (
      0 => '../views/obgy/customer_service/search_visits.html',
      1 => 1675565430,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '783876146541019699be81-08200161',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'visitsCount' => 0,
    'visits' => 0,
    'data' => 0,
    'rfc' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65410196a06653_15047799',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65410196a06653_15047799')) {function content_65410196a06653_15047799($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['visitsCount']->value>0){?>
<table class="table table-striped table-bordered table-hover dataTable">
    <thead>
        <tr>
            <th>اسم الطبيب  </th>
            <th>إجمالى  الزيارات  </th>
            <th>تم الحضور   </th>
            <th>تم الكشف   </th>
        </tr>
    </thead>
    <tbody>
        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['visits']->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;
?>
        <tr>
            <td>  <?php echo $_smarty_tpl->tpl_vars['data']->value['doctorName'];?>
   </td>
            <td>   
                <?php if ($_smarty_tpl->tpl_vars['data']->value['visitCount']>0){?>
                <a class="btn blue btn-xs visitDetails wds20" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
" data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"  href="javascript:;" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['visitCount'];?>
 <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
"  data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"   href="javascript:;" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['visitCount'];?>
 <i class="fa fa-print fleft"></i>
                </a> 
                <?php }else{ ?>
                <?php echo $_smarty_tpl->tpl_vars['data']->value['visitCount'];?>
 
                <?php }?>
            </td>

            <td>   
                <?php if ($_smarty_tpl->tpl_vars['data']->value['confirmed']>0){?>
                <a class="btn blue btn-xs visitDetails wds20" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
"  href="javascript:;"   data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"  data-confirmed="1" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['confirmed'];?>
 <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
"  data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"  data-confirmed="1"   href="javascript:;" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['confirmed'];?>
 <i class="fa fa-print fleft"></i>
                </a> 
                <?php }else{ ?>
                <?php echo $_smarty_tpl->tpl_vars['data']->value['confirmed'];?>
 
                <?php }?>
            </td>

            <td>   
                <?php if ($_smarty_tpl->tpl_vars['data']->value['attended']>0){?>
                <a class="btn blue btn-xs visitDetails wds20" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
"  href="javascript:;"  data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"   data-attended="1" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['attended'];?>
 <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="<?php echo $_smarty_tpl->tpl_vars['data']->value['userId'];?>
"  data-rfc="<?php echo $_smarty_tpl->tpl_vars['rfc']->value;?>
"  data-attended="1"   href="javascript:;" >
                    <?php echo $_smarty_tpl->tpl_vars['data']->value['attended'];?>
 <i class="fa fa-print fleft"></i>
                </a> 
                <?php }else{ ?>
                <?php echo $_smarty_tpl->tpl_vars['data']->value['attended'];?>
 
                <?php }?>
            </td>

        </tr>
        <?php } ?>
    </tbody>
</table>


<?php }else{ ?>
<h2 style="text-align: center;color: red;"> No Data Available Now.</h2>
<?php }?><?php }} ?>