@extends('admin.layouts.app') @section('title', __('audit.title')) @section('header', __('audit.title')) @section('breadcrumb') {{ __('common.admin') }} / {{ __('audit.title') }} @endsection @section('content') {{-- Filter bar --}}
{{-- Results --}}{{ __('audit.no_entries') }}
| {{ __('audit.col_when') }} | {{ __('audit.col_user') }} | {{ __('audit.col_action') }} | {{ __('audit.col_model') }} | {{ __('audit.col_record') }} | {{ __('audit.col_changes') }} | {{ __('audit.col_ip') }} | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($log->created_at)->format('Y.m.d H:i') }} | {{ $log->user_name ?? '—' }} | @php $actionStyles = [ 'created' => 'background:rgba(10,179,156,0.12);color:#0a7564', 'updated' => 'background:rgba(64,81,137,0.12);color:#405189', 'deleted' => 'background:rgba(240,101,72,0.12);color:#c0432a', 'restored' => 'background:rgba(41,156,219,0.12);color:#1a7ca8', ]; @endphp {{ __('audit.action_'.$log->action) }} | {{ $log->auditable_type }} | {{ $log->model_label ?? '#'.$log->auditable_id }} #{{ $log->auditable_id }} | @if($log->changes && count($log->changes)) @else — @endif | {{ $log->ip_address ?? '—' }} | ||||||
|
||||||||||||