<!-- Modal UPDATE Deduction -->
@php($unique_id = "update_loan")
<div class="modal fade" id="md_update_deduction" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'deduction.update', 'class' => 'cls_form','id'=>'form_update_deduction')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Deduction</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">
        <div class = "card">
          <div class ="card-body form-fieldset">
                               <div class="row">


            <div class="col-sm-12">
              <label class="label-color"> Title : <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('title',":message") }}</small>
            <div class="input-group mb-3">
            <input type="text" name="title" class="form-control form-control-sm">
          </div>
          </div>


          <div class="col-sm-4">
              <label class="label-color"> Amount : <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('amount',":message") }}</small>

            <div class="input-group mb-3">
              {{Form::number('amount', '', ['class' => 'form-control form-control-sm cls_required amount_'.$unique_id.' ', 'placeholder' => 'Amount' ,'id' => 'amount' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'onchange'=>'netAmount(event,"'.$unique_id.'")'])}}
            </div>
          </div>
          
          <div class="col-sm-8">
              <label class="label-color"> Amount In Words : </label>
            <small class="form-errors pull-right" value="">{{ $errors->first('amount_in_words',":message") }}</small>

            <div class="input-group mb-3">
              {{Form::Text('amount_in_words', '', ['class' => 'form-control form-control-sm amount_in_words_'.$unique_id.' ', 'placeholder' => ' Amount In Words' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','readonly' => 'true'])}}
            </div>
          </div>


          </div>

          

          

          
         </div>

          </div>
       
   
         

      </div>
      <div class="modal-footer">
        <input type="hidden" name="deduction">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit"  class="btn btn-primary cls_submit" content="update deduction">Update Deduction</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL UPDATE DEDUCTION -->