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, ]; } }
image.png
Was this page helpful?