@php $actionIcons = [ 'viewed' => 'eye', 'created' => 'plus', 'updated' => 'edit', 'deleted' => 'trash', 'printed' => 'printer', 'exported' => 'download', ]; @endphp @if ($patient->is_confidential) @endif Every open of this record is written here.
@if ($restrictedAccessCount > 0) {{ $restrictedAccessCount }} {{ Str::plural('open', $restrictedAccessCount) }} of this record happened while the confidentiality flag was raised. Those rows carry the reason the viewer gave. @endif
@if (request()->hasAny(['action', 'user'])) Clear @endif
@if ($logs->isEmpty()) @else
@foreach ($logs as $log) @endforeach
When Who Action Module Reason Source
{{ $log->accessed_at?->format('d M Y') }} {{ $log->accessed_at?->format('H:i:s') }} @if ($log->user) {{ $log->user->name }} {{ $log->user->designation }} @else system @endif {{ $log->action }} @if ($log->was_restricted) restricted @endif {{ $log->module ?: '—' }} {{ $log->access_reason ?: '—' }} {{ $log->ip_address ?: '—' }} @if ($log->user_agent) {{ $log->user_agent }} @endif
@if ($logs->hasPages())
{{ $logs->links() }}
@endif @endif

Rows are never edited or removed by hand. Retention follows the Audit trail retention setting under System → Settings.