[![enter image description here](https://i.stack.imgur.com/BkPkf.jpg)](https://i.stack.imgur.com/BkPkf.jpg)

Let's consider the image above. I would like to show duplicated entries as one entry and also I want to show the sum of the "`stock`" column. In this case it should be 5722. 

Is it possible to do it using Eloquent? Or what are the best ways to do it?