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

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

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

@foreach(['date_from', 'date_to'] as $filterKey)
@foreach($listDetails as $param => $val) @if(!empty($val) && $param !== $filterKey) @endif @endforeach
@endforeach

{{ $activities->links() }} @foreach($activities as $activity) @endforeach
{{ trans('settings.audit_table_user') }} {{ trans('settings.audit_table_event') }} {{ trans('settings.audit_table_item') }} {{ trans('settings.audit_table_date') }}
@if($activity->user)
{{ $activity->user->name }}
{{ $activity->user->name }}
@else [ID: {{ $activity->user_id }}] {{ trans('common.deleted_user') }} @endif
{{ $activity->key }} @if($activity->entity) @icon($activity->entity->getType())
{{ $activity->entity->name }}
@elseif($activity->extra)
{{ trans('settings.audit_deleted_item') }}
{{ trans('settings.audit_deleted_item_name', ['name' => $activity->extra]) }}
@endif
{{ $activity->created_at }}
{{ $activities->links() }}
@stop