Files
nexusphp/app/Filament/Widgets/TorrentStat.php
2022-06-28 13:33:18 +08:00

27 lines
542 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 TorrentStat extends StatTable
{
protected static ?int $sort = 102;
protected function getHeader(): string
{
return nexus_trans('dashboard.torrent.page_title');
}
protected function getTableRows(): array
{
$dashboardRep = new DashboardRepository();
return $dashboardRep->statTorrents();
}
}