@extends('layouts.app-sidebar') @section('content')

Audit Logs

System activity and changes

Activity Log

Recent system changes and user actions

@forelse($audits as $audit)

{{ $audit->user->name ?? 'System' }}

{{ $audit->created_at->format('M d, H:i:s') }}

@if($audit->action === 'created') Created @elseif($audit->action === 'updated') Updated @elseif($audit->action === 'deleted') Deleted @else {{ ucfirst($audit->action) }} @endif
{{ class_basename($audit->auditable_type) }} #{{ $audit->auditable_id }}
@if($audit->changes)
View Changes
{{ json_encode($audit->changes, JSON_PRETTY_PRINT) }}
@endif
@empty

No audit logs found

@endforelse
@if($audits->hasPages())
{{ $audits->links() }}
@endif
@endsection