

<?php $__env->startSection('content'); ?>
   <div class="content-wrapper">
          <div class="card">
            <div class="card-body">
              <h4 class="card-title">All Users</h4>
               <?php if(count($errors) > 0): ?>
                  <?php if($errors->any()): ?>
                    <div class="alert alert-primary" role="alert">
                      <?php echo e($errors->first()); ?>

                      <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span>
                      </button>
                    </div>
                  <?php endif; ?>
              <?php endif; ?>
              <a class="btn btn-success" href="<?php echo e(route('addUser')); ?>">Add</a>
              
              <div class="row">
                <div class="col-12">
                  <div class="table-responsive">
                    <table id="order-listing" class="table">
                      <thead>
                        <tr>
                            <th>S.No</th>
                            <th>User Name</th>
                            <th>User Image</th>
                            <th>User Email</th>
                            <th>Action</th>
                            
                        </tr>
                      </thead>
                      <tbody>
                          <?php if(count($adminUser)>0): ?>
                          <?php $i=1; ?>
                          <?php $__currentLoopData = $adminUser; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $adminUsers): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($i); ?></td>
                            <td><?php echo e($adminUsers->user_name); ?></td>
                            
                            <td><img src="<?php echo e(url($adminUsers->user_image)); ?>"></td>
                            
                            <td><?php echo e($adminUsers->user_email); ?></td>
                            
                         <td>
                          <a href="<?php echo e(route('edit-user', [$adminUsers->user_id])); ?>" class="btn btn-primary">Edit</a>
                          <a href="<?php echo e(route('delete-banner', [$adminUsers->user_id])); ?>" class="btn btn-danger">Delete</a>
                        </td>
                       
                           
                        </tr>
                       
                        <?php $i++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      <?php else: ?>
                        <tr>
                          <td>No data found</td>
                        </tr>
                      <?php endif; ?>
                       
                      </tbody>
                    </table> 
                    <?php echo e($adminUser->render("pagination::bootstrap-4")); ?>

                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>