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