<?php $__env->startSection('page_title', __('app.users')); ?>
<?php $__env->startSection('content'); ?>
<div class="top-card p-3"><div class="d-flex justify-content-between mb-3"><h5 class="fw-bold"><?php echo e(__('app.users')); ?></h5><a class="btn btn-success" href="<?php echo e(route('users.create')); ?>"><i class="fa-solid fa-plus"></i> <?php echo e(__('app.add_user')); ?></a></div><div class="table-responsive"><table class="table align-middle"><thead><tr><th><?php echo e(__('app.name')); ?></th><th><?php echo e(__('app.email')); ?></th><th><?php echo e(__('app.role')); ?></th><th><?php echo e(__('app.status')); ?></th><th><?php echo e(__('app.action')); ?></th></tr></thead><tbody><?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($user->name); ?></td><td><?php echo e($user->email); ?></td><td><?php echo e($user->roleRecord?->name ?? $user->role); ?></td><td><span class="badge <?php echo e($user->is_active?'bg-success':'bg-danger'); ?>"><?php echo e($user->is_active?__('app.active'):__('app.inactive')); ?></span></td><td><a class="btn btn-sm btn-light" href="<?php echo e(route('users.edit',$user)); ?>"><i class="fa-solid fa-pen"></i></a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($users->links()); ?></div>
<?php $__env->stopSection(); ?>

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