<!-- Modal UPDATE Commission -->
<div class="modal fade" id="md_update_commission" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Charges</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="tab-content">
                        <div role="tabpanel" class="tab-pane active" id="updatecommission">
                  
                          <?php echo e(Form::open(array('route' => 'commission.update','id' => 'form_update_commission',  'class' => 'cls_form'))); ?>

                                  <div class ="card">
                                             <input type = "hidden" name="id" />
          <div class ="card-body form-fieldset">
                   <div class="row">
                                  <div class="col-sm-6">
                    <label class="label-color">User Type: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('user_type',":message")); ?></small>

            <div class="input-group mb-3">
             
                 <?php echo e(Form::text('user_type', '', ['class' => 'form-control form-control-sm   ' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','readonly'=>'true'])); ?>

            </div>
          </div>
          <div class="col-sm-6">
                    <label class="label-color">User: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('name',":message")); ?></small>

            <div class="input-group mb-3">
             
                 <?php echo e(Form::text('name', '', ['class' => 'form-control form-control-sm   ' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','readonly'=>'true'])); ?>

            </div>
          </div>
                       
                   <div class="col-sm-6">
                    <label class="label-color">Description: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('description',":message")); ?></small>

            <div class="input-group mb-3">
             
                 <?php echo e(Form::text('description', '', ['class' => 'form-control form-control-sm  cls-req ', 'placeholder' => 'Description' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>
    

          <div class="col-sm-6">
            <label class="label-color">Percentage: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('percentage',":message")); ?></small>

            <div class="input-group mb-3">
            
              <?php echo e(Form::text('percentage', '', ['class' => 'form-control form-control-sm   up_percentage cls_branch_commission', 'placeholder' => 'Commission Percentage [1 - 100]' , 'aria-label' => 'Default' , 'onChange' => "getCommissionAmount(event,'.up_percentage','.up_update_amount','.up_amount_into_words',true)" , 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>

            <div class="col-sm-12">
              <label class="label-color">Amount: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('updateamount',":message")); ?></small>

            <div class="input-group mb-3">
           
              <?php echo e(Form::text('updateamount', '', ['class' => 'form-control form-control-sm  up_update_amount', 'onChange' => "getCommissionAmount(event,'.up_percentage','.up_update_amount','.up_amount_into_words',false)", 'placeholder' => 'Amount' , 'aria-label' => 'Default','aria-describedby' => 'inputGroup-sizing-default','onkeyup' => 'numberInWordsValue(this,"amount_in_words")'])); ?>

            </div>

          </div>
              <div class="col-sm-12">
                     <label class="label-color">Amount In Words  </label>
                  <small class="form-errors pull-right req" value=""><?php echo e($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 up_amount_into_words" >
            </div>
                </div>

     
        </div>
          </div>
           <input type = "hidden" name="booking_id" value = "<?php echo e(Crypt::encrypt($booking->id)); ?>" />
         <button type="submit" class="btn btn-primary cls_submit" content="update charges">Update Charges</button>
        </div>
        <?php echo e(Form::close()); ?>

                        </div>
                      </div>
              <div role="tabpanel" class="tab-pane" id="updateextracharges">
              <?php echo e(Form::open(array('route' => 'extracharges.update','id' => 'form_update_charges',  'class' => 'cls_form'))); ?>

              
                                       <div class ="card">
          <div class ="card-body form-fieldset">
                    <div class="row">

          <div class="col-sm-6">
            <label class="label-color">Charges Type:</label>
           <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('charges_type',":message")); ?></small>
            <div class="input-group mb-3">
              
              
              <?php echo e(Form::text('charges_type', '', ['class' => 'form-control form-control-sm charges_type' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','readonly'=>'true'])); ?>

            </div>
          </div>
           <div class="col-sm-6">
              <label class="label-color">Amount:</label>

            <div class="input-group mb-3">
          
              <?php echo e(Form::text('updateamount', '', ['class' => 'form-control form-control-sm  charges_amount', 'placeholder' => 'Amount' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','onkeyup' => 'numberInWordsValue(this,"amount_in_words")'])); ?>

            </div>
          </div>
               <div class="col-sm-12">
                     <label class="label-color">Amount In Words  </label>
                  <small class="form-errors pull-right req" value=""><?php echo e($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">
                    <label class="label-color">Description: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('description',":message")); ?></small>

            <div class="input-group mb-3">
            
                 <?php echo e(Form::text('description', '', ['class' => 'form-control form-control-sm  cls_required updated_description', 'placeholder' => 'Description' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>
     
        </div>
       
           
 </div>
  <input type = "hidden" name="id" class="charge_id" />
 <input type = "hidden" name="booking_id" value = "<?php echo e(Crypt::encrypt($booking->id)); ?>" />
         <button type="submit" class="btn btn-primary cls_submit" content="update charges">Update Charges</button>
      </div>
      <?php echo e(Form::close()); ?>

                        </div>


 
      </div>
    
    </div>
  </div>
  
</div>
<!-- END MODAL UPDATE COMMISSION --><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/commission/modals/update_commission.blade.php ENDPATH**/ ?>