@extends('layouts.master') @section('title') Audit Trail @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Administration @endslot @slot('title') Audit Trail @endslot @endcomponent
| When | User | Action | Record | Changes | IP |
|---|---|---|---|---|---|
| {{ $log->created_at?->format('d M Y H:i') }} | {{ $log->user?->name ?? 'system' }} {{ \App\Models\User::ROLE_LABELS[$log->user_role] ?? $log->user_role }} |
{{ ucfirst($log->action) }} | {{ $log->model_name }} {{ $log->label }} |
@php $new = $log->new_values ?? []; $old = $log->old_values ?? []; @endphp
@if($log->action==='updated' && $new)
@foreach($new as $k => $v)
{{ $k }}: |
{{ $log->ip_address }} |
| No audit records match. | |||||