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

@@ -81,7 +81,7 @@
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-money fa-fw"></i>
<a href="{{route('accounts.show',$data[1]->id)}}">{{{$data[1]->name}}}</a>
<a href="{{route('accounts.show',$data[1]->id)}}">{{{$data[1]->name}}}</a> ({!! Amount::format(Steam::balance($data[1])) !!})
<!-- ACTIONS MENU -->

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>