@extends('layouts.admin') @section('title', 'Audit log') @section('content')
@if (request()->hasAny(['action', 'actor'])) {{ __('Clear') }} @endif

{{ trans_choice('One entry|:count entries', $logs->total(), ['count' => $logs->total()]) }}

@if ($logs->isEmpty()) @else
@foreach ($logs as $log) {{-- The name is the copy taken at the time: the account may be gone, and "deleted user did X" answers nothing. --}} @endforeach
{{ __('When') }} {{ __('Who') }} {{ __('Action') }} {{ __('What') }} {{ __('Note') }}
{{ $log->created_at?->format('d M Y, H:i') }} {{ $log->actor_name ?: __('System') }} {{ $log->action }} {{ $log->subject_label ?: '—' }} {{ $log->note ?: '—' }}
{{ $logs->links() }}
@endif @endsection