mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 23:50:33 +00:00
25 lines
577 B
PHP
25 lines
577 B
PHP
<?php
|
|
|
|
namespace App\Filament\Widgets;
|
|
|
|
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
|
|
|
|
class ServerMemoryStatisticCount extends BaseWidget
|
|
{
|
|
protected static bool $isLazy = false;
|
|
|
|
protected static ?int $sort = 4;
|
|
|
|
protected static string $view = 'filament.widgets.server-memory-statistic-count';
|
|
|
|
protected function getViewData(): array
|
|
{
|
|
$serverStatistic = new \App\Statistics\ServerStatistic();
|
|
$serverStats = $serverStatistic->getCurrentStats();
|
|
|
|
return [
|
|
'serverStats' => $serverStats,
|
|
];
|
|
|
|
}
|
|
}
|