@if (isset($model->changes()['old']))
@foreach ($model->changes()['old'] as $key => $item)
@endif
@if (isset($model->changes()['attributes']))
@foreach ($model->changes()['attributes'] as $key => $item)
@endif
# {{ __('log::dashboard.logs.show.form.old') }}
| {{ $key }} | {{ in_array($key, ['created_at', 'updated_at']) ? date('Y-m-d H:i a', strtotime($item)) : $item }} |
# {{ __('log::dashboard.logs.show.form.changes') }}
| {{ $key }} | @if (is_array($item)) @php $v = implode(',', $item); @endphp {{ $v }} @else {{ in_array($key, ['created_at', 'updated_at']) ? date('Y-m-d H:i a', strtotime($item)) : $item }} @endif |