anselm
Full Height Modal / Wizard
Hi, I'm trying to show my modal (which is a wizard with multiple steps) to use the full window height (or 90%) - and to keep it the same over the steps to avoid "jumping" of the modal size depending on form length of the steps. Any help with hacking the CSS appreciated 🙂
6 replies
Calculating columns and sums in a RelationManager
I'm using a RelationManager to show items belonging to an order. Each item has a
price
and amount
. Next to the columns for Price and Amount, i'd like to display a column for the item total, e.g. price * amount
. I found this tip https://v2.filamentphp.com/tricks/calculated-value-in-column which recommends using ->getStateUsing()
on the TableColumn, but I always get an error Column not found: 1054 Unknown column 'order_items.total' in 'field list'
which makes sense. Does this feature not work on a RelationManager Table? Is there another way to do it?
I'd also like to display a sum for this column below the table. How would I achieve this? Since I'd need to multiply price
and amount
per item before summing.
Thanks!2 replies