@extends('layouts.dashboard') @section('title', 'Audit Log Details') @section('header', 'Audit Log Details') @section('sidebar') @include('super-admin.partials.sidebar') @endsection @section('content')
Back to Logs

Audit Log

{{ ucfirst($auditLog->action ?? 'N/A') }}

{{ $auditLog->created_at ? $auditLog->created_at->format('M d, Y H:i') : '—' }}
User
{{ $auditLog->user->name ?? 'System' }}
{{ $auditLog->user->email ?? '' }}
Company
{{ $auditLog->company->name ?? 'N/A' }}
{{ $auditLog->company_id ?? '—' }}
Model
{{ $auditLog->model_type ? class_basename($auditLog->model_type) : 'N/A' }}
{{ $auditLog->model_id ?? '—' }}
IP / Agent
{{ $auditLog->ip_address ?? '—' }}
{{ $auditLog->user_agent ?? '' }}
Description
{{ $auditLog->description ?? '—' }}
Old values
{{ json_encode($auditLog->old_values ?? [], JSON_PRETTY_PRINT) }}
New values
{{ json_encode($auditLog->new_values ?? [], JSON_PRETTY_PRINT) }}
@endsection