INFOLIST TO VIEW DOCUMENT

I want to view a list of document using infolists, Is it possible? Do I need to create a custom entries or any tricks?
Solution:
i solved with below tricks ``` $document_entries = []; foreach($documents as $index => $document){...
Jump to solution
5 Replies
krekas
krekas2mo ago
Have you tried repeatable entry?
SkyEagles
SkyEaglesOP2mo ago
what is the component to click button for view the document?
krekas
krekas2mo ago
are you talking about a view page?
SkyEagles
SkyEaglesOP2mo ago
no, view uploaded view
Solution
SkyEagles
SkyEagles2mo ago
i solved with below tricks
$document_entries = [];
foreach($documents as $index => $document){
$document_entries[] = \Filament\Infolists\Components\TextEntry::make("document_{$index}")
->label('Document')
->state($document->name)
->url($document->url)
->openUrlInNewTab();
}
$document_entries = [];
foreach($documents as $index => $document){
$document_entries[] = \Filament\Infolists\Components\TextEntry::make("document_{$index}")
->label('Document')
->state($document->name)
->url($document->url)
->openUrlInNewTab();
}

Did you find this page helpful?