{{ __('Admin Logs') }}

@foreach ($logs as $log) @endforeach
{{ __('ID') }} {{ __('Admin') }} {{ __('Action') }} {{ __('Details') }} {{ __('Date') }}
{{ $log->id }} {{ $log->causer ? $log->causer->name : 'Sys' }} {{ __($log->description) }} @if ($log->properties->isNotEmpty() && $log->subject)
@if ($log->event === 'created')
@foreach ($log->properties['attributes'] as $key => $value)
{{ ucfirst($key) }}: {{ __('Created with') }}: @if (method_exists($log->subject, 'formatLogAttribute')) {{ Str::limit($log->subject->formatLogAttribute($key, $value), 20) }} @else {{ Str::limit($value, 20) }} @endif
@endforeach
@else @if (isset($log->properties['old']))
@foreach ($log->properties['old'] as $key => $value)
{{ ucfirst($key) }}: Changed from: @if (method_exists($log->subject, 'formatLogAttribute')) {{ Str::limit($log->subject->formatLogAttribute($key, $value), 20) }} @else {{ Str::limit($value, 20) }} @endif
@endforeach
@endif @if (isset($log->properties['attributes']))
@foreach ($log->properties['attributes'] as $key => $value)
{{ ucfirst($key) }}: {{ __('Changed to') }}: @if (method_exists($log->subject, 'formatLogAttribute')) {{ Str::limit($log->subject->formatLogAttribute($key, $value), 20) }} @else {{ Str::limit($value, 20) }} @endif
@endforeach
@endif @endif
@else

{{ __('No changes recorded or subject is missing.') }}

@endif
{{ $log->created_at->format('Y-m-d | h:i A') }}
{{-- {{ $logs->links('vendor.pagination.custom') }} --}}