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(),