{{ __('staff.audit-log') }}

@forelse ($audits as $audit) @empty @endforelse
# {{ __('common.action') }} Model Model ID By Changes {{ __('user.created-on') }} {{ __('common.action') }}
{{ $audit->id }} {{ strtoupper($audit->action) }} {{ class_basename($audit->auditable_type) }} {{ $audit->auditable_id }} {{ $audit->user->username }}
    @foreach ($audit->values as $key => $value)
  • {{ $key }}: {{ json_encode($value['old'], JSON_THROW_ON_ERROR) }} → {{ json_encode($value['new'], JSON_THROW_ON_ERROR) }}
  • @endforeach
  • @csrf @method('DELETE')
  • No audits
    {{ $audits->links('partials.pagination') }}