PhyrePanel-mirror/web/app/Filament/Widgets/ServerMemoryStatisticCount.php
2024-04-22 14:14:05 +03:00

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,
];
}
}