@foreach($revisions as $revisionDate => $dateRevisions)

{{ Carbon\Carbon::parse($revisionDate)->isoFormat(config('backpack.ui.default_date_format')) }}

@foreach($dateRevisions as $history)
@if($history->key == 'created_at' && !$history->old_value)
{{ date('h:ia', strtotime($history->created_at)) }} - {{ $history->userResponsible()?$history->userResponsible()->name:trans('revise-operation::revise.guest_user') }} {{ trans('revise-operation::revise.created_this') }} {{ $crud->entity_name }}
@else
{{ date('h:ia', strtotime($history->created_at)) }} - {{ $history->userResponsible()?$history->userResponsible()->name:trans('revise-operation::revise.guest_user') }} {{ trans('revise-operation::revise.changed_the') }} {{ $history->fieldName() }}
{!! csrf_field() !!}
{{ mb_ucfirst(trans('revise-operation::revise.from')) }}:
{{ mb_ucfirst(trans('revise-operation::revise.to')) }}:
{{ $history->oldValue() }}
{{ $history->newValue() }}
@endif
@endforeach @endforeach
@section('after_scripts') @endsection @section('after_styles') {{-- Animations for new revisions after ajax calls --}} @endsection