@extends('layouts.app') @section('heading', 'Audit log') @section('content')
@foreach($logs as $log) @endforeach
WhenWhoActionDetails
{{ $log->created_at->format('d M Y H:i') }} {{ $log->user->name ?? 'System' }} {{ $log->action }} @foreach(($log->details ?? []) as $key => $value)
{{ $key }}: {{ is_array($value) ? json_encode($value) : $value }}
@endforeach
{{ $logs->links() }}
@endsection