<?php $__env->startSection('title','Gestion utilisateurs'); ?>
<?php $__env->startSection('content'); ?>



                        <!-- [ Main Content ] start -->

                            <!-- [ Hover-table ] start -->
                            <div class="col-xl-12">
                                <div class="card">
                                    <div class="card-header">
                                        <h5>Utilisateurs</h5>
                                        <span class="d-block m-t-5">Listes des admins</span>
                                    </div>
                                    <div class="card-block table-border-style">
                                        <div class="table-responsive">
                                            <table class="table table-hover">
                                                <thead>
                                                    <tr>
                                                        <th>#</th>
                                                        <th>Nom</th>
                                                        <th>Prenom</th>
                                                        <th>Contact</th>
                                                        <th>Adresse</th>
                                                        <th>Email</th>
                                                        <th>Action</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                    <tr>
                                                        <th scope="row"><?php echo e($u->id); ?></th>
                                                        <td><?php echo e($u->nom); ?></td>
                                                        <td><?php echo e($u->prenom); ?></td>
                                                        <td><?php echo e($u->phone); ?></td>
                                                        <td><?php echo e($u->adresse); ?></td>
                                                        <td><?php echo e($u->email); ?></td>
                                                        <td>
                                                            <a class="btn btn-primary" title="Modifier utilisateur" data-toggle="tooltip" href="<?php echo e(asset('edit_user/'.$u->id)); ?>">Modifier</a>
                                                            <button type="button" class="btn btn-danger" title="Supprimer" onclick="delete_typo<?php echo e($u->id); ?>()" data-toggle="tooltip"><i class="fas fa-trash"></i></button>
                                                        </td>
                                                    </tr>
                                                    <script type="text/javascript">
                                                        function delete_typo<?php echo e($u->id); ?>(){
                                                          if(confirm("Voulez-vous vraiment supprimer cet admin !"))
                                                            location.href='<?php echo e(url("/delete_user/$u->id")); ?>';
                                                        }
                                                      </script>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                                                    <?php endif; ?>

                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- [ Hover-table ] end -->



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

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\api_web_orange_caece\resources\views/admin/liste_user.blade.php ENDPATH**/ ?>