<div class="modal fade" tabindex="-1" role="dialog" id="payment_modal-all"> <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title text-center"><i class="fa fa-credit-card"></i> {{ trans('installments.paid') }} {{ money($installment->getRemainPrinciple($termPaid)) }}</h4>
      </div>
      <div class="modal-body">
        {{ Form::open(['route'=> 'installments.returnAll'])}}
          {{ Form::hidden('total', $installment->getRemainPrinciple($termPaid) + $installment->getRate3Moths($termPaid))}}
          {{ Form::hidden('total_principle', $installment->getRemainPrinciple($termPaid))}}
          {{ Form::hidden('installment_id', $installment->id) }}
          {{ Form::hidden('id', $pay->id) }}
         <div class="form-group">
            {{ Form::label("total_payment", trans('installments.amount')) }}
            {{ Form::number('total_payment', $installment->getRemainPrinciple($termPaid) + $installment->getRate3Moths($termPaid), [
                'class'    =>  'form-control',
                'placeholder'  =>  trans('installments.amount'),
                'disabled' => true
            ]) }}
        </div>

        <div class="form-group">
            {{ Form::label("note", trans('installments.note')) }}
            {{ Form::textarea('note', null, [
                'class'    =>  'form-control',
                'placeholder'  =>  trans('installments.note'),
                'rows' =>  2
            ]) }}
        </div>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('dashboard.crud.cancel') }}</button>
        <button type="submit" class="btn btn-primary">{{ trans('dashboard.crud.save') }}</button>
        {{ Form::close() }}
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
