@view('header', [ 'title' => 'Accounts' ])
Accounts
@if (count($accounts) > 0):
@view('pagination', [ 'page' => $page, 'last_page' => $last_page ])
@foreach ($accounts as $account):
{{ $account->name }}
@if ($account->type == Accounts::TYPE_SAVE):
SAVE ACCOUNT
@endif
@if ($account->type == Accounts::TYPE_PAYMENT):
PAYMENT ACCOUNT
@endif
Amount: {!! format_money($account->amount) !!}
@endforeach
@view('pagination', [ 'page' => $page, 'last_page' => $last_page ])
@else:
There are no accounts found
@endif
@view('footer')