2015-02-07 06:49:24 +01:00
|
|
|
<div class="list-group">
|
|
|
|
|
@foreach($transactions as $journal)
|
|
|
|
|
<a class="list-group-item" title="{{$journal->date->format('jS M Y')}}" href="{{route('transactions.show',$journal->id)}}">
|
|
|
|
|
|
2015-03-20 22:39:07 +01:00
|
|
|
@if(is_null($journal->type))
|
|
|
|
|
@if($journal->transactiontype->type == 'Withdrawal')
|
|
|
|
|
<i class="fa fa-long-arrow-left fa-fw" title="Withdrawal"></i>
|
|
|
|
|
@endif
|
|
|
|
|
@if($journal->transactiontype->type == 'Deposit')
|
|
|
|
|
<i class="fa fa-long-arrow-right fa-fw" title="Deposit"></i>
|
|
|
|
|
@endif
|
|
|
|
|
@if($journal->transactiontype->type == 'Transfer')
|
2015-03-21 21:33:52 +01:00
|
|
|
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
2015-03-20 22:39:07 +01:00
|
|
|
@endif
|
|
|
|
|
@else
|
|
|
|
|
@if($journal->type == 'Withdrawal')
|
|
|
|
|
<i class="fa fa-long-arrow-left fa-fw" title="Withdrawal"></i>
|
|
|
|
|
@endif
|
|
|
|
|
@if($journal->type == 'Deposit')
|
|
|
|
|
<i class="fa fa-long-arrow-right fa-fw" title="Deposit"></i>
|
|
|
|
|
@endif
|
|
|
|
|
@if($journal->type == 'Transfer')
|
2015-03-21 21:33:52 +01:00
|
|
|
<i class="fa fa-fw fa-exchange" title="Transfer"></i>
|
2015-03-20 22:39:07 +01:00
|
|
|
@endif
|
2015-02-07 06:49:24 +01:00
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
{{{$journal->description}}}
|
|
|
|
|
|
|
|
|
|
<span class="pull-right small">
|
2015-03-15 09:34:57 +01:00
|
|
|
{!! Amount::formatJournal($journal) !!}
|
2015-02-07 06:49:24 +01:00
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|