<?php $__env->startSection('content'); ?>
<div class="coman-bg">
         <div class="container mt-5">
            <div class="row">
               <div class="col-lg-7 col-sm-12 col-12">
                  <div class="mendas-data">
                     <h4 class="text-center mb-5"><?php echo e($user_type); ?>s</h4>
<div> <form action="<?php echo e(route($user_type.'s.index')); ?>" method="get">
                    	<div class="form-group">
                    		<div class="input-group">
                    		<label class='w-25'>Rechercher</label>
                              <input type="text" class="form-control form-text-field mr-3" value="<?php echo e(request()->nom); ?>" id="nom" name="nom" placeholder="Nom" aria-label="nom" aria-describedby="basic-addon2">
                              <div class="input-group-prepend w-25">
                                <button onclick="document.getElementById('nom').value='';" class="btn-color  cancel mr-3"   type="submit" ><i class="fas fa-window-close"></i></button>
                             
                                <button class="btn-color mr-3" style='width: 44%;' type="submit"><i class="fas fa-search"></i></button>
                              </div>
                            </div>
                    	</div>
                    </form>
				</div>
				<?php if(session()->has('message')): ?>
        				<div class="alert alertToolsBar alert-info alert-dismissible fade show }}"> 
                        <?php echo session('message'); ?>

                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                          </button>
                        </div>
    			<?php endif; ?>
                     <div class="table-responsive">
                        <table  id="example" class="table" style="width:100%">
                        <thead>
                           <tr>
                               <th><strong>NOM</strong></th>
                               <th></th>
                               <th></th>
                               <th></th>
                           </tr>
                        </thead>
                        <tbody>
						<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                           <tr>
                              <td><a class="" href="<?php echo e(route('users.show',$user->id)); ?>"><i class="fas fa-eye"></i></a></td>
                              <td> <a href="<?php echo e(route('users.show',$user->id)); ?>"> <?php echo e($user->name); ?><br><?php echo e($user->surname); ?></td>
                              <td><a href="<?php echo e(route('users.edit',$user->id)); ?>"><i class="fas fa-edit"></i></a></td>
                              <td>
							  <form action="<?php echo e(route('users.destroy', $user->id)); ?>" method ="POST">
			                            <?php echo csrf_field(); ?>
										<?php echo e(method_field('DELETE')); ?>

			                            <button type="submit" class="btn-back" onclick="return confirm('Vraiment supprimer cet utilisateur ?')"><i class="fas fa-trash"></i></button>
			                        </form>	  </td>
                           </tr>
						   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          

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

                     </div>
					 <p><a href="<?php echo e(route('demandes.create')); ?>" class="text-dark"><i class="fas fa-chevron-left mr-2"></i>Retour</a></p>
                  </div>
               </div>
            </div>
         </div>

         <img src="image/PersonnageMécanicien.png" class="comman-image-all3">
      </div>
      

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\HelloDjo_Source\resources\views/users/index.blade.php ENDPATH**/ ?>