Showing a table below a select field depending on the selected field.
Display a table with the lease details after a selection has been made.
1 Reply
Make it live() then get that, and get all the details as normal based of the ID and pass them into the fields. Just have the fields disabled and show with a function like:
->afterStateUpdated(function($state, Closure $set) {
$record = Lease::find((int)$state);
foreach($record AS $key => $item) {
$set($key, $item);
}
})
And ensure you have the fields for all available fields within the lease