<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:33:18
         compiled from "../views/obgy/visits/lastvisits.html" */ ?>
<?php /*%%SmartyHeaderCode:139326986966cc922e5ff481-33063685%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '32c9be27661007cc1a625fe458683e4a9a9d8d67' => 
    array (
      0 => '../views/obgy/visits/lastvisits.html',
      1 => 1627888154,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '139326986966cc922e5ff481-33063685',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lastVisits' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc922e6596e9_44058199',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc922e6596e9_44058199')) {function content_66cc922e6596e9_44058199($_smarty_tpl) {?><table class="table table-bordered table-striped table-hover rtl">
    <thead>
        <tr>
            <td colspan="6">الزيارات السابقة </td>
        </tr>
        <tr>
            <th class="wds10">تاريخ الزيارة </th>
            <th>نوع الكشف </th>
            <th class="wds6">المدفوع   </th>
            <th class="wds20">المبلغ المرادإسترجاعه   </th>
            <th class="wds20">ملاحظات    </th>
            <th class="wds6"></th>
        </tr>

        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lastVisits']->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['visitdate'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['detect'];?>
</td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['data']->value['total_paid'];?>

            </td>

            <?php if ($_smarty_tpl->tpl_vars['data']->value['total_paid']>0){?>
            <td>
                <label class="control-label bold wds10" style=" padding-right: 0px !important;display: inline;">كاش </label>
                <input  class="form-control positiveNo wds30" style="display: inline;"   type="text"     id="refundVal_cash<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="0">
                <label class="control-label bold wds10" style=" padding-right: 0px !important;display: inline;">فيزا </label>
                <input  class="form-control positiveNo wds30"   type="text" style="display: inline;"     id="refundVal_visa<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="0">
                <span  id="refund<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" style="color:red;" > </span>
            </td>
            <td>
                <input  class="form-control"type="text"   id="notes<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="">
            </td>
            <td>
                <a class="label  label-success refund"  data-visitId="<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
"  data-paid="<?php echo $_smarty_tpl->tpl_vars['data']->value['total_paid'];?>
"  >استرجاع</a> 
            </td>
            <?php }else{ ?>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['data']->value['paidAll']>0&&$_smarty_tpl->tpl_vars['data']->value['paidAll']==$_smarty_tpl->tpl_vars['data']->value['refundAll']){?>
                تم إستعادة المبلغ  المدفوع بالزيارة  كاملا 
                <?php }?>
            </td>
            <td colspan="2">

            </td>
            <?php }?>


        </tr>

        <?php } ?>
    </thead>
    <tbody>

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