amount field from transactions relation on my CoinsPack model using the following code. The Transaction has a status field which can be either pending, cancelled and successful and I want the sum of amount column for only successful transactions.