{!! Form::model( $payment, ['action' => ['PaymentController@store'], 'id' => 'fm-payment', 'class' => 'form-horizontal', 'role' => 'form'] ) !!} {!! Form::hidden('id', null, ['id' => 'payment_id']) !!} {!! Form::hidden('agreement_id', null, ['id' => 'agreement_id']) !!}
{!! Form::label('effective_date', 'Effective date:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::formattedDate('effective_date', ['class' => 'form-control', 'type'=> 'text', 'required']) !!}
{!! Form::label('payment_type_id', 'Transaction type:', ['class' => 'control-label col-sm-2']) !!}
{{-- fancySelect in app/Providers/FormMacroServiceProvider --}} {!! Form::fancySelect( 'type_id', $type_list, ['class' => 'form-control', 'required' => 'required', 'id' => 'payment_type_id'], ['internal_payment', 'credit', 'deposit', 'payment']) !!}
{{-- Prompt for password if retention has been refunded and transaction type is 'payment'--}} {!! Form::label('password', 'Password:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::password('password', ['class' => 'form-control']) !!}
{{-- Show payment balance for internal payment --}}
Outstanding Balance:
{!! DisplayHelper::formatCurrency($agreement->payment_balance) !!}
{{-- Select agreement for internal payment --}}
{!! Form::label('credit_agreement_id', 'Agreement to credit:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::select('credit_agreement_id', $agreement_list, null, ['class' => 'form-control']) !!}
{!! Form::label('amount', 'Amount:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('amount', null, ['class' => 'form-control', 'type' => 'number', 'required']) !!}
{!! Form::label('comment', 'Comment:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('comment', null, ['class' => 'form-control', 'maxlength' => 100]) !!}
{!! Form::label('reference', 'Reference:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('reference', null, ['class' => 'form-control', 'maxlength' => 50]) !!}
{!! Form::label('detail', 'Detail:', ['class' => 'control-label col-sm-2']) !!}
{!! Form::text('detail', null, ['class' => 'form-control', 'maxlength' => 200]) !!}
{!! Form::close() !!}