public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
/* ... some fields */
RepeatableEntry::make('products')
->schema([
TextEntry::make('orderStatus.title')
->badge(),
Actions::make([
Action::make('updateProduct')
->requiresConfirmation()
->form([
TextInput::make('order_link')
->required(), /* I want to get product.order_link here where product is the current repeated record */
])
->size(ActionSize::ExtraSmall)
->action(function (array $data) {
/* want to save product's order_link here */
return;
}),
/* ... some more actions */
]),
]),
]);
}