Skip to content

Commit

Permalink
Fixing the logviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Oct 16, 2019
1 parent feff07e commit 2c24885
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Http/Controllers/Admin/System/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,13 @@ public function show(Log $log)

$levels = $this->logViewer->levelsNames();
$entries = $log->entries($level = 'all')->paginate($this->perPage);
$query = '';

$this->addBreadcrumbRoute(trans('foundation::log-viewer.titles.logs-list'), 'admin::foundation.system.log-viewer.logs.list');
$this->setTitle($title = "Log : {$log->date}");
$this->addBreadcrumb($title);

return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'level', 'search', 'entries'));
return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'level', 'query', 'entries'));
}

/**
Expand All @@ -156,14 +157,15 @@ public function showByLevel(Log $log, $level)

$levels = $this->logViewer->levelsNames();
$entries = $this->logViewer->entries($log->date, $level)->paginate($this->perPage);
$query = '';

$this->addBreadcrumbRoute(trans('foundation::log-viewer.titles.logs-list'), 'admin::foundation.system.log-viewer.logs.list');

$this->setTitle($log->date.' | '.ucfirst($level));
$this->addBreadcrumbRoute($log->date, 'admin::foundation.system.log-viewer.logs.show', [$log->date]);
$this->addBreadcrumb(ucfirst($level));

return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'entries', 'level'));
return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'query', 'entries', 'level'));
}

/**
Expand Down

0 comments on commit 2c24885

Please sign in to comment.