Print array with Repeatableentry, how to?

I stored some data with a repeater in my form and I now want to output the data in a infolist with repeatableentry, but I can't get the data.

The array looks like:
[{"data": {"other_income": [{"cost": "1000", "name": "Laundry", "period": "per-month"}, {"cost": "1000", "name": "Parking", "period": "per-month"}, {"cost": 0, "name": "Storage Rental", "period": "per-month"}]}, "type": "other_income"}]


My Infolist

 return $infolist
            ->record($this->record)
            ->schema([
 RepeatableEntry::make('other_income')
        ->label('Other Income')
        ->schema([
            TextEntry::make('cost'),
            TextEntry::make('name'),
            TextEntry::make('period'),
        ])
        ->columnSpanFull()
        ->columns(3)
        ->contained(false),
  ]);

Would be glad if someone could help,please
Screenshot_2024-05-31_102643.png
Was this page helpful?