@extends('admin.layouts.app') @section('title', 'Error Logs') @section('page-header')

Error Logs

View and track system errors

← Back to Logs
@endsection @section('content')
@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
@endsection