Mandatory fields
{!! ExpandedForm::text('description',$journal->description) !!}
@if($what == 'deposit' || $what == 'withdrawal')
{!! ExpandedForm::select('account_id',$accounts,$data['account_id']) !!}
@endif
@if($what == 'withdrawal')
{!! ExpandedForm::text('expense_account',$data['expense_account']) !!}
@endif
@if($what == 'deposit')
{!! ExpandedForm::text('revenue_account',$data['revenue_account']) !!}
@endif
@if($what == 'transfer')
{!! ExpandedForm::select('account_from_id',$accounts,$data['account_from_id']) !!}
{!! ExpandedForm::select('account_to_id',$accounts,$data['account_to_id']) !!}
@endif
{!! ExpandedForm::amount('amount',$data['amount'],['currency' => $journal->transactionCurrency]) !!}
{!! ExpandedForm::date('date',$data['date']) !!}