2014-07-06 08:18:11 -05:00
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<tr>
|
2014-07-14 23:58:08 -05:00
|
|
|
<th> </th>
|
2014-07-06 08:18:11 -05:00
|
|
|
<th style="width:30%;">Name</th>
|
|
|
|
<th>Current balance</th>
|
2014-07-26 01:05:02 -05:00
|
|
|
<th></th>
|
2014-07-06 08:18:11 -05:00
|
|
|
</tr>
|
|
|
|
@foreach($accounts as $account)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@if($account->active == 0)
|
|
|
|
<span title="This account is inactive." class="glyphicon glyphicon-ban-circle"></span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{route('accounts.show',$account->id)}}" title="Overview for account {{{$account->name}}}">{{{$account->name}}}</a></td>
|
|
|
|
<td>{{mf($account->balance())}}</td>
|
2014-07-26 01:05:02 -05:00
|
|
|
<td>
|
|
|
|
<span class="btn-group-xs btn-group">
|
|
|
|
<a href="{{route('accounts.edit',$account->id)}}" title="Edit {{{$account->name}}}" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
<a href="{{route('accounts.delete',$account->id)}}" title="Edit {{{$account->name}}}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
|
|
|
</span>
|
|
|
|
</td>
|
2014-07-06 08:18:11 -05:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|