| Current Path : /var/www/html/bookstack/storage/framework/views/ |
| Current File : /var/www/html/bookstack/storage/framework/views/ceb9f57851ee232ba4d2105d51657f72e8cb6cd5.php |
<?php $__env->startSection('body'); ?>
<div class="container">
<?php echo $__env->make('settings.parts.navbar', ['selected' => 'audit'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="card content-wrap auto-height">
<h1 class="list-heading"><?php echo e(trans('settings.audit')); ?></h1>
<p class="text-muted"><?php echo e(trans('settings.audit_desc')); ?></p>
<div class="flex-container-row">
<div component="dropdown" class="list-sort-type dropdown-container mr-m">
<label for=""><?php echo e(trans('settings.audit_event_filter')); ?></label>
<button refs="dropdown@toggle" aria-haspopup="true" aria-expanded="false" aria-label="<?php echo e(trans('common.sort_options')); ?>" class="input-base text-left"><?php echo e($listDetails['event'] ?: trans('settings.audit_event_filter_no_filter')); ?></button>
<ul refs="dropdown@menu" class="dropdown-menu">
<li <?php if($listDetails['event'] === ''): ?> class="active" <?php endif; ?>><a href="<?php echo e(sortUrl('/settings/audit', $listDetails, ['event' => ''])); ?>" class="text-item"><?php echo e(trans('settings.audit_event_filter_no_filter')); ?></a></li>
<?php $__currentLoopData = $activityTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li <?php if($type === $listDetails['event']): ?> class="active" <?php endif; ?>><a href="<?php echo e(sortUrl('/settings/audit', $listDetails, ['event' => $type])); ?>" class="text-item"><?php echo e($type); ?></a></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
<form action="<?php echo e(url('/settings/audit')); ?>" method="get" class="flex-container-row mr-m">
<?php if(!empty($listDetails['event'])): ?>
<input type="hidden" name="event" value="<?php echo e($listDetails['event']); ?>">
<?php endif; ?>
<?php $__currentLoopData = ['date_from', 'date_to']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filterKey): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="mr-m">
<label for="audit_filter_<?php echo e($filterKey); ?>"><?php echo e(trans('settings.audit_' . $filterKey)); ?></label>
<input id="audit_filter_<?php echo e($filterKey); ?>"
component="submit-on-change"
type="date"
name="<?php echo e($filterKey); ?>"
value="<?php echo e($listDetails[$filterKey] ?? ''); ?>">
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<div class="form-group ml-auto mr-m"
component="submit-on-change"
option:submit-on-change:filter='[name="user"]'>
<label for="owner"><?php echo e(trans('settings.audit_table_user')); ?></label>
<?php echo $__env->make('form.user-select', ['user' => $listDetails['user'] ? \BookStack\Auth\User::query()->find($listDetails['user']) : null, 'name' => 'user', 'compact' => true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<div class="form-group ml-auto">
<label for="ip"><?php echo e(trans('settings.audit_table_ip')); ?></label>
<?php echo $__env->make('form.text', ['name' => 'ip', 'model' => (object) $listDetails], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<input type="submit" style="display: none">
</div>
</form>
</div>
<hr class="mt-l mb-s">
<?php echo e($activities->links()); ?>
<table class="table">
<tbody>
<tr>
<th><?php echo e(trans('settings.audit_table_user')); ?></th>
<th>
<a href="<?php echo e(sortUrl('/settings/audit', $listDetails, ['sort' => 'key'])); ?>"><?php echo e(trans('settings.audit_table_event')); ?></a>
</th>
<th><?php echo e(trans('settings.audit_table_related')); ?></th>
<th><?php echo e(trans('settings.audit_table_ip')); ?></th>
<th>
<a href="<?php echo e(sortUrl('/settings/audit', $listDetails, ['sort' => 'created_at'])); ?>"><?php echo e(trans('settings.audit_table_date')); ?></a></th>
</tr>
<?php $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<?php echo $__env->make('settings.parts.table-user', ['user' => $activity->user, 'user_id' => $activity->user_id], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</td>
<td><?php echo e($activity->type); ?></td>
<td width="40%">
<?php if($activity->entity): ?>
<a href="<?php echo e($activity->entity->getUrl()); ?>" class="table-entity-item">
<span role="presentation" class="icon text-<?php echo e($activity->entity->getType()); ?>"><?php echo icon($activity->entity->getType()); ?></span>
<div class="text-<?php echo e($activity->entity->getType()); ?>">
<?php echo e($activity->entity->name); ?>
</div>
</a>
<?php elseif($activity->detail && $activity->isForEntity()): ?>
<div class="px-m">
<?php echo e(trans('settings.audit_deleted_item')); ?> <br>
<?php echo e(trans('settings.audit_deleted_item_name', ['name' => $activity->detail])); ?>
</div>
<?php elseif($activity->detail): ?>
<div class="px-m"><?php echo e($activity->detail); ?></div>
<?php endif; ?>
</td>
<td><?php echo e($activity->ip); ?></td>
<td><?php echo e($activity->created_at); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php echo e($activities->links()); ?>
</div>
</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/settings/audit.blade.php ENDPATH**/ ?>