Martin Lakrids
Mark a location on an image of a parent resource
I have a “House” model with a title and an image (blueprint). The “House” HasMany “Problem” and I have a relation manager to create these on the House resource.
I would like to mark the problem location on the image from the House.
Any ideas how to go about doing this? I feel stuck on these two issues:
1: how to access the parent (“House”) in the RelationManager create popup
2: does anyone know of an input that can help me “mark” a location on an image?
3 replies
Filter/scope table data based on a PHP function, not using QueryBuilder based on values in database
Is it possible to filter/scope data in a table, based on some computed values that are not stored in the database? Hypothetical example: A list of users, but only show users that passes a filter function.
I can only find filter/scope examples what uses the Query Builder, not anything based on some PHP code running after the query builder but before adding it to the table.
11 replies
Am I the only one who often lands on V2 Documentation pages?
Very often when using the Documentation Search bar (by Algolia) or hitting a Google result, I end on the v2 documentation page without noticing.
Could you add a warning banner og some other color for the older documentation pages?
8 replies
Table with a modal action that should contain a custom table-like form, is that even possible?
I have a table showing users, with an Action that opens a modal. I want the modal to contain a list of items that can be checked row-by-row, as well a comment field for each row, and a save button.
The list of items are NOT Eloquent models, but something that is calculated on the User model. Let's say it is Family members (But again, NOT a Eloquent model yet) and each row should be able to toggle an on/off as well as a comment.
I have added the modal with a custom view, where I can loop through the items, but I cannot figure out how to correctly add the form elements (checkboxes and input fields), as well as how do I receive the data in the Component? (I have lots of experience with Laravel, but almost none with Livewire and Filament)
The code that generates the table with the action
Some of the code in the modal:
3 replies