@extends('layouts.app') @section('title', 'Activity Log') @section('subtitle', 'Audit trail of system actions') @section('content')
@forelse ($logs as $log) @empty @endforelse
When User Action Description IP
{{ $log->created_at->format('j M Y') }}
{{ $log->created_at->format('g:i:s A') }}
@if ($log->user)
{{ $log->user->initials() }} {{ $log->user->name }}
@else System @endif
{{ ucfirst(str_replace('_', ' ', $log->action)) }} {{ $log->description }} {{ $log->ip_address ?? '—' }}
@if ($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection