<?php $__env->startSection('acces_policier'); ?>
    <div class="pagetitle">
        <div class="row">
            <h1 class="col">Listes des administrateurs enregistrées</h1>
            <div class="col ">
                <?php if(session()->has('info')): ?>
                    <div class="alert alert-warning alert-dismissible fade show" role="alert">
                        <?php echo e(session('info')); ?>

                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                <?php elseif(session()->has('modif')): ?>
                    <div class="alert alert-success alert-dismissible fade show" role="alert">
                        <?php echo e(session('modif')); ?>

                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                <?php endif; ?>




            </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="example" class="table table-striped" style="width:100%">
                                <thead>

                                    <tr class="text-truncate">

                                        <th>Nom</th>
                                        <th>email</th>
                                        <th>Password</th>
                                        <th class="text-warning">Modifier</th>
                                        <th class="text-danger">Supprimer</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  class="p-3">
                                                <button class="btn bg-warning">
                                                    <a href="#">
                                                        <img class="pointer" src="<?php echo e(asset('assets/img/refresh.png')); ?>"
                                                            alt="" srcset="">
                                                    </a>
                                                </button>

                                            </td>
                                            <td  class="p-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>
                                            </td>

                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>

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

<?php echo $__env->make('layouts.super-Admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/damala/Documents/police/resources/views/super_admin/liste_compte_admin.blade.php ENDPATH**/ ?>