diff --git a/composer.json b/composer.json index 897c97dc..4b07c82a 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "laravel/framework": "^11.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": "^9.0", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^10.1" }, "autoload": { "psr-4": { diff --git a/config/log-viewer.php b/config/log-viewer.php index 79c4c7b2..7bd60908 100644 --- a/config/log-viewer.php +++ b/config/log-viewer.php @@ -36,11 +36,14 @@ | Theme | ----------------------------------------------------------------- | Supported themes : - | 'bootstrap-3', 'bootstrap-4' - | Make your own theme by adding a folder to the views directory and specifying it here. + | 'bootstrap-5' + | 'bootstrap-4' + | 'bootstrap-3' + | + | You can make your own theme by adding a folder to the views directory and specifying it here. */ - 'theme' => 'bootstrap-4', + 'theme' => 'bootstrap-5', /* ----------------------------------------------------------------- | Route settings diff --git a/views/bootstrap-5/_master.blade.php b/views/bootstrap-5/_master.blade.php new file mode 100644 index 00000000..4be6666a --- /dev/null +++ b/views/bootstrap-5/_master.blade.php @@ -0,0 +1,277 @@ + + +
+ + + + ++ @if ($key == 'date') + {{ $header }} + @else + + {{ log_styler()->icon($key) }} {{ $header }} + + @endif + | + @endforeach +@lang('Actions') | +|||||||||
---|---|---|---|---|---|---|---|---|---|---|
+ @if ($key == 'date') + {{ $value }} + @elseif ($value == 0) + {{ $value }} + @else + + {{ $value }} + + @endif + | + @endforeach ++ + + + + + + + + + | +|||||||||
+ @lang('The list of logs is empty!') + | +
@lang('File path') : | +{{ $log->getPath() }} | +||||||
@lang('Log entries') : | ++ {{ $entries->total() }} + | +@lang('Size') : | ++ {{ $log->size() }} + | +@lang('Created at') : | ++ {{ $log->createdAt() }} + | +@lang('Updated at') : | ++ {{ $log->updatedAt() }} + | +
@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()) + + @lang('Stack') + + @endif + + @if ($entry->hasContext()) + + @lang('Context') + + @endif + | +
+ @if ($entry->hasStack())
+
+ {!! $entry->stack() !!}
+
+ @endif
+
+ @if ($entry->hasContext())
+
+
+ @endif
+ {{ $entry->context() }}+ |
+ ||||
+ @lang('The list of logs is empty!') + | +