<?php $__env->startSection('title', __('Users')); ?>
<?php $__env->startSection('content'); ?>
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800"><?php echo app('translator')->get('Users'); ?></h1>
<a href="<?php echo e(route('settings.users.create')); ?>" class="btn btn-sm btn-success shadow-sm"><i class="fas fa-plus fa-sm text-white-50"></i> <?php echo app('translator')->get('Create'); ?></a>
</div>
<div class="row">
<div class="col-md-12">
<?php if($data->count() > 0): ?>
<div class="card mb-3">
<div class="table-responsive">
<table class="table card-table table-vcenter text-nowrap">
<thead class="thead-dark">
<tr>
<th><?php echo app('translator')->get('Name'); ?></th>
<th><?php echo app('translator')->get('E-mail'); ?></th>
<th><?php echo app('translator')->get('Role'); ?></th>
<th><?php echo app('translator')->get('Action'); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<a href="<?php echo e(route('settings.users.edit', $item)); ?>"><?php echo e($item->name); ?></a>
</td>
<td>
<?php echo e($item->email); ?>
</td>
<td>
<?php echo e($item->role); ?>
</td>
<td>
<div class="d-flex">
<div class="p-1 ">
<a href="<?php echo e(route('settings.users.edit', $item)); ?>" class="btn btn-sm btn-primary"><?php echo app('translator')->get('Edit'); ?></a>
</div>
<div class="p-1 ">
<form method="post" action="<?php echo e(route('settings.users.destroy', $item)); ?>" onsubmit="return confirm('<?php echo app('translator')->get('Confirm delete?'); ?>');">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<button type="submit" class="btn btn-sm btn-danger">
<i class="fe fe-trash"></i> <?php echo app('translator')->get('Delete'); ?>
</button>
</form>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
<?php endif; ?>
<?php echo e($data->appends( Request::all() )->links()); ?>
<?php if($data->count() == 0): ?>
<div class="alert alert-primary text-center">
<i class="fe fe-alert-triangle mr-2"></i> <?php echo app('translator')->get('No users found'); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('core::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bouloter/public_html/Modules/User/Providers/../Resources/views/users/index.blade.php ENDPATH**/ ?>