add filament dashboard

This commit is contained in:
xiaomlove
2022-06-28 13:33:18 +08:00
parent bccea81e44
commit 6fb3d95ef0
17 changed files with 229 additions and 16 deletions

View File

@@ -0,0 +1,29 @@
<?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
{
return nulll;
}
protected function getTableRows(): array
{
return [];
}
protected function getViewData(): array
{
return [
'header' => $this->getHeader(),
'data' => $this->getTableRows(),
];
}
}