<?php /* Smarty version Smarty-3.1.11, created on 2023-10-31 22:01:45
         compiled from "../views/obgy/visits/rest.html" */ ?>
<?php /*%%SmartyHeaderCode:130902553064d12ff53fd941-60343889%%*/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 => 1638661956,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '130902553064d12ff53fd941-60343889',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64d12ff5456bb2_39335906',
  'variables' => 
  array (
    'visits' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64d12ff5456bb2_39335906')) {function content_64d12ff5456bb2_39335906($_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 }} ?>