{{-- resources/views/activity-log/index.blade.php --}} @extends('layouts.app') @section('title', 'Лог действий') @section('content')
| Дата/Время | Пользователь | Действие | Объект | Название | Изменения |
|---|---|---|---|---|---|
| @if($log->created_at) {{ $log->created_at instanceof \Carbon\Carbon ? $log->created_at->format('d.m.Y H:i:s') : date('d.m.Y H:i:s', strtotime($log->created_at)) }} @endif | {{ $log->user_name }} | @if($log->action === 'created') Создан @elseif($log->action === 'updated') Изменен @elseif($log->action === 'deleted') Удален @else {{ $log->action }} @endif | {{ class_basename($log->model_type) }} | {{ Str::limit($log->model_name, 50) }} | @if($log->changes) @php $changes = $log->changes; if (is_string($changes)) { $changes = json_decode($changes, true); } @endphp @if(is_array($changes)) @foreach($changes as $field => $value) {{ $field }}: {{ is_array($value) ? json_encode($value, JSON_UNESCAPED_UNICODE) : $value }} @endforeach @endif @else - @endif |
|
Лог действий пуст |
|||||