If Infolist Repeatable Entry has no data I want to show "No Data Found"

how can we implement this because i am using repeater Inside Table Action like that
Tables\Actions\Action::make('Files')                  
                    ->infolist([
                        RepeatableEntry::make('message.messageFiles')
                            ->schema([
                                ImageEntry::make('fileurl')->height(80),
                                TextEntry::make('size')
                                    ->suffixAction(
                                        Action::make('download')
                                            ->label('Download')
                                            ->icon('heroicon-o-arrow-down-tray')
                                            ->action(function (MessageFile $record, array $data) {
                                                dd($record->getFileUrlAttribute()->download($record->fileurl));
                                                Storage::disk($record->fileurl, 'default.jpg');
                                            })
                                    )
                            ])->columnSpanFull()->columns(2)->grid(2)->label('')
                    ])->badgeColor('warning')
                    ->button()->modalSubmitAction(false)->stickyModalFooter()->stickyModalHeader()
                    ->outlined(),

and some user's have Files and some not so if the user does not have any files it does not show anything like the given Images...
image.png
image.png
Was this page helpful?