diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php
index 7e7cd35d..49c36f49 100644
--- a/app/Http/Controllers/AdminController.php
+++ b/app/Http/Controllers/AdminController.php
@@ -6,6 +6,7 @@ use App\Models\Player;
use App\Models\Texture;
use App\Models\User;
use App\Notifications;
+use App\Services\Filter;
use App\Services\OptionForm;
use App\Services\PluginManager;
use Auth;
@@ -406,7 +407,8 @@ class AdminController extends Controller
public function status(
Request $request,
PluginManager $plugins,
- Filesystem $filesystem
+ Filesystem $filesystem,
+ Filter $filter
) {
$db = get_db_config();
$enabledPlugins = $plugins->getEnabledPlugins()->map(function ($plugin) {
@@ -421,7 +423,21 @@ class AdminController extends Controller
$commit = $process->isSuccessful() ? trim($process->getOutput()) : '';
}
+ $grid = [
+ 'layout' => [
+ ['md-6', 'md-6']
+ ],
+ 'widgets' => [
+ [
+ ['admin.widgets.status.info'],
+ []
+ ]
+ ]
+ ];
+ $grid = $filter->apply('grid:admin.status', $grid);
+
return view('admin.status')
+ ->with('grid', $grid)
->with('detail', [
'bs' => [
'version' => config('app.version'),
diff --git a/resources/views/admin/status.twig b/resources/views/admin/status.twig
index 6832c441..1caefb1e 100644
--- a/resources/views/admin/status.twig
+++ b/resources/views/admin/status.twig
@@ -3,42 +3,5 @@
{% block title %}{{ trans('general.status') }}{% endblock %}
{% block content %}
-
-
-
-
-
-
-
- {% for category, info in detail %}
-
- | {{ trans("admin.status.#{category}.name") }} |
-
- {% for key, value in info %}
-
- | {{ trans("admin.status.#{category}.#{key}") }} |
- {{ value }} |
-
- {% endfor %}
- {% endfor %}
-
- |
- {{ trans('admin.status.plugins', {amount: plugins|length}) }}
- |
-
- {% for plugin in plugins %}
-
- | {{ plugin.title }} |
- {{ plugin.version }} |
-
- {% endfor %}
-
-
-
-
-
-
-
+ {{ include('shared.grid') }}
{% endblock %}
diff --git a/resources/views/admin/widgets/status/info.twig b/resources/views/admin/widgets/status/info.twig
new file mode 100644
index 00000000..c44776d4
--- /dev/null
+++ b/resources/views/admin/widgets/status/info.twig
@@ -0,0 +1,33 @@
+
+
+
+
+
+ {% for category, info in detail %}
+
+ | {{ trans("admin.status.#{category}.name") }} |
+
+ {% for key, value in info %}
+
+ | {{ trans("admin.status.#{category}.#{key}") }} |
+ {{ value }} |
+
+ {% endfor %}
+ {% endfor %}
+
+ |
+ {{ trans('admin.status.plugins', {amount: plugins|length}) }}
+ |
+
+ {% for plugin in plugins %}
+
+ | {{ plugin.title }} |
+ {{ plugin.version }} |
+
+ {% endfor %}
+
+
+
+