@php $tz = config('app.display_timezone'); $eventColor = ['created' => 'emerald', 'updated' => 'sky', 'deleted' => 'rose', 'restored' => 'violet', 'merged' => 'amber']; @endphp

{{ __('Changes') }}

{{ trans_choice('{0}No changes|{1}:count change|[2,*]:count changes', $audits->total(), ['count' => number_format($audits->total())]) }} @if ($record && $type !== '') · {{ __('one :type only', ['type' => \Illuminate\Support\Str::lower(\App\Services\Crm\Admin\RecordDirectory::TYPES[$type][1] ?? '')]) }} @endif

@if ($hasFilters) @endif
@forelse ($entries as $entry) @empty @endforelse
{{ __('When') }} {{ __('Who') }} {{ __('What') }} {{ __('Record') }} {{ __('Change') }}
{{ $entry['when']?->copy()->timezone($tz)->format('j M Y') }} {{ $entry['when']?->copy()->timezone($tz)->format('H:i') }} {{ $entry['who'] }} {{ $entry['eventLabel'] }} {{ $entry['typeLabel'] }} @if ($entry['url']) {{ $entry['name'] }} @else {{ $entry['name'] }} @endif @if ($entry['deleted']) {{ __('Deleted') }} @endif @if ($entry['type'] && ! ($record && $type === $entry['type'])) @endif @if ($entry['changes'] !== [])
    @foreach ($entry['changes'] as $change)
  • {{ $change['field'] }}: @if ($change['from'] !== null) {{ $change['from'] }} @endif {{ $change['to'] }}
  • @endforeach
@elseif ($entry['event'] === 'updated') {{ __('Only housekeeping fields changed') }} @else {{ $entry['eventLabel'] }} @endif @if ($entry['reason'])

{{ __('Reason: :reason', ['reason' => $entry['reason']]) }}

@endif
@if ($hasFilters) @else @endif
@if ($audits->hasPages())
{{ $audits->links() }}
@endif