F
Filament14mo ago
MRBUG

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(),
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...
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server