<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 class="wds10">المبلغ المتبقى   </th>
            <th class="wds25">المبلغ المراد دفعه  </th>
            <th class="wds10">خصم </th>
            <th>  ملاحظات  </th>
            <th class="wds6"></th>
        </tr>

        {foreach  $visits  as   $data }
        <tr>
            <td>{$data.visitdate}</td>
            <td>{$data.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{$data.visitid}" value="{$data.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{$data.visitid}" value="0">
                <span  id="res{$data.visitid}" style="color:red;" > </span>
            </td>

            <td>
                <input  class="form-control"type="text"   id="restDiscount{$data.visitid}" value="0">
            </td>
            <td>
                <input  class="form-control"type="text"   id="restNotes{$data.visitid}" value="">
            </td>

            <td>
                <a class="label  label-primary   payVisitVal "  data-visitId="{$data.visitid}"  data-dept="{$data.dept}"  >دفع </a>
            </td>
        </tr>

        {/foreach}
    </thead>
    <tbody>

    </tbody>
</table>


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


{/literal}