@view('header', [ 'title' => $account->name . ' - Accounts - Admin' ])

{{ $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) !!}

Create transaction Create payment link Edit Delete

Transactions

@if (count($transactions) > 0): @view('pagination', [ 'page' => $page, 'last_page' => $last_page ]) @foreach ($transactions as $transaction): @if ($transaction->to_account_id == $account->id):

{{ $transaction->name }}

@if (is_numeric($transaction->from_account_id)):

From: {{ $transaction->from_account->name }}

@else:

From: {{ $transaction->from_account_id }}

@endif

Amount: {!! format_money($transaction->amount) !!}

Send at: {{ $transaction->created_at }}

@endif @if ($transaction->from_account_id == $account->id):

{{ $transaction->name }}

@if (is_numeric($transaction->to_account_id)):

To: {{ $transaction->to_account->name }}

@else:

To: {{ $transaction->to_account_id }}

@endif

Amount: {!! format_money($transaction->amount) !!}

Send at: {{ $transaction->created_at }}

@endif @endforeach @view('pagination', [ 'page' => $page, 'last_page' => $last_page ]) @else:

There are no transactions found

@endif @view('footer')