@extends ('backend.layouts.app') @section('title') {{ __('Log Viewer Dashboard') }} @endsection @section('breadcrumbs') {{ __('Log Dashboard') }} @lang('Daily Log') @lang('Log') [{{ $log->date }}] @endsection @section('content')
@lang('Log Dashboard') @lang('Daily Log')
{{-- Log Menu --}}
@lang('Levels')
@foreach ($log->menu() as $levelKey => $item) @if ($item['count'] === 0) {!! $item['icon'] !!} {{ $item['name'] }} {{ $item['count'] }} @else {!! $item['icon'] !!} {{ $item['name'] }} {{ $item['count'] }} @endif @endforeach
{{-- Log Details --}}
@lang('Log info') :
@lang('Download')
@lang('File path') : {{ $log->getPath() }}
@lang('Log entries') : {{ $entries->total() }} @lang('Size') : {{ $log->size() }} @lang('Created at') : {{ $log->createdAt() }} @lang('Updated at') : {{ $log->updatedAt() }}
{{-- Log Entries --}}
@if ($entries->hasPages())
{{ __('Page :current of :last', ['current' => $entries->currentPage(), 'last' => $entries->lastPage()]) }}
@endif
@forelse($entries as $key => $entry) @if ($entry->hasStack() || $entry->hasContext()) @endif @empty @endforelse
@lang('ENV') @lang('Level') @lang('Time') @lang('Header') @lang('Actions')
{{ $entry->env }} {!! $entry->level() !!} {{ $entry->datetime->format('H:i:s') }} {{ $entry->header }} @if ($entry->hasStack()) @endif @if ($entry->hasContext()) @endif
@if ($entry->hasStack())
{!! $entry->stack() !!}
@endif @if ($entry->hasContext())
{{ $entry->context() }}
@endif
@lang('The list of logs is empty!')
{!! $entries->appends(compact('query'))->render('pagination::bootstrap-5') !!}
{{-- DELETE MODAL --}} @endsection @push('after-styles') @include('log-viewer::laravel-starter.style') @endpush @push('after-scripts') @endpush