<?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">
                        <div class=" p-lg text-right">
                            <a type="button" href="<?php echo e(url('client')); ?>" class="btn btn-inverse"><i class="fa fa-users"></i> Mostar clientes</a>
                            <a type="button" href="<?php echo e(url('route')); ?>" class="btn btn-deepOrange"><i class="fa fa-car"></i> Continuar ruta</a>
                        </div><!-- .widget -->
                    </div>
                    <?php if(app('request')->input('show')=='last'): ?>
                        <div class="col-md-12 col-sm-12">
                            <div class="widget stats-widget">
                                <div class="widget-body clearfix">
                                    <div class="pull-left">
                                        <small class="text-color">Pago realizado</small>
                                        <h3 class="widget-title text-success"><?php echo e($last['recent']); ?></h3>
                                        <small class="text-color">Saldo</small>
                                        <h3 class="widget-title text-primary"><?php echo e($last['rest']); ?></h3>
                                    </div>
                                    <span class="pull-right big-icon watermark"><i class="fa fa-money"></i></span>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>

                    <div class="col-md-12 col-sm-12">
                        <div class="panel">
                            <div class="panel-heading">
                                <h4 class="panel-title"><?php echo e($user->name); ?> <?php echo e($user->last_name); ?></h4>
                            </div>
                            <ul class="list-group">
                                <li class="list-group-item">Credito: <span class="text-purple"><?php echo e($credit_data->id); ?></span></li>
                                <li class="list-group-item">Fecha de venta: <span class="text-purple"><?php echo e($credit_data->created_at); ?></span></li>
                                <li class="list-group-item">Tasa de interés: <span class="text-purple"><?php echo e($credit_data->utility); ?>%</span></li>
                                <li class="list-group-item">Cuotas pactadas: <span class="text-purple"><?php echo e($credit_data->payment_number); ?></span></li>
                                <li class="list-group-item">Valor cuota: <span class="text-purple"><?php echo e($credit_data->payment_amount); ?></span></li>
                                <li class="list-group-item">Capital: <span class="text-purple"><?php echo e($credit_data->amount_neto); ?></span></li>
                                <li class="list-group-item">Intereses: <span class="text-purple"><?php echo e($credit_data->utility_amount); ?></span></li>
                                <li class="list-group-item">Total: <span class="text-purple"><?php echo e($credit_data->total); ?></span></li>

                            </ul>
                        </div>
                    </div>

                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="widget p-lg">
                            <h4 class="m-b-lg">Historial</h4>
                            <table class="table agente-paymentsH-table">
                                <tbody>
                                <tr>
                                    <th>Fecha</th>
                                    <th>No</th>
                                    <th>Valor</th>
                                    <th>Saldo</th>
                                    <th></th>
                                </tr>
                                <?php $__currentLoopData = $clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($client->created_at); ?></td>
                                        <td><?php echo e($client->number_index); ?></td>
                                        <td><?php echo e($client->amount); ?></td>
                                        <td><?php echo e($client->rest); ?></td>
                                        <td></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody></table>
                        </div><!-- .widget -->
                    </div>
                </div><!-- .row -->
                <div class="row">
                    <div class="col-md-12">
                        <div class="widget p-lg">
                            <h4 class="m-b-lg">Ultimos creditos</h4>
                            <?php $__currentLoopData = $other_credit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if((app('request')->input('id_credit'))!=$c->id): ?>
                                    <a href="<?php echo e(url('summary')); ?>/?id_credit=<?php echo e($c->id); ?>" class="btn btn-info"><?php echo e($c->id); ?></a>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div><!-- .widget -->
                    </div>
                </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 C:\xampp\htdocs\sistema-prestamos-master\resources\views/summary/index.blade.php ENDPATH**/ ?>