Small updates.

This commit is contained in:
James Cole
2015-03-15 09:34:57 +01:00
parent 8b4f656d90
commit f572445a65
4 changed files with 49 additions and 36 deletions

View File

@@ -15,19 +15,7 @@
{{{$journal->description}}}
<span class="pull-right small">
@if(isset($account))
@foreach($journal->transactions as $index => $t)
@if($t->account_id == $account->id)
{!! Amount::formatTransaction($t) !!}
@endif
@endforeach
@else
@foreach($journal->transactions as $index => $t)
@if($index == 0)
{!! Amount::formatTransaction($t) !!}
@endif
@endforeach
@endif
{!! Amount::formatJournal($journal) !!}
</span>
</a>