Fill repeater in custom form in modal

Hello, to begin with, this is a semi long question/issue, and I honestly was not feeling good about posting it and possibly have someone willing to help read through the whole thing. So I think that the fair thing to do would be to buy someone coffee/beer/your drink of choice or sponsor them if available.

I am working with a table using actions, and when clicking on the action, it opens up a modal which has a custom form in it. The form has some text inputs which I am filling in and showing them as disabled. So far so good here. Then I am using a table-repeater and I am trying to pre-fill it as well. Here is where the issues start for me. The table rows need to show data from a relationship. My models are Package and Document where Package has a hasMany with Document and Document has a belongsTo with Package. All the data related to Package is fine but I have not been able to fill the table-repeater with as many rows as the package has documents, and fill the document_type_id TextInput. Finally, on the more complicated part (for me), retrieve the image from s3 (image name is on a column on the Documents table ).

Here is my gist of what the code looks like right now:
https://gist.github.com/rgut13rrez/2275aec31e0d5120cf6da4fbfab378fe
Gist
filament table with actions/modal/form/table-repeater - PackagesTable.php
Was this page helpful?