add filament dashboard

This commit is contained in:
xiaomlove
2022-06-28 13:33:18 +08:00
parent bccea81e44
commit 6fb3d95ef0
17 changed files with 229 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Filament\Widgets;
use App\Filament\Custom\Widgets\StatTable;
use App\Repositories\DashboardRepository;
use Illuminate\Contracts\View\View;
use Nexus\Database\NexusDB;
class SystemInfo extends StatTable
{
protected static ?int $sort = 1000;
protected function getHeader(): string
{
return nexus_trans('dashboard.system_info.page_title');
}
protected function getTableRows(): array
{
$dashboardRep = new DashboardRepository();
return $dashboardRep->getSystemInfo();
}
}