Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

reyesdev's avatar

Laravel Nova - Two metrics in the same card

Hi!

I've been working with nova for a few weeks now and it's been requested to display some metrics with more content than it has at the moment and i've been trying to get there through the docs but have not been able to do so yet.

I would like to generate a metric that uses count() and sum() at the same time, example: I would like to display a value metric of the "product" model while also displaying, maybe right next to it, the sum of the column that has the price of each of the products. This being handled by the same time range.

I have a workaround in mind, but wanted to know the community feedback if possible.

Thanks in advance!

0 likes
0 replies

Please or to participate in this conversation.