<?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-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 supervisor-show-table">
                                <tbody>
                                <tr class="visible-lg">
                                    <th>Fecha</th>
                                    <th>No</th>
                                    <th>Valor</th>
                                    <th>Resta</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">Últimos creditos</h4>
                            <?php $__currentLoopData = $credits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $client): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($credit_data->id != $client->id): ?>
                                    <a class="btn btn-primary" href="<?php echo e(url('supervisor/menu/history/')); ?>/<?php echo e($client->id); ?>"><?php echo e($client->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 /home/naciszrf/public_html/prestamos/resources/views/submenu/history/show.blade.php ENDPATH**/ ?>