mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 14:00:56 +08:00
add filament dashboard
This commit is contained in:
29
app/Filament/Custom/Widgets/StatTable.php
Normal file
29
app/Filament/Custom/Widgets/StatTable.php
Normal 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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user