@extends('layouts.admin') @section('content')

Audit Log Details

Back to Logs

{{ $auditLog->formatted_action }}

{{ $auditLog->log_date->format('F j, Y \a\t g:i A') }} ({{ $auditLog->time_ago }})

Log Information

Log ID
#{{ $auditLog->log_id }}
Action
{{ $auditLog->formatted_action }}
Description
{{ $auditLog->description ?? 'No description provided' }}
Date & Time
{{ $auditLog->log_date->format('F j, Y \a\t g:i A') }}

User Information

@if($auditLog->user)
{{ substr($auditLog->user->name, 0, 1) }}
{{ $auditLog->user->name }}
{{ $auditLog->user->email }}
Role: {{ ucfirst($auditLog->user->role) }}
@else
User information not available (User may have been deleted)
@endif

Technical Details

IP Address
{{ $auditLog->ip_address ?? 'Not recorded' }}
User Agent
{{ $auditLog->user_agent ?? 'Not recorded' }}
Model Type
{{ $auditLog->model_type ?? 'N/A' }}
Model ID
{{ $auditLog->model_id ?? 'N/A' }}
@if($auditLog->old_values || $auditLog->new_values)

Data Changes

@if($auditLog->old_values)

Previous Values

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

New Values

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