Lirim Ahmeti
Lirim Ahmeti
FFilament
Created by Lirim Ahmeti on 6/15/2024 in #❓┊help
Repeater with search to add functionality
Hello everyone! I am working on a POS software using filament. I am now making the form for creating Purchases, the purchase has a supplier_id, reference, and a total field - The products that the user purchased should be saved in a pivot table which i named purchase_product in which there are the coulmns product_id, purchase_id, quantity, price. I tried using repeater for adding the products to the purchase, but the problem is with the UI that the repeater provides. I want the user to have a searchable select, in which he types the product name that he wants to purchase and when selected that product should be added to the repeater for the user to provide quantity and price so that the user does not have to click the add to button everytime that he wants to add a product to the purchase. I would appreciate it alot if someone could help guide me on how i could possibly achieve something like that because as for now i am lost.
1 replies