{{-- Alerts --}}
@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
{{-- Top Header --}}
{{-- KPI Cards --}}
Total Entries
{{ number_format($stats['total']) }}
Errors & Critical
{{ number_format($stats['error']) }}
Warnings
{{ number_format($stats['warning']) }}
Info & Notices
{{ number_format($stats['info']) }}
Debug Logs
{{ number_format($stats['debug']) }}
{{-- Filter Toolbar --}}
{{-- Log Entries List --}}
@if (empty($entries))
No matching log entries found for this file.
@else
@foreach ($entries as $index => $entry)
@php
$upper = strtoupper($entry['level']);
if (in_array($upper, ['EMERGENCY', 'ALERT', 'CRITICAL', 'ERROR'])) {
$badgeClass = 'badge-error';
} elseif ($upper === 'WARNING') {
$badgeClass = 'badge-warning';
} elseif (in_array($upper, ['NOTICE', 'INFO'])) {
$badgeClass = 'badge-info';
} else {
$badgeClass = 'badge-debug';
}
@endphp
{{ $entry['message'] }}
@if ($entry['context'] || $entry['stack_trace'])
@if ($entry['context'])
@endif
@if ($entry['stack_trace'])
@endif
@if ($entry['context'])
{{ $entry['context'] }}
@endif
@if ($entry['stack_trace'])
{{ $entry['stack_trace'] }}
@endif
@endif
@endforeach
{{-- Pagination --}}
@if ($total_pages > 1)
@endif
@endif
{{-- Standalone Modal for Clear Log --}}