<?php $__env->startSection('content'); ?>
    <h1 class="page-title">
        <a class=" icon-action-undo" href="<?php echo e(url('reporte/prestamos')); ?>" style="padding: 5px;"></a>
        Detalle de pr&eacute;stamos
    </h1>

    <div class="portlet light portlet-fit portlet-datatable bordered">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green sbold uppercase"> Detalle de libro pr&eacute;stado </span>
            </div>
        </div>
        <div class="portlet-body">
            <div class="row">
                <div class="col-lg-12" style="padding-top: 5%;">
                    <div class="Forum-ForumTopicList" >

                        <table class="table table-hover nowrap dataTable dtr-inline collapsed tbEncuestas" id="tbBibliografiaPrestamos"
                               width="100%" role="grid" aria-describedby="tbBibliografiaPrestamos_info">
                            <thead class="thead-default">
                            <tr>
                                <th>N°</th>
                                <th>C&oacute;digo del ejemplar</th>
                                <th>Nombre de la bibliograf&iacute;a</th>
                                <th>Fecha de pr&eacute;stamo</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php ($count = 1); ?>
                            <?php $__currentLoopData = $detallePrestamosUsuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td> <?php echo e($count); ?> </td>
                                    <td> <?php echo e($item->codigo_CS); ?> </td>
                                    <td> <?php echo e($item->nombre); ?></td>
                                    <td> <?php echo e($item->fecha_inicio); ?> </td>
                                </tr>
                                <?php ($count++); ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('plugins/datatables/datatables.all.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/datatables/datatables.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('plugins/datatables/plugins/bootstrap/datatables.bootstrap.js')); ?>" type="text/javascript"></script>
    <script>

        $('#tbBibliografiaPrestamos').DataTable({
            "lengthMenu": [[25, 20, 50, -1], [25, 20, 50, "Todas"]],
            bFilter: true,
            "bLengthChange": false,
            bInfo: true,
            "responsive":true,
            "autoWidth": true,
            "language": {
                "lengthMenu": "Mostrar _MENU_ Entradas",
                "zeroRecords": "No se encontraron registros",
                "info": "Mostrando la página _PAGE_ de _PAGES_",
                "infoEmpty": "No hay registros disponibles",
                "infoFiltered": "(filtrado de _MAX_ registros totales)",
                "search": "Buscar: ",
                "paginate": {
                    "first": "Primero",
                    "last": "Último",
                    "next": "Siguiente",
                    "previous": "Anterior"
                },
            },
            "order": [],
            "aoColumns": [
                { "bSearchable": false },
                { "bSearchable": true },
                { "bSearchable": true },
                { "bSearchable": false }

            ],
            "columns": [
                { "orderable": false },
                { "orderable": true },
                { "orderable": true },
                { "orderable": false }
            ],
            dom: 'Bfrtip',
            buttons: [
                 'excel', 'pdf'
            ]
        });

    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('template.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>