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

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

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

@foreach(request()->only(['order', 'sort']) as $key => $val) @endforeach @if(!empty($filters['event'])) @endif @foreach(['date_from', 'date_to'] as $filterKey)
@endforeach
@include('form.user-select', ['user' => $filters['user'] ? \BookStack\Auth\User::query()->find($filters['user']) : null, 'name' => 'user'])
@include('form.text', ['name' => 'ip', 'model' => (object) $filters])

{{ $activities->links() }}
@include('common.sort', [...$listOptions->getSortControlData(), 'useQuery' => true])
{{ trans('settings.audit_table_user') }}
{{ trans('settings.audit_table_event') }}
{{ trans('settings.audit_table_related') }}
{{ trans('settings.audit_table_ip') }}
{{ trans('settings.audit_table_date') }}
@foreach($activities as $activity)
@include('settings.parts.table-user', ['user' => $activity->user, 'user_id' => $activity->user_id])
{{ trans('settings.audit_table_event') }}: {{ $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
{{ trans('settings.audit_table_ip') }}:
{{ $activity->ip }}
{{ trans('settings.audit_table_date') }}:
{{ $activity->created_at }}
@endforeach
{{ $activities->links() }}
@stop