<?php $__env->startSection('content'); ?>
    <!-- APP MAIN ==========-->
    <main id="app-main" class="app-main">
        <div class="wrap">
            <section class="app-content">
                <div class="row">
                    <div class="col-md-12 col-lg-8 offset-lg-2">
                        <div class="widget">
                            <header class="widget-header">
                                <h4 class="widget-title">Abono de cuota</h4>
                            </header><!-- .widget-header -->
                            <hr class="widget-separator">
                            <div class="widget-body">
                                <form method="POST" class="payment-create" action="<?php echo e(url('summary')); ?>" enctype="multipart/form-data">
                                    <?php echo e(csrf_field()); ?>

                                    <div class="form-group">
                                        <label for="name">Nombres:</label>
                                        <input type="text" name="name" value ="<?php echo e($user->name); ?> <?php echo e($user->last_name); ?>" readonly class="form-control" id="name">
                                    </div>
                                    <input type="hidden" name="rev" value="<?php echo e(app('request')->input('rev')); ?>">
                                    <div class="form-group">
                                        <label for="address">Número de credito:</label>
                                        <input type="text" name="credit_id" value="<?php echo e($id); ?>" readonly class="form-control" id="address">
                                    </div>
                                    <div class="form-group">
                                        <label for="province">Valor de venta:</label>
                                        <input type="text" name="province" value="<?php echo e($amount_neto); ?> en <?php echo e($payment_number); ?> cuotas" readonly class="form-control" id="province">
                                    </div>
                                    <div class="form-group">
                                        <label for="phone">Pagado:</label>
                                        <input type="tel" name="phone" value="<?php echo e($credit_data['positive']); ?>" readonly class="form-control" id="phone">
                                    </div>
                                    <div class="form-group">
                                        <label for="phone">Saldo:</label>
                                        <input type="tel" name="phone" value="<?php echo e($credit_data['rest']); ?>" readonly class="form-control" id="phone">
                                    </div>
                                    <div class="form-group">
                                        <label for="amount">Valor de cuota:</label>
                                        <input type="text" readonly value="<?php echo e($credit_data['payment_quote']); ?>" class="form-control" id="amount1">
                                    </div>
                                    <div class="form-group">
                                        <label for="amount">Cuotas pagadas:</label>
                                        <input type="text" readonly value="<?php echo e($credit_data['payment_done']); ?>" class="form-control" id="amount2">
                                    </div>
                                    <div class="form-group">
                                        <label for="amount">Valor de abono:</label>
                                        <input type="number" step="any" min="1" max="<?php echo e($credit_data['rest']); ?>" value="<?php echo e($credit_data['payment_quote']); ?>" name="amount" class="form-control" id="amount">
                                    </div>
                                    <div class="form-group">
                                        <button type="submit" <?php echo e(($credit_data['rest']<1) ? 'disabled': ''); ?> class="btn btn-success btn-block btn-md">Guardar pago</button>
                                    </div>
                                </form>

                            </div><!-- .widget-body -->
                        </div><!-- .widget -->
                    </div><!-- END column -->
                </div><!-- .row -->
            </section>
        </div>
    </main>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/naciszrf/public_html/prestamos/resources/views/payment/create.blade.php ENDPATH**/ ?>