This project illustrates the use of Repeater fields combined with live/reactive methods to build an invoice form featuring parent-child record relationships and real-time subtotal and total calculations.
Get the Source Code:
Only This Example
$9
One-time payment
Full source code for Invoice Editor with Items
Downloadable ZIP file with the source code
Lifetime access to this example
Sign in with GitHub to buy
Sign in first, then complete your $9 checkout.
Best value — all 177 examples
View membership plans
FilamentExamples Membership
$99
/year
or
$199
lifetime
Access to code of all 177 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
30-day money-back guarantee
How it works
The main logic lives in our InvoiceResource and is mainly contained within the form() method:
- Using a
Repeaterfield to allow adding multiple items - Using the
live()method to calculate the subtotal and total in real time - Using a custom function to trigger calculations on
itemslist change, quantity change - Disabling options in real-time to prevent duplicate items from being added
Here's how it looks in the code:
The FULL tutorial is available after the purchase: in the Readme file of the official
repository you would get invited to.