I have history list of product price(order by created_at) like this: Now for show data in table I listed price using foreach method like this: I can see true output in table but I need to show difference between of two price in the third column like this picture: how do can i show difference between of two price in