| {{ __('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')
@else
@foreach ($log->properties['attributes'] as $key => $value)
@else
@if (isset($log->properties['old']))
{{ 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
@foreach ($log->properties['old'] as $key => $value)
@endif
@if (isset($log->properties['attributes']))
{{ 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
@foreach ($log->properties['attributes'] as $key => $value)
@endif
@endif
{{ 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
{{ __('No changes recorded or subject is missing.') }} @endif |
{{ $log->created_at->format('Y-m-d | h:i A') }} |