<p style="text-align: center; font-weight: 700; font-size: 18px;">Pick One Property</p>
<div class="table-responsive">
    <table id="myTable" class="table table-striped">
        <thead>
            <tr>
                <th></th>
                <th>Unit No.</th>
                <th>Net Amount</th>
                <th>Rebate</th>
                <th>Received Amount</th>
                <th>Paid Rebate</th>


            </tr>
        </thead>
        <tbody>

            <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
            <?php if($t->property): ?>
            <?php if(!$t->property->inventory->dealerPackageOpenFileUnit): ?>
                    <?php if($t->property && $t->property->status != \App\CustomerProperty::cancel): ?>
                        <tr>

                            <?php if(old('customer_property_id') == $t->product_id): ?>
                                <td><input id="property_id" type="radio" checked="" required name='property_id'
                                        value='<?php echo e($t->property->id); ?>' onchange="getAmount(this)"
                                        data-amount="<?php echo e(number_format($t->amount - $paid_rebate[$t->id])); ?>"></td>
                            <?php else: ?>
                                <td><input id="property_id" type="radio" required name='property_id'
                                        value='<?php echo e($t->property->id); ?>' onchange="getAmount(this)"
                                        data-amount="<?php echo e(number_format($t->amount - $paid_rebate[$t->id])); ?>"></td>
                            <?php endif; ?>
                            <td>
                                <?php if($t->property->inventory->registration): ?>
                                    <?php echo e($t->property->inventory->registration->registrationNo->number); ?>

                                <?php endif; ?>
                                <?php echo e($t->property->inventory->unit_number); ?>

                            </td>
                            <td><?php echo e(number_format($t->property->net_pay)); ?></td>
                            <td><?php echo e(number_format($t->amount)); ?></td>
                            <td><?php echo e(number_format($received_amount[$t->id])); ?></td>
                            <td><?php echo e(number_format($paid_rebate[$t->id])); ?></td>



                        </tr>
                    <?php endif; ?>
               <?php endif; ?>
            <?php endif; ?>   
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


        </tbody>
    </table>
</div>


 


<label for="exampleInputuname" class="col-sm-2 control-label">
    Remaining Rebate
</label>
<div class="col-sm-10">
    <div class="input-group" style="width:384px; margin-left: -7px;">

        <input type="text" disabled="" class="form-control"
            value="<?php echo e(number_format($dealer->total_rebate - $dealer->total_paid_amount)); ?>" id="remaining_amount">

    </div>
</div>
<?php /**PATH C:\xampp\htdocs\erpv7\resources\views/transaction/rebate/update-amount.blade.php ENDPATH**/ ?>