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
|
|
|
|
|
{
|
2025-09-21 18:07:38 +08:00
|
|
|
protected string $view = 'filament.widgets.stat-table';
|
2022-06-28 13:33:18 +08:00
|
|
|
|
|
|
|
|
protected function getHeader(): string
|
|
|
|
|
{
|
2022-06-30 21:08:25 +08:00
|
|
|
|
2022-06-28 13:33:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getTableRows(): array
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getViewData(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'header' => $this->getHeader(),
|
|
|
|
|
'data' => $this->getTableRows(),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|