<?php $__env->startSection('title'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>               


<div class="pagetitle">
      <h1>Users and Permissions </h1>
      
    </div><!-- End Page Title -->

    <section class="section">
      <div class="row">
        <div class="col-lg-12">
          <?php echo $__env->make("auth._messages", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Users Table</h5>
                <a href="<?php echo e(url('users/add')); ?>" style="float: right;margin-bottom: 12px;"  class="btn btn-primary"> Add New User</a>
                <br>
              <!-- Default Table -->
              <table style="margin-top: 12px;" class="table">
                <thead>
                  <tr>
                    <th scope="col">User Code</th>
                    <th scope="col">Full Name</th>
                    <th scope="col">National Id</th>
                    <th scope="col">Phone</th>
                    <th scope="col">Email</th>
                    <th scope="col">Address</th>
                    <th scope="col">Role</th>
                    <th scope="col">action</th>
                  </tr>
                </thead>
                <tbody>
                  <?php $__currentLoopData = $getUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <tr>
                    <th scope="row"><?php echo e($user->UserCode); ?></th>
                    <td><?php echo e($user->FullName); ?></td>
                    <td><?php echo e($user->National_ID); ?></td>
                    <td><?php echo e($user->Phone); ?></td>
                    <td><?php echo e($user->email); ?></td>
                    <td><?php echo e($user->Address); ?></td>
                    <td><?php echo e($user->role_name); ?></td>
                    <td> 
                      <a href="<?php echo e(url('users/edit', $user->id)); ?>" class="btn btn-primary btn-sm">Edit</a>
                      <a href="<?php echo e(url('users/delete', $user->id)); ?>" class="btn btn-danger btn-sm" >Delete</a>
                      <a href="<?php echo e(url('users/permissions', $user->id)); ?>" class="btn btn btn-sm" >permissions</a>
                    </td>
                  </tr>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
              </table>
              <!-- End Default Table Example -->
            </div>
          </div>

         

        </div>

        
      </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\User\PINETOPS\PINETOPS\playground\realestate - Copy (2)\realestate - Copy\resources\views/users/list.blade.php ENDPATH**/ ?>