@section('page-title', 'Audit Logs')

Audit Logs

Track all data mutations across the system

Clear
@feature('audit_pdf_export')

Generate Audit Report

@endfeature

Log Entries

{{ $logs->total() }} total entries
@forelse($logs as $log) @if($log->new_values || $log->old_values) @endif @empty @endforelse
Timestamp User Action Type ID IP Address Details
{{ $log->created_at->format('d M Y H:i:s') }} {{ $log->user?->name ?? 'System' }} @php $actionColors = [ 'created' => 'bg-green-100 text-green-700', 'updated' => 'bg-blue-100 text-blue-700', 'deleted' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($log->action) }} {{ $log->auditable_type }} {{ $log->auditable_id }} {{ $log->ip_address }} @if($log->new_values || $log->old_values) @else - @endif
@if($log->new_values)

New Values:

{{ json_encode($log->new_values, JSON_PRETTY_PRINT) }}
@endif @if($log->old_values)

Old Values:

{{ json_encode($log->old_values, JSON_PRETTY_PRINT) }}
@endif
No audit log entries found.
@if($logs->hasPages())
{{ $logs->links() }}
@endif