<?php $__env->startSection('listes'); ?>
    <style>
        .dtHorizontalVerticalExampleWrapper {
            max-width: 600px;
            margin: 0 auto;
        }

        #dtHorizontalVerticalExample th,
        td {
            white-space: nowrap;
        }

        table.dataTable thead .sorting:after,
        table.dataTable thead .sorting:before,
        table.dataTable thead .sorting_asc:after,
        table.dataTable thead .sorting_asc:before,
        table.dataTable thead .sorting_asc_disabled:after,
        table.dataTable thead .sorting_asc_disabled:before,
        table.dataTable thead .sorting_desc:after,
        table.dataTable thead .sorting_desc:before,
        table.dataTable thead .sorting_desc_disabled:after,
        table.dataTable thead .sorting_desc_disabled:before {
            bottom: .5em;
        }
    </style>
    <div class="pagetitle">
        <div class="row">
            <h1 class="col-5">Policiers dont les données à jour</h1>
            <div class="col ">

        <h1 class="col text-end">
                <a href="<?php echo e(route('admins.index')); ?>">
                    <button type="button" class="btn btn-success">Retour</button>
                </a>
            </h1>



            </div>
            <nav>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo e(route('admins.index')); ?>">Listes des policiers enregistrées</a></li>
                    <li class="breadcrumb-item"><a href="#">Tableau des policiers dont les données à jour</a></li>
                </ol>
            </nav>
        </div><!-- End Page Title -->


        <section class="section">
            <div class="row">
                <div class="col-lg">
                    <!--------->
                    <div class="card-body">

                        <div class="dataTable-wrapper dataTable-loading no-footer sortable searchable fixed-columns">
                            <div class="dataTable-top">
                                <div class="dataTable-dropdown"><label><select class="dataTable-selector">
                                            <option value="5">5</option>
                                            <option value="10" selected="">10</option>
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                            <option value="25">25</option>
                                           </select>Show entries</label></div>
                                                <div class="dataTable-search">
                                                <form action="<?php echo e(route('pdf.create')); ?>">
                                                    <div class="input-group">
                                                        <div id="search-autocomplete" class="form-outline">
                                                            <input type="search" name="search" id="form1"  class="form-control" placeholder="Search..." />
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                            </div>
                            <div class="dataTable-container">
                                <table id="dtHorizontalVerticalExample"  class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                            <th>Matricule</th>
                                            <th>Nom</th>
                                            <th>Prenoms</th>
                                            <th>Actions</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(!empty($admins) && $admins->count()): ?>
                                            <?php $__currentLoopData = $admins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $admin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($admin->matricule); ?></td>
                                                    <td><?php echo e($admin->nom); ?></td>
                                                    <td><?php echo e($admin->prenoms); ?></td>
                                                    <td>

                                                        <div class=" d-flex grid ">
                                                            <div class="g-col-4">

                                                                    <a href="<?php echo e(route('pdf.show', $admin->id)); ?>">
                                                                    <button class="btn bg-success">
                                                                        <img class="pointer" src="<?php echo e(asset('assets/img/download.png')); ?>"
                                                                            alt="" srcset="">
                                                                      </button>
                                                                    </a>
                                                            </div>
                                                        </div>

                                                    </td>


                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                            <tr></tr>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="dataTable-bottom">
                                <div class="dataTable-info">
                                    <p class="small text-muted">
                                        <?php echo __('Showing'); ?>

                                        <span class="fw-semibold"><?php echo e($admins->firstItem()); ?></span>
                                        <?php echo __('to'); ?>

                                        <span class="fw-semibold"><?php echo e($admins->lastItem()); ?></span>
                                        <?php echo __('of'); ?>

                                        <span class="fw-semibold"><?php echo e($admins->total()); ?></span>
                                        <?php echo __('results'); ?>

                                    </p>
                                </div>
                                <nav class="dataTable-pagination">
                                    <ul class="dataTable-pagination-list">
                                        <?php echo e($admins->links()); ?>

                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                    <!------->

                </div>
            </div>

            <script>
                $(document).ready(function() {
                    $('#dtHorizontalVerticalExample').DataTable({
                        "scrollX": true,
                        "scrollY":false,
                         "paging" : false,
                         "searching": false
                    });
                    $('.dataTables_length').addClass('bs-select');
                });
            </script>

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










<?php echo $__env->make('layouts.super-Admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /opt/lampp/htdocs/polrep/resources/views/pdf/policiers_ajour.blade.php ENDPATH**/ ?>