<?php $__env->startSection('acces_policier'); ?>
<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">Authentification des policiers</h1>
            <div class="col ">
             
                <?php echo $__env->make('sweetalert::alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


            </div>
            <nav>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="#">Tableau</a></li>
                </ol>
            </nav>
        </div><!-- End Page Title -->

        <div class="mb-5">
            <!-- End Page Title
            <a href="" class="btn bg-success text-white"> Ajouter un nouveau accès</a>
        -->
        </div>

        <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">

                                                    <div class="input-group">
                                                        <form action="<?php echo e(route('search-policier')); ?>">
                                                            <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>
                            <div class="dataTable-container">
                                <table id="dtHorizontalVerticalExample"  class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                            <th>Nom</th>
                                        <th>Matricule</th>
                                        <th>Password</th>
                                        <th>Actions</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(!empty($utilisateur_policier) && $utilisateur_policier->count()): ?>
                                            <?php $__currentLoopData = $utilisateur_policier; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $utilisateur_policiers): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                      <td><?php echo e($utilisateur_policiers->name); ?></td>
                                                      <td><?php echo e($utilisateur_policiers->email); ?></td>
                                                      <td class="fw-bold">.....................</td>
                                                    <td>

                                                        <div class=" d-flex grid ">
                                                            <div class="g-col-4">
                                                                <a href="<?php echo e(route('compte.edit', $utilisateur_policiers->id)); ?>">
                                                                    <button class="btn bg-primary">
                                                                       <img class="pointer" src="<?php echo e(asset('assets/img/refresh.png')); ?>" alt="" srcset="">
                                                                    </button>
                                                                </a>
                                                            </div>
                                                            <div class="g-col-4 ms-2">
                                                                 <form action="<?php echo e(route('compte.destroy', $utilisateur_policiers->id)); ?>" method="post">
                                                                    <?php echo csrf_field(); ?>
                                                                    <?php echo method_field('DELETE'); ?>
                                                                    <button class="btn bg-danger" type="submit">
                                                                            <img src="<?php echo e(asset('assets/img/delete.png')); ?>" alt="" srcset="">
                                                                    </button>
                                                                </form>
                                                            </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($utilisateur_policier->firstItem()); ?></span>
                                        <?php echo __('to'); ?>

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

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

                                    </p>
                                </div>
                                <nav class="dataTable-pagination">
                                    <ul class="dataTable-pagination-list">
                                        <?php echo e($utilisateur_policier->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/super_admin/liste_compte_policier.blade.php ENDPATH**/ ?>