Wednesday, 17 July 2019

Get total sum in foreach loop in laravel blade file.


$user->amount = "you want to get sum of  balance"

@php(@$total += $user->amount)

You can use $total variable.

No comments:

Post a Comment