@extends('admin.layouts.dashboard') @section('title', 'Audit Entry') @section('content') @php $changes = $log->changes(); @endphp Back to trail
@if (empty($changes)) @else
@foreach ($changes as $field => $change) @endforeach
Field Before After
{{ str_replace('_', ' ', $field) }} {{ $change['from'] ?? '—' }} {{ $change['to'] ?? '—' }}
@endif
IP address
{{ $log->ip_address ?: '—' }}
Record
{{ $log->auditable_type ? class_basename($log->auditable_type).' #'.$log->auditable_id : '—' }}
User agent
{{ $log->user_agent ?: '—' }}
@endsection