@php
$logFile = storage_path('logs/laravel.log');
$logs = file_exists($logFile) ? file($logFile) : [];
$errorLogs = array_filter($logs, fn($log) => stripos($log, 'error') !== false || stripos($log, 'exception') !== false);
@endphp
@forelse(array_slice(array_reverse($errorLogs), 0, 50) as $log)
{{ Str::limit($log, 300) }}
@empty
No errors found. Great!
@endforelse