@extends('layouts.admin') @section('title', 'Application Logs') @section('breadcrumb', 'Application Logs') @php if (!function_exists('log_level_badge')) { function log_level_badge($level) { return match ($level) { 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY' => 'bg-red-100 text-red-800', 'WARNING' => 'bg-yellow-100 text-yellow-800', 'INFO', 'NOTICE' => 'bg-blue-100 text-blue-800', 'DEBUG' => 'bg-gray-100 text-gray-700', default => 'bg-purple-100 text-purple-800', }; } } @endphp @section('content')

Application Logs

View, search, download, clear or delete application log files.

@if ($currentFile)
Download
@csrf @method('DELETE')
@csrf @method('DELETE')
@endif

Total

{{ number_format($stats['total']) }}

Errors

{{ number_format($stats['ERROR']) }}

Warnings

{{ number_format($stats['WARNING']) }}

Info

{{ number_format($stats['INFO']) }}

Debug

{{ number_format($stats['DEBUG']) }}

Reset
@forelse ($entries as $entry)
{{ $entry['level'] }}
{{ $entry['date'] }} {{ $entry['channel'] }}

{{ $entry['message'] }}

@if (!empty($entry['context']))
View context / trace
{{ $entry['context'] }}
@endif
@empty

No log entries found{{ $search || $level ? ' for the current filters' : '' }}.

@endforelse
@if ($entries->hasPages())
{{ $entries->links() }}
@endif
@endsection