@if($detail['type'] === 'audit')

基本情報

イベント
{{ $detail['event_name'] }}
対象テーブル
{{ $detail['table_name'] }}
レコードID
{{ $detail['record_id'] }}
実行日時
{{ $detail['created_at']->format('Y年m月d日 H:i:s') }}

実行者情報

ユーザー
{{ $detail['user_name'] }}
セッションID
{{ $detail['session_id'] ?? '-' }}
IPアドレス
{{ $detail['ip_address'] ?? '-' }}
URL
{{ $detail['url'] ?? '-' }}
@if(!empty($detail['changes']) && count($detail['changes']) > 0)

変更内容

@foreach($detail['changes'] as $change) @endforeach
フィールド 変更前 変更後
{{ $change['field_name'] }} {{ $change['old_value'] }} {{ $change['new_value'] }}
@endif @if(!empty($detail['old_values']) || !empty($detail['new_values']))

生データ

変更前データ
{{ json_encode($detail['old_values'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: '-' }}
変更後データ
{{ json_encode($detail['new_values'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: '-' }}
@endif
@else

基本情報

操作内容
{{ $detail['description'] }}
メニュー名
{{ $detail['menu_name'] ?? '-' }}
アクション種別
{{ $detail['action_type'] ?? '-' }}
実行日時
{{ $detail['created_at']->format('Y年m月d日 H:i:s') }}

実行者情報

ユーザー
{{ $detail['user_name'] }}
セッションID
{{ $detail['session_id'] ?? '-' }}
IPアドレス
{{ $detail['ip_address'] ?? '-' }}
URL
{{ $detail['url'] ?? '-' }}
@if(!empty($detail['processing_time']))

処理情報

処理時間
{{ $detail['processing_time'] }}ms
ステータスコード
{{ $detail['status_code'] ?? '-' }}
@endif @if(!empty($detail['properties']))

詳細プロパティ

{{ json_encode($detail['properties'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@endif
@endif