How to add table inside the tab content?

I have a task to create a view page on users. The scope is every tab content is different page/component so that it will not load heavily..

All the tabs are tables content

example.. in my UserResource I created infolist for tab

 public static function infolist(Infolist $infolist): Infolist
    {
        return $infolist
            ->schema([
                Tabs::make('Tabs')
                    ->tabs([
                        Tabs\Tab::make('Users')
                            ->icon('heroicon-m-user-group')
                            ->schema([

                            ]),
                        Tabs\Tab::make('Subscriptions')
                            ->schema([
                                // ...
                            ]),
                        Tabs\Tab::make('Favorites')
                            ->schema([
                                // ...
                            ]),
                    ])
            ]);
    }


How to attached/make users table in the user tab? I want to test this first and follow other tabs

  1. by inserting directy the table? or
  2. make a livewire component then render ?
Was this page helpful?