@extends('layouts.admin') @section('title', 'Branch Audit Logs') @section('content')
@foreach($logs as $log) @endforeach
DateBranchUserActionEntityIPValues
{{ $log->created_at->format('d M Y H:i') }}{{ $log->branch?->name ?? 'Global' }}{{ $log->user?->name ?? 'System' }}{{ str_replace('.', ' ', $log->action) }}{{ class_basename($log->entity_type) }} #{{ $log->entity_id }}{{ $log->ip_address }}
View
{{ json_encode(['old' => $log->old_values, 'new' => $log->new_values], JSON_PRETTY_PRINT) }}
@endsection