<?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">Listes des administrateurs enregistrées</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">
            <a href="<?php echo e(route('compte_admin.create')); ?>" class="btn bg-success text-white"> Ajouter un nouveau admin</a>
        </div>

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



          <table id="dtHorizontalVerticalExample" class="table table-striped table-bordered table-sm "cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                        <th>Nom</th>
                                        <th>email</th>
                                        <th>Password</th>
                                        <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>

                                    <?php $__currentLoopData = $utilisateur_admins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $utilisateur_admin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($utilisateur_admin->name); ?></td>
                                            <td><?php echo e($utilisateur_admin->email); ?></td>
                                            <td> <strong>.....................</strong></td>


                                    <td>
                                        <div class="row">
                                                         <div class="col-3">
                                                       <form action="<?php echo e(route('compte_admin.destroy', $utilisateur_admin->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(); ?>

                            </tbody>
                        </table>
                        <?php echo e($utilisateur_admins->links()); ?>

                        </div>
                    </div>
                </div>
            </div>
        </section>
         <script>
            $(document).ready(function() {
                $('#dtHorizontalVerticalExample').DataTable({
                    "scrollX": true,
                    "scrollY": 200,
                });
                $('.dataTables_length').addClass('bs-select');
            });
        </script>
    <?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_admin.blade.php ENDPATH**/ ?>