Rendering Custom Output in a Repeater Item

I'm using a Repeater with a custom action which opens a modal dialog. This process collections a large amount of information, some to be displayed, some not. It's unlikely going to match the object it will be saved into, so I will be manipulating it. I intend to show a structured rendered view of some of the output.

The data is available in an array in the action method:
https://gist.github.com/martinedge/6331a0404c49ed7b2989151ca0e15bbe

At the moment I'm using StateUpdated to move the 'processed_message' to info_message' which is a 'PlaceHolder'.

                                           ->afterStateUpdated(function (Get $get, Set $set) {
                                                if (!empty($get("processed_message"))) {
                                                    $set("info_message", $get("processed_message"));
                                                }
                                                self::updateTotals($get, $set);
                                            })

The attached picture gives you an idea of what I'm looking to achieve. Not sure if a blade can be injected or what the best approach is. Cheers!
SIM-Repeater-Workflow-mini.png
Gist
Action Block. GitHub Gist: instantly share code, notes, and snippets.
Was this page helpful?