@extends('layouts.app') @section('title','Audit Logs - NGBVD') @section('content')
Governance & Accountability

System Audit Logs

Track user activity, access attempts, administrative actions and sensitive data events.

Access & Permission Events User Activity System Actions

Activity Register

Click View to open the audit record in a modal without leaving this page.

@forelse($logs as $log) @php $status = strtolower($log->status ?? 'recorded'); $badgeClass = $status === 'success' ? 'ngbvd-badge-success' : (in_array($status, ['failed','denied','error']) ? 'ngbvd-badge-danger' : 'ngbvd-badge-muted'); $modalId = 'auditLogModal'.$log->id; @endphp @empty @endforelse
Date User Module Action Method Status Details
{{ optional($log->created_at)->format('d M Y') }}
{{ optional($log->created_at)->format('H:i:s') }}
{{ $log->user_email ?: 'System' }}
{{ $log->role ?: 'Role not captured' }}
{{ $log->module ?: 'General' }} {{ $log->action ?: 'Activity' }} {{ $log->method ?: 'N/A' }} {{ ucfirst($status) }}
No audit records foundSystem activity will appear here once users interact with protected functions.

Filter Audit Logs

Search by module, action, user or status.

Clear Filters
@foreach($logs as $log) @php $modalId = 'auditLogModal'.$log->id; @endphp @endforeach @endsection