Referred to an id which turned out to be a index.

This commit is contained in:
James Cole 2015-04-19 14:19:25 +02:00
parent 0656ccbdd9
commit 52d23b6ef5

View File

@ -149,9 +149,9 @@
</div>
<table class="table">
<?php $sum = 0;?>
@foreach($groupedExpenses as $id => $expense)
@foreach($groupedExpenses as $expense)
<tr>
<td><a href="{{route('accounts.show',$id)}}">{{{$expense['name']}}}</a></td>
<td><a href="{{route('accounts.show',$expense['id'])}}">{{{$expense['name']}}}</a></td>
<td>{!! Amount::format(floatval($expense['amount'])*-1) !!}</td>
</tr>
<?php $sum += floatval($expense['amount'])*-1;?>