@extends('layouts.dashboard') @section('page-content')
Back to Audit Logs

Audit Log Details

{{ ucfirst($auditLog->action) }}

{{ $auditLog->created_at->format('Y-m-d H:i:s') }}

@if($auditLog->user)

{{ $auditLog->user->name }}

{{ $auditLog->user->email }}

@else

System

@endif

{{ class_basename($auditLog->auditable_type) }}

{{ $auditLog->auditable_id ?? 'N/A' }}

{{ $auditLog->ip_address ?? 'N/A' }}

{{ $auditLog->user_agent ?? 'N/A' }}

{{ $auditLog->description }}

@if($auditLog->old_values)
{{ json_encode($auditLog->old_values, JSON_PRETTY_PRINT) }}
@endif @if($auditLog->new_values)
{{ json_encode($auditLog->new_values, JSON_PRETTY_PRINT) }}
@endif @if($auditLog->properties)
{{ json_encode($auditLog->properties, JSON_PRETTY_PRINT) }}
@endif
@endsection