@extends('layouts.admin') @section('title', 'Branch Audit Logs') @section('content')
User, action, entity, old value, new value, IP address, and date-time tracking.
| Date | Branch | User | Action | Entity | IP | Values |
|---|---|---|---|---|---|---|
| {{ $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) }} |