<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 21:53:40
         compiled from "../views/obgy/visits/rest.html" */ ?>
<?php /*%%SmartyHeaderCode:10826793166ba5a3437f7d3-89734509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6bc6ee73d6a411f6045c8ad953e9ba08b4b0520e' => 
    array (
      0 => '../views/obgy/visits/rest.html',
      1 => 1638651156,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10826793166ba5a3437f7d3-89734509',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'visits' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66ba5a34414008_50539957',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66ba5a34414008_50539957')) {function content_66ba5a34414008_50539957($_smarty_tpl) {?><table class="table table-bordered table-striped table-hover rtl" style="margin-bottom: 0px;">
    <thead>
        <tr>
            <td colspan="6" class="txtc">متبقى لم يتم دفعه</td>
        </tr>
        <tr>
            <th class="wds9">تاريخ الزيارة </th>
            <th>نوع الكشف   </th>
            <th class="wds10">المبلغ المتبقى   </th>
            <th class="wds25">المبلغ المراد دفعه  </th>
            <th class="wds10">خصم </th>
            <th>  ملاحظات  </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['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['visitdate'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['detectionName'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['dept'];?>
</td>
            <td>
                <label class="control-label bold wds10" style=" padding-right: 0px !important;display: inline;">كاش </label>
                <input  class="form-control positivefloat wds35" style="display: inline;"   type="text"      id="payVal_cash<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['data']->value['dept'];?>
">
                <label class="control-label bold wds10" style=" padding-right: 0px !important;display: inline;">فيزا </label>
                <input  class="form-control positivefloat wds35"   type="text" style="display: inline;"     id="payVal_visa<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="0">
                <span  id="res<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" style="color:red;" > </span>
            </td>

            <td>
                <input  class="form-control"type="text"   id="restDiscount<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="0">
            </td>
            <td>
                <input  class="form-control"type="text"   id="restNotes<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
" value="">
            </td>

            <td>
                <a class="label  label-primary   payVisitVal "  data-visitId="<?php echo $_smarty_tpl->tpl_vars['data']->value['visitid'];?>
"  data-dept="<?php echo $_smarty_tpl->tpl_vars['data']->value['dept'];?>
"  >دفع </a>
            </td>
        </tr>

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

    </tbody>
</table>



<script>
    $(".positivefloat").forcepositivefloat();
</script>


<?php }} ?>