
<div class="modal fade" id="md_update_allowance" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'allowance.update', 'class' => 'cls_form', 'id' => 'form_update_allowance')) }}
  <div class="modal-dialog modal-md" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Allowance</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-6">
               <label class="label-color"> Type: </label>
            <small class="form-errors pull-right req" value="">{{ $errors->first('type',":message") }}</small>
            <div class="input-group mb-3">
             
              {{Form::Text('type', '', ['class' => 'form-control form-control-sm  cls_required','readonly'=>'true' ,'placeholder' => 'Type', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>

          <div class="col-sm-6">
               <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">
            
              {{Form::Text('title', '', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => 'Title' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>
               <div class="col-sm-3">
            <label class="label-color">Percentage: <i style = "color:red;"></i></label>
            <small class="form-errors pull-right req" value="">{{ $errors->first('percentage',":message") }}</small>

            <div class="input-group mb-3">
          
              {{Form::text('percentage', '', ['class' => 'form-control form-control-sm  cls_required  percentage', 'placeholder' => 'Percentage [1 - 100]' , 'aria-label' => 'Default' , 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
          </div>
                 <div class="col-sm-3">
                       <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', 'placeholder' => 'Amount' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','onkeyup' => 'numberInWordsValue(this,"amount_in_words")'])}}
            </div>
          </div>
              <div class="col-sm-6">
                     <label class="label-color">Amount In Words  </label>
                  <small class="form-errors pull-right req" value="">{{ $errors->first('amount_in_words',":message") }}</small>
                   <div class="input-group mb-3">
             
              <input placeholder="Amount In  Words" type="text" name= "amount_in_words" readonly="" class="form-control-sm form-control amount_in_words" >
            </div>
          </div>

                 <div class="col-sm-12">
 
             <input type="checkbox" name="is_taxable"  value="1"> <b>Is Taxable ? </b>
             
   
          </div>
        </div>
          </div>
        </div> 
      </div>
      <input type = "hidden" name="allowance">
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary cls_submit" content="update allowance">Update Allowance</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>