@if ($log->module) @endif @if ($log->is_sensitive) @endif
Description
{{ $log->description ?: '—' }}
Actor
@if ($log->user) {{ $log->user->name }} · {{ $log->user->designation ?: 'Staff' }} @else System / guest @endif
Module
{{ $log->module ?: '—' }}
Event
{{ $log->event }}
Recorded at
{{ $log->created_at?->format('d M Y H:i:s') ?? '—' }}
Subject record
@if ($log->auditable_type) {{ class_basename($log->auditable_type) }} #{{ $log->auditable_id }} @else — @endif
Request
{{ $log->method ?: '—' }}
URL
{{ $log->url ?: '—' }}
Source address
{{ $log->ip_address ?: '—' }}
User agent
{{ $log->user_agent ?: '—' }}
@if ($log->old_values || $log->new_values)

Before

@if ($log->old_values)
@foreach ($log->old_values as $field => $value)
{{ \Illuminate\Support\Str::headline($field) }}
{{ is_scalar($value) ? ($value === null ? '—' : (string) $value) : json_encode($value) }}
@endforeach
@else

Nothing recorded.

@endif

After

@if ($log->new_values)
@foreach ($log->new_values as $field => $value)
{{ \Illuminate\Support\Str::headline($field) }}
{{ is_scalar($value) ? ($value === null ? '—' : (string) $value) : json_encode($value) }}
@endforeach
@else

Nothing recorded.

@endif
@endif
@if ($timeline->isEmpty()) @else
    @foreach ($timeline as $entry)
  1. {{ $entry->created_at?->diffForHumans() }}

    {{ $entry->description }}

  2. @endforeach
@endif
@if ($relatedBySession->isEmpty()) @else
    @foreach ($relatedBySession as $entry)
  • {{ $entry->event }} {{ $entry->created_at?->format('d M H:i') }}

    {{ $entry->description }}

  • @endforeach
@endif
@php $peak = $dailyVolume->max() ?: 1; @endphp
@for ($i = 13; $i >= 0; $i--) @php $day = now()->subDays($i)->toDateString(); $total = (int) ($dailyVolume[$day] ?? 0); @endphp
{{ $total }}
{{ now()->subDays($i)->format('d') }}
@endfor