@extends('layouts.simple') @section('body')
@include('settings.parts.navbar', ['selected' => 'audit'])

{{ trans('settings.audit') }}

{{ trans('settings.audit_desc') }}

@if(!empty($listDetails['event'])) @endif @foreach(['date_from', 'date_to'] as $filterKey)
@endforeach
@include('form.user-select', ['user' => $listDetails['user'] ? \BookStack\Auth\User::query()->find($listDetails['user']) : null, 'name' => 'user', 'compact' => true])

{{ $activities->links() }} @foreach($activities as $activity) @endforeach
{{ trans('settings.audit_table_user') }} {{ trans('settings.audit_table_event') }} {{ trans('settings.audit_table_related') }} {{ trans('settings.audit_table_date') }}
@include('settings.parts.table-user', ['user' => $activity->user, 'user_id' => $activity->user_id]) {{ $activity->type }} @if($activity->entity) @icon($activity->entity->getType())
{{ $activity->entity->name }}
@elseif($activity->detail && $activity->isForEntity())
{{ trans('settings.audit_deleted_item') }}
{{ trans('settings.audit_deleted_item_name', ['name' => $activity->detail]) }}
@elseif($activity->detail)
{{ $activity->detail }}
@endif
{{ $activity->created_at }}
{{ $activities->links() }}
@stop