{{--*/ $total =0 /*--}} @foreach($vendors as $index=>$vendor) {{--*/ $total +=$vendor->amount /*--}} @endforeach
S/N Name Outstanding
{{++$index}} {{strtoupper($vendor->name)}} {{number_format($vendor->amount)}}
Total Amount {{number_format($total,2)}}