Infolist RepeatableEntry view entry action.

Hi, I cant figure out how to make repeatable entries with action that opens entry in new tab. Check my code below. Why I cannot inject current repeatable entry in function:

RepeatableEntry::make('completedTestAttempts')
    ->label(false)
    ->state(function (User $student) {
        return $student->completedTestAttempts()
           ->with(['exam', 'questions', 'category'])
           ->whereNotNull('completed_at')
           ->orderBy('completed_at', 'desc')
           ->limit(10)
           ->get()
           ->toArray();
     })
     ->schema([
       TextEntry::make('exam.name')
           ->label(__('Name')),
           \Filament\Infolists\Components\Actions::make([
               Action::make('overview')
                  ->url(fn (TestAttempt $testAttempt): string => $testAttempt->getUrl())
                  ->label(__('Overview'))
           ])
     ]),
Was this page helpful?