Repeater access current $record

Hi guys,

I can not figure out a way to access current record outside of repeater schema:

Section::make('Collected information')->schema([
                Repeater::make('allClientData')
                    ->label('Data Points')
                    ->deletable(fn($record) => auth()->user()->team_id === $record->team_id)
                    ->relationship()
                    ->schema([
                        Select::make('client_data_type_id')
                            ->disabled(fn($record) => auth()->user()->team_id === $record->team_id)
                            ->options(ClientDataType::all()->sortBy('sort')->pluck('name', 'id'))
                            ->label('Type')
                            ->required(),

                        Textarea::make('value')
                            ->label('Notes')
                    ])
                    ->addActionLabel('Add note')
                    ->defaultItems(0)
                    ->grid(2),
                ])->collapsible()->collapsed(),


Inside schema $record works outside of it it does not. Thank you for havinga look!
Was this page helpful?