@extends('apps::dashboard.layouts.app') @section('title', __('log::dashboard.logs.routes.details')) @section('content')
@if (isset($model->changes()['old']))

# {{ __('log::dashboard.logs.show.form.old') }}

@foreach ($model->changes()['old'] as $key => $item) @endforeach
{{ $key }} {{ in_array($key, ['created_at', 'updated_at']) ? date('Y-m-d H:i a', strtotime($item)) : $item }}
@endif @if (isset($model->changes()['attributes']))

# {{ __('log::dashboard.logs.show.form.changes') }}

@foreach ($model->changes()['attributes'] as $key => $item) @endforeach
{{ $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
@endif
@stop @section('scripts') @stop