mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
27 lines
547 B
PHP
27 lines
547 B
PHP
|
|
<?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();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|