<?php if(Auth::user()->hasAnyPermission(['All','Approve Booking'])): ?>

<!-- Modal UPDATE Commission -->
<div class="modal fade" id="md_approve_booking" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <?php echo e(Form::open(array('route' => 'booking.approve','id' => 'form_approve_booking',  'class' => 'cls_form'))); ?>

  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Approve Booking</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <input type = "hidden" name="id"  />
      <div class="modal-body">
      <div class="row">
      
      <div class="col-sm-12">
                 <label class="label-color">Reg Date: <i style = "color:red;"></i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('reg_date',":message")); ?></small>

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

            </div>

          </div>
               <div class="col-sm-12">
                 <label class="label-color"> <i style = "color:red;">Approve date must be after or equal to registration date</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('approve_date',":message")); ?></small>

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

            </div>

          </div>

     
        </div>
      </div>
      <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="approve booking">Approve</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<!-- END MODAL UPDATE COMMISSION -->

<?php endif; ?><?php /**PATH /var/www/skylite/resources/views/booking/modals/approve_booking.blade.php ENDPATH**/ ?>