| Current Path : /var/www/html/bookstack/storage/framework/views/ |
| Current File : /var/www/html/bookstack/storage/framework/views/5bd29f65ee25509df5e8705ba67ccf6696ffc1ae.php |
<?php $__env->startSection('body'); ?>
<div class="container small">
<?php echo $__env->make('settings.parts.navbar', ['selected' => 'users'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<main class="card content-wrap">
<div class="flex-container-row wrap justify-space-between items-center">
<h1 class="list-heading"><?php echo e(trans('settings.users')); ?></h1>
<div>
<div class="block inline mr-xs">
<form method="get" action="<?php echo e(url("/settings/users")); ?>">
<?php $__currentLoopData = collect($listDetails)->except('search'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<input type="hidden" name="<?php echo e($name); ?>" value="<?php echo e($val); ?>">
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<input type="text" name="search" placeholder="<?php echo e(trans('settings.users_search')); ?>" <?php if($listDetails['search']): ?> value="<?php echo e($listDetails['search']); ?>" <?php endif; ?>>
</form>
</div>
<a href="<?php echo e(url("/settings/users/create")); ?>" class="outline button mt-none"><?php echo e(trans('settings.users_add_new')); ?></a>
</div>
</div>
<table class="table">
<tr>
<th></th>
<th>
<a href="<?php echo e(sortUrl('/settings/users', $listDetails, ['sort' => 'name'])); ?>"><?php echo e(trans('auth.name')); ?></a>
/
<a href="<?php echo e(sortUrl('/settings/users', $listDetails, ['sort' => 'email'])); ?>"><?php echo e(trans('auth.email')); ?></a>
</th>
<th><?php echo e(trans('settings.role_user_roles')); ?></th>
<th class="text-right">
<a href="<?php echo e(sortUrl('/settings/users', $listDetails, ['sort' => 'last_activity_at'])); ?>"><?php echo e(trans('settings.users_latest_activity')); ?></a>
</th>
</tr>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="text-center" style="line-height: 0;"><img class="avatar med" src="<?php echo e($user->getAvatar(40)); ?>" alt="<?php echo e($user->name); ?>"></td>
<td>
<a href="<?php echo e(url("/settings/users/{$user->id}")); ?>">
<?php echo e($user->name); ?>
<br>
<span class="text-muted"><?php echo e($user->email); ?></span>
<?php if($user->mfa_values_count > 0): ?>
<span title="MFA Configured" class="text-pos"><?php echo icon('lock'); ?></span>
<?php endif; ?>
</a>
</td>
<td>
<?php $__currentLoopData = $user->roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<small><a href="<?php echo e(url("/settings/roles/{$role->id}")); ?>"><?php echo e($role->display_name); ?></a><?php if($index !== count($user->roles) -1): ?>,<?php endif; ?></small>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<td class="text-right text-muted">
<?php if($user->last_activity_at): ?>
<small title="<?php echo e($user->last_activity_at->format('Y-m-d H:i:s')); ?>"><?php echo e($user->last_activity_at->diffForHumans()); ?></small>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>
<div>
<?php echo e($users->links()); ?>
</div>
</main>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.simple', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/bookstack/resources/views/users/index.blade.php ENDPATH**/ ?>