<?php $__env->startSection('liste'); ?>
    <div class="pagetitle">
        <div class="row">
            <h1 class="col">Listes des policiers 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 -->


        <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>Matricule</th>
                                        <th>Nom</th>
                                        <th>Prenoms</th>
                                        <th>Grade</th>
                                        <th>Taille</th>
                                        <th>Sexe</th>
                                        <th>Photo</th>
                                        <th class="text-primary">Détails</th>
                                        <th class="text-warning">Modifier</th>
                                        <th class="text-danger">Supprimer</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?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><?php echo e($admin->grade); ?></td>
                                            <td><?php echo e($admin->taille); ?></td>
                                            <td><?php echo e($admin->sexe); ?></td>
                                            <td><?php echo e($admin->photo); ?></td>
                                            <td class="text-center">
                                                <button class="btn bg-primary">
                                                <a href="<?php echo e(route('superAdmin.show', $admin->id)); ?>">
                                                    <img class="pointer" src="<?php echo e(asset('assets/img/detail.png')); ?>"
                                                        alt="" srcset="">
                                                </a>
                                            </button>
                                            </td>
                                            <td class="text-center ">
                                                <button class="btn bg-warning">
                                                    <a href="<?php echo e(route('superAdmin.edit', $admin->id)); ?>">
                                                        <img class="pointer" src="<?php echo e(asset('assets/img/refresh.png')); ?>"
                                                            alt="" srcset="">
                                                    </a>
                                                </button>

                                            </td>
                                            <td class="text-center">
                                                <form action="<?php echo e(route('superAdmin.destroy', $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.header-superAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/damala/Documents/police/resources/views/superAdmin/liste.blade.php ENDPATH**/ ?>