How to display the widgets instead of normal table in relation manager?
<?php
namespace App\Filament\Admin\Resources\MerchantResource\RelationManagers;
use App\Filament\Admin\Widgets\MerchantStats;
use App\Filament\Admin\Widgets\ProductsAvailed;
use App\Filament\Admin\Widgets\SalesChart;
use Filament\Resources\RelationManagers\RelationManager;
class StorePerformanceRelationManager extends RelationManager
{
protected static string $relationship = 'transactions';
protected static ?string $title = 'Store Performance';
protected static ?string $label = 'Store Performance';
protected static ?string $pluralLabel = 'Store Performance';
protected function getFooterWidgets(): array
{
return [
MerchantStats::class,
ProductsAvailed::class,
SalesChart::class,
];
}
}

5 Replies
You can't last time I checked
also this, is this possible in filament?

Similar to it yes, that's a resouce table with widgets and and form filter widget too.
Thanks sir...
I make a page then import the widgets.
You can then just add a table widget, but I would just build a resource and add the widgets personally.