<?php $__env->startSection("content"); ?>
<div class="row">
  <div class="col-md-12">
    <div class="top-content">
      <div class="left-content">
        <div style="width: 498px;" class="title">
          <h2><?php echo e(trans("app.users-title")); ?></h2>
          <p>( All Users <i title="Timeline Q4" data-placement="top" data-toggle="tooltip" class="fa fa-info-circle"></i>)</p>
        </div>
        <div style="width: 615px;" class="tasks">
          <button onclick="window.location='<?php echo e(URL::asset('/')); ?>users/create'" class="btn btn-primary">Add New User</button>
        </div>
      </div>
    </div>
    <div class="p-20">
      <table class="table m-0">
        <thead>
          <tr>
            <th Class="tbl-heading">Name</th>
            <th Class="tbl-heading">Email</th>
            <th Class="tbl-heading">Phone</th>
            <th Class="tbl-heading">Status</th>
            <th Class="tbl-heading">Role</th>
            <th Class="tbl-heading">Action</th>
          </tr>
        </thead>
        <tbody>
        
        <?php if(count($users)>0): ?>
        <?php foreach($users as $row): ?>
        <tr>
          <th scope="row"><?php echo e($row->name); ?></th>
          <td><?php echo e($row->email); ?></td>
          <td><?php echo e($row->phone); ?></td>
          <td> <?php if($row->status=="on"): ?>
            Active
            <?php else: ?>
            Deactive
            <?php endif; ?> </td>
          <td><?php echo e($row->role); ?></td>
          <td class="actions"><a href="<?php echo e(URL::asset('/')); ?>users/edit/<?php echo e($row->id); ?>" class="on-default remove-row"><i class="fa fa-pencil"></i></a> &nbsp; <a onclick="return confirm('Are you sure you wish to proceed?')" href="<?php echo e(URL::asset('/')); ?>users/destroy/<?php echo e($row->id); ?>" class="on-default remove-row"><i class="fa fa-trash-o"></i></a></td>
        </tr>
        <?php endforeach; ?>
        <?php endif; ?>
          </tbody>
        
      </table>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make("app", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>