{!! Form::model($programAccount, ['route' => ['admin.finances.program-accounts.transactions.store', [$programAccount, 'type' => request()->type]], 'method' => 'POST']) !!}
{{-- Amount --}}
{{ Form::label('this_account', request()->type == 'deposit' ? __('To Account') : __('From Account'), ['class' => 'col-form-label']) }} {!! Form::text('this_account', $programAccount->name, ['class' => 'form-control', 'placeholder' => __('Account'), 'disabled']) !!}
{{ Form::label('account_id', request()->type != 'deposit' ? __('To Account') : __('From Account'), ['class' => 'col-form-label']) }} {!! Form::select('account_id', [], null, ['class' => 'form-control', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', ['resource' => 'AccountBalance', 'except' => $programAccount->id]), //'hasBalance' => '1' 'placeholer' => __('Select Account')]) !!}
@if(request()->type == 'deposit') {{-- Acount Balance --}}
{{ Form::label('account_balance', __('Account Balance'), ['class' => 'col-form-label']) }} {!! Form::text('account_balance', 0, ['class' => 'form-control', 'placeholder' => __('Account Balance'), 'disabled']) !!}
@endif {{-- Amount --}}
{{ Form::label('amount', __('Amount'), ['class' => 'col-form-label']) }} {!! Form::number('amount', null, ['class' => 'form-control', 'placeholder' => __('Amount')]) !!}
{{-- description --}}
{{ Form::label('description', __('Description'), ['class' => 'col-form-label']) }} {!! Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => __('Description'), 'rows' => '3']) !!}
{!! Form::close() !!} @if(request()->type == 'deposit') @endif