| {{ __('Staff') }} | {{ __('Action') }} | {{ __('Module') }} | {{ __('Record') }} | {{ __('IP Address') }} | {{ __('Date') }} | {{ __('Result') }} | |
|---|---|---|---|---|---|---|---|
|
{{ $log->user_name ?: '—' }}
{{ $log->user_role ?: '—' }}
|
{{-- Action badge --}}
@php $actionColor = match ($log->action) { 'create' => 'var(--color-success)', 'update' => 'var(--color-primary)', 'delete' => 'var(--color-danger)', 'toggle' => 'var(--color-warning)', default => 'var(--color-text-muted)', }; @endphp {{ __(ucfirst($log->action)) }} | {{-- Module --}}{{ __(ucwords(str_replace('_', ' ', $log->module))) }} | {{-- Record --}}@if ($log->target_label) {{ $log->target_label }} @if ($log->target_type) ({{ class_basename($log->target_type) }}) @endif @else — @endif | {{-- IP --}}{{ $log->ip ?? '—' }} | {{-- Date --}}{{ $log->created_at->diffForHumans() }} | {{-- Result --}}@if ($log->result === 'success') {{ __('Success') }} @else {{ __('Failed') }} @endif | {{-- Detail button --}}
{{ __('Staff') }}
{{ $detail->user_name }}
{{ $detail->user_role }}
{{ __('Date') }}
{{ rf_datetime($detail->created_at) }}
{{ $detail->created_at->diffForHumans() }}
{{ __('IP Address') }}
{{ $detail->ip ?? '—' }}
{{ __('User Agent') }}
{{ $detail->user_agent ? \Illuminate\Support\Str::limit($detail->user_agent, 60) : '—' }}
{{ __('Record') }}
@if ($detail->target_type) {{ class_basename($detail->target_type) }} @if ($detail->target_id) #{{ $detail->target_id }} @endif — @endif {{ $detail->target_label ?? '—' }}
{{ __('Before') }}
| {{ $k }} | @if ($v === '[REDACTED]') [REDACTED] @elseif (is_array($v)) {{ json_encode($v) }} @else {{ $v }} @endif |
{{ __('After') }}
| {{ $k }} | @if ($v === '[REDACTED]') [REDACTED] @elseif (is_array($v)) {{ json_encode($v) }} @else {{ $v }} @endif |
{{ __('Log entry not found.') }}
@endif