Files
nexusphp/app/Filament/Custom/Widgets/StatTable.php

30 lines
521 B
PHP
Raw Normal View History

2022-06-28 13:33:18 +08:00
<?php
namespace App\Filament\Custom\Widgets;
use Filament\Widgets\TableWidget;
use Filament\Widgets\Widget;
class StatTable extends Widget
{
protected static string $view = 'filament.widgets.stat-table';
protected function getHeader(): string
{
2022-06-28 13:33:18 +08:00
}
protected function getTableRows(): array
{
return [];
}
protected function getViewData(): array
{
return [
'header' => $this->getHeader(),
'data' => $this->getTableRows(),
];
}
}