@extends('layouts.app') @section('title', 'View Log File: ' . $filename) @section('content')

View Log File

{{ $filename }}

Kembali ke Log Files Download
Log Content @if($search) Filtered: "{{ $search }}" @endif
{{ count($content) }} lines
@if(count($content) > 0)
@foreach($content as $index => $line){{ $line }}
@endforeach
@else
Log file kosong atau tidak ada hasil
@if($search)

Tidak ada baris yang cocok dengan pencarian "{{ $search }}"

Hapus Filter @else

File log tidak memiliki konten atau belum dapat dibaca.

@endif
@endif
@if(count($content) > 0)
Log Analysis

{{ count($content) }}

Total Lines

{{ count(array_filter($content, function($line) { return stripos($line, 'error') !== false; })) }}

Error Lines

{{ count(array_filter($content, function($line) { return stripos($line, 'warning') !== false; })) }}

Warning Lines

{{ count(array_filter($content, function($line) { return stripos($line, 'info') !== false; })) }}

Info Lines
@endif
Quick Actions
File Actions
@push('scripts') @endpush @endsection