I have to make an image selector to which I pass a collection like this
ImageProduct::all()
where customers select images and then they are passed to a PDF as an array. Do I necessarily have to make a custom component?Is there something already done?
I saw the component
ImageColumn
used here https://demo.filamentphp.com/blog/links I would like to have the same thing as a component of the form in which images are selected to be placed in the PDF Any advice ? I dont need the code just a guideline to follow. Any help it's appreciated. My Code:
Actions\Action::make('pdf') ->label('PDF') ->color('success') ->icon('heroicon-o-document-text') ->form([ //ImageSelector | ImageColumn / DONT know HOW TO DO ]) ->requiresConfirmation() ->action(PDFController::estimatePDF(...)),