From 92adf7c6aa517bd36197605f82daf6bcd3dbe2e9 Mon Sep 17 00:00:00 2001 From: ArthurHetem Date: Mon, 20 Jan 2025 22:55:35 -0300 Subject: [PATCH] feat: include logo + version on dashboard widget --- app/Filament/Widgets/DashboardWidget.php | 29 +++++++++++++++++++ .../widgets/dashboard-widget.blade.php | 10 +++++++ 2 files changed, 39 insertions(+) create mode 100644 app/Filament/Widgets/DashboardWidget.php create mode 100644 resources/views/filament/widgets/dashboard-widget.blade.php diff --git a/app/Filament/Widgets/DashboardWidget.php b/app/Filament/Widgets/DashboardWidget.php new file mode 100644 index 000000000..12eed4ae3 --- /dev/null +++ b/app/Filament/Widgets/DashboardWidget.php @@ -0,0 +1,29 @@ +version = $versionSvc->getCurrentVersion(false); + $this->version_full = $versionSvc->getCurrentVersion(true); + } + + protected function getViewData(): array + { + return [ + 'version' => $this->version, + 'version_full' => $this->version_full, + ]; + } +} diff --git a/resources/views/filament/widgets/dashboard-widget.blade.php b/resources/views/filament/widgets/dashboard-widget.blade.php new file mode 100644 index 000000000..c98f00686 --- /dev/null +++ b/resources/views/filament/widgets/dashboard-widget.blade.php @@ -0,0 +1,10 @@ + + +
+ phpvms Logo +
+

{{ $version }}

+
+
+
+